fix(Toast): fix classname 'vant-toast-text' (#4587)

toast组件不存在icon的type值,但wxml中使用了该值做判断
This commit is contained in:
wubinsheng 2021-11-06 15:27:54 +08:00 committed by GitHub
parent f58d0830c8
commit 104691e18f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
custom-class="van-toast__container"
>
<view
class="van-toast van-toast--{{ type === 'icon' ? 'icon' : 'text' }} van-toast--{{ position }}"
class="van-toast van-toast--{{ (type === 'text' || type === 'html') ? 'text' : 'icon' }} van-toast--{{ position }}"
catch:touchmove="noop"
>
<!-- text only -->