mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Tabbar cann't display info when use icon slot (#269)
* [bugfix] CouponList always show empty info * [bugfix] add click feedback of buttons in components * [Doc] add custom theme document * [new feature] Notice bar support more props * [bugfix] PullRefresh test cases * [bugfix] unused NoticeBar style * [bugfix] Swipe width calc error * [Doc] english document of all action components * [Doc] change document site path to /zanui/vant * [Doc] fix * [bugfix] uploader style error * [bugfix] tabs document demo * [new feature] Cell support vue-router target route * [bugfix] add cell test cases * update yarn.lock * [bugfix] Tabbar cann't display info when use icon slot
This commit is contained in:
parent
16fe6b2e6d
commit
422e4db118
@ -2,10 +2,9 @@
|
||||
<div :class="['van-tabbar-item', { 'van-tabbar-item--active': active }]" @click="onClick">
|
||||
<div :class="['van-tabbar-item__icon', { 'van-tabbar-item__icon-dot': dot }]">
|
||||
<slot name="icon">
|
||||
<van-icon v-if="icon" :name="icon">
|
||||
<div v-if="info" class="van-tabbar-item__info">{{ info }}</div>
|
||||
</van-icon>
|
||||
<van-icon v-if="icon" :name="icon" />
|
||||
</slot>
|
||||
<div v-if="info" class="van-tabbar-item__info">{{ info }}</div>
|
||||
</div>
|
||||
<div class="van-tabbar-item__text">
|
||||
<slot></slot>
|
||||
|
Loading…
x
Reference in New Issue
Block a user