chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+18 -18
View File
@@ -10,7 +10,7 @@ const EMPTY_IMAGE = 'https://img.yzcdn.cn/vant/coupon-empty.png';
export default createComponent({
model: {
prop: 'code'
prop: 'code',
},
props: {
@@ -24,51 +24,51 @@ export default createComponent({
exchangeButtonDisabled: Boolean,
exchangeMinLength: {
type: Number,
default: 1
default: 1,
},
chosenCoupon: {
type: Number,
default: -1
default: -1,
},
coupons: {
type: Array,
default: () => []
default: () => [],
},
disabledCoupons: {
type: Array,
default: () => []
default: () => [],
},
displayedCouponIndex: {
type: Number,
default: -1
default: -1,
},
showExchangeBar: {
type: Boolean,
default: true
default: true,
},
showCloseButton: {
type: Boolean,
default: true
default: true,
},
showCount: {
type: Boolean,
default: true
default: true,
},
currency: {
type: String,
default: '¥'
default: '¥',
},
emptyImage: {
type: String,
default: EMPTY_IMAGE
}
default: EMPTY_IMAGE,
},
},
data() {
return {
tab: 0,
winHeight: window.innerHeight,
currentCode: this.code || ''
currentCode: this.code || '',
};
},
@@ -84,9 +84,9 @@ export default createComponent({
listStyle() {
return {
height: this.winHeight - (this.showExchangeBar ? 140 : 94) + 'px'
height: this.winHeight - (this.showExchangeBar ? 140 : 94) + 'px',
};
}
},
},
watch: {
@@ -98,7 +98,7 @@ export default createComponent({
this.$emit('input', code);
},
displayedCouponIndex: 'scrollToShowCoupon'
displayedCouponIndex: 'scrollToShowCoupon',
},
mounted() {
@@ -152,7 +152,7 @@ export default createComponent({
onClick={this.onClickExchangeButton}
/>
);
}
},
},
render() {
@@ -234,5 +234,5 @@ export default createComponent({
</div>
</div>
);
}
},
});