[improvement] Template: use v-text instead of mustache (#2404)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user