[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:
neverland 2017-10-30 06:52:27 -05:00 committed by GitHub
parent 16fe6b2e6d
commit 422e4db118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>