mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
fix: toast message support html
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<div class="zan-toast" :class="['zan-toast--' + displayStyle]" v-show="visible">
|
<div class="zan-toast" :class="['zan-toast--' + displayStyle]" v-show="visible">
|
||||||
<!-- 只显示文字 -->
|
<!-- 只显示文字 -->
|
||||||
<template v-if="displayStyle === 'text'" >
|
<template v-if="displayStyle === 'text'" >
|
||||||
<div class="zan-toast__text">{{message}}</div>
|
<div class="zan-toast__text" v-html="message"></div>
|
||||||
</template>
|
</template>
|
||||||
<!-- 加载中 -->
|
<!-- 加载中 -->
|
||||||
<template v-if="displayStyle === 'loading'">
|
<template v-if="displayStyle === 'loading'">
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<!-- 图案加文字 -->
|
<!-- 图案加文字 -->
|
||||||
<template v-if="displayStyle === 'default'">
|
<template v-if="displayStyle === 'default'">
|
||||||
<zan-icon class="zan-toast__icon" name="check"></zan-icon>
|
<zan-icon class="zan-toast__icon" name="check"></zan-icon>
|
||||||
<div class="zan-toast__text">{{message}}</div>
|
<div class="zan-toast__text" v-html="message"></div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
Reference in New Issue
Block a user