[Improvement] SubmitBar: support custom currency symbol (#876)

This commit is contained in:
neverland
2018-04-16 18:01:04 +08:00
committed by GitHub
parent 62f03ac00d
commit 2ce0803ffe
6 changed files with 15 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
<slot name="title">
<div class="van-card__row" v-if="title || price !== undefined">
<div v-if="title" class="van-card__title">{{ title }}</div>
<div v-if="price !== undefined" class="van-card__price">¥ {{ price }}</div>
<div v-if="price !== undefined" class="van-card__price">{{ currency }} {{ price }}</div>
</div>
</slot>
<slot name="desc">
@@ -38,7 +38,11 @@ export default create({
desc: String,
centered: Boolean,
num: [Number, String],
price: [Number, String]
price: [Number, String],
currency: {
type: String,
default: '¥'
}
}
});
</script>