mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
[new feature] Coupon add 'showExchangeBar' prop && add empty style (#243)
* [bugfix] Checkbox border render error in weixin browser * [bugfix] TreeSelect dependency path error * [bugfix] Swipe should clear autoplay timer when destroyed * [bugfix] Optimize component dependency analyze when build style entry * merge * update yarn.lock * update README.md * update README.md * update README.md * update README.md * update README.md * [Doc] add more badges in README.md * update README.md * [bugfix] Address & Contact list style * fix: contact test cases * [bugfix] popup style missing when build style entry * [bugfix] Search: onSearch event arguments missing * [Doc] add demo pages * update zan-doc@0.3.7 * fix: build entry error * [Doc] add goods demo * [bugfix] button primary background color * [Doc] update doc detail * [new feature] Coupon add 'showExchangeBar' prop && add empty style
This commit is contained in:
@@ -160,6 +160,7 @@ export default {
|
||||
| closeButtonText | 列表底部按钮文字 | `String` | 不使用优惠 | - |
|
||||
| disabledListTitle | 不可用券列表标题 | `String` | 不可用优惠 | - |
|
||||
| inputPlaceholder | 输入框文字提示 | `String` | 请输入优惠码 | - |
|
||||
| showExchangeBar | 是否展示兑换栏 | `Boolean` | `true` | - |
|
||||
|
||||
### CouponList Event
|
||||
|
||||
|
@@ -1,7 +1,10 @@
|
||||
<template>
|
||||
<div class="side-nav">
|
||||
<h1 class="zanui-title">Zan UI</h1>
|
||||
<h2 class="zanui-desc">有赞移动端 Vue 组件库</h2>
|
||||
<h1 class="zanui-title">
|
||||
<img src="https://img.yzcdn.cn/public_files/2017/10/25/c2e074cd97d4d9e9b14a87b2fcb29430.png" />
|
||||
<span>Vant</span>
|
||||
</h1>
|
||||
<h2 class="zanui-desc">{{ description }}</h2>
|
||||
<div class="mobile-navs">
|
||||
<div class="mobile-nav-item" v-for="(item, index) in navList" v-if="item.showInMobile" :key="index">
|
||||
<mobile-nav v-for="(group, index) in item.groups" :group="group" :base="base" :nav-key="index" :key="index" />
|
||||
@@ -42,6 +45,10 @@ export default {
|
||||
|
||||
navList() {
|
||||
return this.docConfig[this.lang].nav || [];
|
||||
},
|
||||
|
||||
description() {
|
||||
return this.lang === 'zh-CN' ? '有赞移动端 Vue 组件库' : 'A Vue.js 2.0 Mobile UI at YouZan';
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -63,17 +70,28 @@ export default {
|
||||
}
|
||||
|
||||
.zanui-title {
|
||||
padding-top: 40px;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
background: url(https://img.yzcdn.cn/upload_files/2017/04/20/FjwR1mraVIqtHWb8YWDW_YzQ_Kh2.png) center center no-repeat;
|
||||
background-size: 156px 40px;
|
||||
margin: 0 0 10px;
|
||||
margin: 0 0 15px;
|
||||
|
||||
img,
|
||||
span {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 40px;
|
||||
margin-left: 15px;
|
||||
font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
.zanui-desc {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
color: #455a64;
|
||||
margin: 0 0 50px;
|
||||
}
|
||||
}
|
||||
|
@@ -8,11 +8,11 @@ module.exports = {
|
||||
footer: {
|
||||
github: 'https://github.com/youzan/vant',
|
||||
nav: {
|
||||
React: 'https://www.youzanyun.com/zanui/react',
|
||||
微信小程序: 'https://github.com/youzan/zanui-weapp',
|
||||
'React 组件库': 'https://www.youzanyun.com/zanui/react',
|
||||
小程序组件库: 'https://github.com/youzan/zanui-weapp',
|
||||
意见反馈: 'https://github.com/youzan/vant/issues',
|
||||
开发指南:
|
||||
'https://github.com/youzan/vant/blob/dev/.github/CONTRIBUTING.zh-CN.md'
|
||||
开发指南: 'https://github.com/youzan/vant/blob/dev/.github/CONTRIBUTING.zh-CN.md',
|
||||
加入我们: 'https://job.youzan.com'
|
||||
}
|
||||
},
|
||||
nav: [
|
||||
@@ -270,8 +270,8 @@ module.exports = {
|
||||
footer: {
|
||||
github: 'https://github.com/youzan/vant',
|
||||
nav: {
|
||||
React: 'https://www.youzanyun.com/zanui/react',
|
||||
Weapp: 'https://github.com/youzan/zanui-weapp',
|
||||
'React UI': 'https://www.youzanyun.com/zanui/react',
|
||||
'Weapp UI': 'https://github.com/youzan/zanui-weapp',
|
||||
Feedback: 'https://github.com/youzan/vant/issues',
|
||||
Contribute:
|
||||
'https://github.com/youzan/vant/blob/dev/.github/CONTRIBUTING.md'
|
||||
|
Reference in New Issue
Block a user