mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Toast): fix classname 'vant-toast-text' (#4587)
toast组件不存在icon的type值,但wxml中使用了该值做判断
This commit is contained in:
parent
f58d0830c8
commit
104691e18f
@ -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 -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user