[improvement] Template: use v-text instead of mustache (#2404)

This commit is contained in:
neverland
2018-12-30 11:20:38 +08:00
committed by GitHub
parent 6b7580042a
commit 6d362dc3eb
48 changed files with 207 additions and 410 deletions
+6 -8
View File
@@ -27,22 +27,20 @@
>
<van-button
v-show="showCancelButton"
:loading="loading.cancel"
size="large"
:class="b('cancel')"
:loading="loading.cancel"
:text="cancelButtonText || $t('cancel')"
@click="handleAction('cancel')"
>
{{ cancelButtonText || $t('cancel') }}
</van-button>
/>
<van-button
v-show="showConfirmButton"
size="large"
:loading="loading.confirm"
:class="[b('confirm'), { 'van-hairline--left': showCancelButton && showConfirmButton }]"
:loading="loading.confirm"
:text="confirmButtonText || $t('confirm')"
@click="handleAction('confirm')"
>
{{ confirmButtonText || $t('confirm') }}
</van-button>
/>
</div>
</div>
</transition>