mirror of
https://github.com/ColugoMum/Smart_container.git
synced 2025-06-03 21:54:04 +08:00
2 lines
557 B
Plaintext
2 lines
557 B
Plaintext
<view class="weui-tabbar {{extClass}}"><view data-index="{{index}}" bindtap="tabChange" wx:for="{{list}}" wx:key="index" class="weui-tabbar__item {{index === current ? 'weui-bar__item_on' : ''}}"><view style="position: relative;display:inline-block;"><image src="{{current === index ? item.selectedIconPath : item.iconPath}}" class="weui-tabbar__icon"/><mp-badge wx:if="{{item.badge || item.dot}}" content="{{item.badge}}" style="position: absolute;top:-2px;left:calc(100% - 3px)"/></view><view class="weui-tabbar__label">{{item.text}}</view></view></view>
|