[new feature] Coupon: add currency prop (#2274)

This commit is contained in:
neverland
2018-12-12 16:59:09 +08:00
committed by GitHub
parent a4a2ce9635
commit 267e5eda1d
6 changed files with 20 additions and 4 deletions
+6
View File
@@ -35,6 +35,7 @@
v-for="(item, index) in coupons"
:key="item.id || item.name"
:data="item"
:currency="currency"
:chosen="index === chosenCoupon"
@click.native="$emit('change', index)"
/>
@@ -57,6 +58,7 @@
v-for="item in disabledCoupons"
:key="item.id || item.name"
:data="item"
:currency="currency"
/>
<div
v-if="!disabledCoupons.length"
@@ -129,6 +131,10 @@ export default create({
showCloseButton: {
type: Boolean,
default: true
},
currency: {
type: String,
default: '¥'
}
},