mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[improvement] Template: use v-text instead of mustache (#2404)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<slot />
|
||||
<div :class="b('text')">
|
||||
<template v-if="hasPrice">
|
||||
<span>{{ label || $t('label') }}</span>
|
||||
<span v-text="label || $t('label')" />
|
||||
<span :class="b('price')">{{ currency }} {{ price | format }}</span>
|
||||
</template>
|
||||
</div>
|
||||
@@ -21,10 +21,9 @@
|
||||
:type="buttonType"
|
||||
:disabled="disabled"
|
||||
:loading="loading"
|
||||
:text="loading ? '' : buttonText"
|
||||
@click="$emit('submit')"
|
||||
>
|
||||
{{ loading ? '' : buttonText }}
|
||||
</van-button>
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user