Files
code-bang/frontend/miniapp/custom-tab-bar/index.wxml
T
2026-10-08 16:28:21 +08:00

24 lines
553 B
Plaintext

<t-tab-bar
class="custom-tab-bar"
value="{{active}}"
bindchange="onChange"
split="{{false}}"
>
<t-tab-bar-item
wx:for="{{list}}"
wx:for-item="item"
wx:for-index="index"
wx:key="index"
>
<view class="custom-tab-bar-wrapper">
<view class="tab-icon-wrap">
<t-icon prefix="wr" name="{{item.icon}}" size="48rpx" />
<!-- 消息tab未读红点 -->
<view wx:if="{{item.key === 'message' && unread > 0}}" class="unread-dot"></view>
</view>
<view class="text">{{ item.text }}</view>
</view>
</t-tab-bar-item>
</t-tab-bar>