Doc: add github link

This commit is contained in:
陈嘉涵 2017-09-13 14:57:56 +08:00
parent c40c82e448
commit e8db94e58f
3 changed files with 7 additions and 16 deletions

View File

@ -8,11 +8,11 @@ module.exports = {
'微信小程序': 'https://github.com/youzan/zanui-weapp' '微信小程序': 'https://github.com/youzan/zanui-weapp'
}, },
footer: { footer: {
copyright: `2012-${(new Date()).getFullYear()} © youzanyun.com - 浙公网安备 33010602004354号 增值电信业务经营许可证浙B2-20140331 - 浙ICP备13037466号`, github: 'https://github.com/youzan/vant',
nav: { nav: {
'有赞官网': 'https://www.youzan.com/', '有赞官网': 'https://www.youzan.com/',
'有赞云': 'http://www.youzanyun.com/zanui', '加入我们': 'https://job.youzan.com/',
'加入我们': 'https://job.youzan.com/' '意见反馈': 'https://github.com/youzan/vant/issues'
} }
}, },
nav: [ nav: [

View File

@ -155,7 +155,6 @@ describe('CouponList', () => {
wrapper = mount(CouponList, { wrapper = mount(CouponList, {
attachToDocument: true, attachToDocument: true,
propsData: { propsData: {
show: true,
chosenCoupon: -1, chosenCoupon: -1,
coupons: [coupon, discountCoupon], coupons: [coupon, discountCoupon],
disabledCoupons: [disabledCoupon, disabledDiscountCoupon] disabledCoupons: [disabledCoupon, disabledDiscountCoupon]
@ -166,9 +165,7 @@ describe('CouponList', () => {
wrapper.vm.chosenCoupon = index; wrapper.vm.chosenCoupon = index;
}); });
// 弹出 popup
setTimeout(() => { setTimeout(() => {
expect(wrapper.find('.van-coupon-list')[0].hasStyle('display', 'none')).to.equal(false);
wrapper.find('.van-coupon-item')[0].trigger('click'); wrapper.find('.van-coupon-item')[0].trigger('click');
setTimeout(() => { setTimeout(() => {
@ -182,7 +179,6 @@ describe('CouponList', () => {
wrapper = mount(CouponList, { wrapper = mount(CouponList, {
attachToDocument: true, attachToDocument: true,
propsData: { propsData: {
show: false,
chosenCoupon: 0, chosenCoupon: 0,
displayedCouponIndex: 0, displayedCouponIndex: 0,
coupons: [coupon, discountCoupon], coupons: [coupon, discountCoupon],
@ -190,8 +186,6 @@ describe('CouponList', () => {
} }
}); });
wrapper.vm.show = true;
wrapper.vm.$on('change', (index) => { wrapper.vm.$on('change', (index) => {
wrapper.vm.chosenCoupon = index; wrapper.vm.chosenCoupon = index;
wrapper.vm.displayedCouponIndex = index; wrapper.vm.displayedCouponIndex = index;
@ -201,7 +195,6 @@ describe('CouponList', () => {
wrapper.find('.van-coupon-list__close')[0].trigger('click'); wrapper.find('.van-coupon-list__close')[0].trigger('click');
setTimeout(() => { setTimeout(() => {
expect(wrapper.vm.chosenCoupon).to.equal(-1); expect(wrapper.vm.chosenCoupon).to.equal(-1);
expect(wrapper.find('.van-coupon-list')[0].hasStyle('display', 'none')).to.equal(true);
done(); done();
}, 500); }, 500);
}, 500); }, 500);
@ -257,7 +250,6 @@ describe('CouponList', () => {
wrapper = mount(CouponList, { wrapper = mount(CouponList, {
attachToDocument: true, attachToDocument: true,
propsData: { propsData: {
show: true,
chosenCoupon: 0, chosenCoupon: 0,
coupons: [coupon, discountCoupon, emptyCoupon], coupons: [coupon, discountCoupon, emptyCoupon],
disabledCoupons: [disabledCoupon, disabledDiscountCoupon] disabledCoupons: [disabledCoupon, disabledDiscountCoupon]
@ -307,7 +299,6 @@ describe('CouponList', () => {
it('displayedCouponIndex out of range', (done) => { it('displayedCouponIndex out of range', (done) => {
wrapper = mount(CouponList, { wrapper = mount(CouponList, {
propsData: { propsData: {
show: true,
displayedCouponIndex: -100, displayedCouponIndex: -100,
coupons: [coupon, discountCoupon, emptyCoupon] coupons: [coupon, discountCoupon, emptyCoupon]
} }

View File

@ -7342,8 +7342,8 @@ vue-sfc-compiler@^0.0.2:
vue-template-es2015-compiler "^1.5.3" vue-template-es2015-compiler "^1.5.3"
vue-style-loader@^3.0.0: vue-style-loader@^3.0.0:
version "3.0.1" version "3.0.2"
resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-3.0.1.tgz#c8b639bb2f24baf9d78274dc17e4f264c1deda08" resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-3.0.2.tgz#eaeb299729fa3ee54717e907ce3c1e425ebae729"
dependencies: dependencies:
hash-sum "^1.0.2" hash-sum "^1.0.2"
loader-utils "^1.0.2" loader-utils "^1.0.2"
@ -7652,8 +7652,8 @@ yeast@0.1.2:
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419" resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
zan-doc@^0.2.12: zan-doc@^0.2.12:
version "0.2.13" version "0.2.14"
resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.2.13.tgz#f7345493deacb8cee18c9807150c46c88f86073d" resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.2.14.tgz#f5915e8e45fd10d2eae3e36d10949d22a7f9ac62"
dependencies: dependencies:
cheerio "0.22.0" cheerio "0.22.0"
decamelize "^1.2.0" decamelize "^1.2.0"