We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efaf057 commit f8220c5Copy full SHA for f8220c5
src/tabbar/tabbar.wxml
@@ -3,7 +3,7 @@
3
<view data-index='{{index}}' bindtap="tabChange" wx:for="{{list}}" class="weui-tabbar__item {{index === current ? 'weui-bar__item_on' : ''}}">
4
<view style="position: relative;display:inline-block;">
5
<image src="{{current === index ? item.selectedIconPath : item.iconPath}}" class="weui-tabbar__icon"></image>
6
- <mp-badge content="{{item.badge}}" style="position: absolute;top:-2px;left:calc(100% - 3px)"></mp-badge>
+ <mp-badge wx:if="{{item.badge}}" content="{{item.badge}}" style="position: absolute;top:-2px;left:calc(100% - 3px)"></mp-badge>
7
</view>
8
<view class="weui-tabbar__label">{{item.text}}</view>
9
0 commit comments