[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

View File

@@ -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>