[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
+8 -4
View File
@@ -5,7 +5,12 @@
:class="b([style, position])"
>
<!-- text only -->
<div v-if="style === 'text'">{{ message }}</div>
<div
v-if="style === 'text'"
v-text="message"
/>
<!-- html only -->
<div
v-if="style === 'html'"
v-html="message"
@@ -25,10 +30,9 @@
/>
<div
v-if="isDef(message)"
v-text="message"
:class="b('text')"
>
{{ message }}
</div>
/>
</template>
</div>
</transition>