mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[improvement] Template: use v-text instead of mustache (#2404)
This commit is contained in:
@@ -7,11 +7,10 @@
|
||||
>
|
||||
<slot>
|
||||
<div
|
||||
v-text="cancelButtonText || $t('cancel')"
|
||||
:class="b('cancel')"
|
||||
@click="emit('cancel')"
|
||||
>
|
||||
{{ cancelButtonText || $t('cancel') }}
|
||||
</div>
|
||||
/>
|
||||
<div
|
||||
v-if="title"
|
||||
v-text="title"
|
||||
@@ -19,11 +18,10 @@
|
||||
class="van-ellipsis"
|
||||
/>
|
||||
<div
|
||||
v-text="confirmButtonText || $t('confirm')"
|
||||
:class="b('confirm')"
|
||||
@click="emit('confirm')"
|
||||
>
|
||||
{{ confirmButtonText || $t('confirm') }}
|
||||
</div>
|
||||
/>
|
||||
</slot>
|
||||
</div>
|
||||
<div
|
||||
|
Reference in New Issue
Block a user