mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
[Improvement] SubmitBar: support custom currency symbol (#876)
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user