mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
[bugfix] Tabbar: icon vertical align (#1002)
This commit is contained in:
parent
7a0de4d6bd
commit
294cd3d77e
@ -3,7 +3,12 @@
|
||||
bind:tap="onClick"
|
||||
>
|
||||
<view class="van-tabbar-item__icon {{ dot ? 'van-tabbar-item__icon--dot' : '' }}">
|
||||
<van-icon wx:if="{{ icon }}" name="{{ icon }}" info="{{ info }}" />
|
||||
<van-icon
|
||||
wx:if="{{ icon }}"
|
||||
name="{{ icon }}"
|
||||
info="{{ info }}"
|
||||
customStyle="display: block"
|
||||
/>
|
||||
<block wx:else>
|
||||
<slot wx:if="{{ active }}" name="icon-active" />
|
||||
<slot wx:else name="icon" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user