From f46786f11c5c08ead7501a82e5a71430ad69b782 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期日, 27 四月 2025 17:39:24 +0800 Subject: [PATCH] 修复线索问题定位错误问题 --- custom-tab-bar/index.wxml | 21 ++++++--------------- 1 files changed, 6 insertions(+), 15 deletions(-) diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index 52e0ca1..e68dbb9 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -1,18 +1,9 @@ <view class="custom-tab-bar"> - <t-tab-bar - value="{{active}}" - bindchange="onChange" - split="{{false}}" - shape="normal" - > - <t-tab-bar-item - wx:for="{{list}}" - wx:for-item="item" - wx:for-index="index" - wx:key="index" - icon="{{item.icon}}" - > - {{ item.text }} - </t-tab-bar-item> + <t-tab-bar value="{{active}}" bindchange="onChange" split="{{false}}" shape="normal"> + <block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"> + <t-tab-bar-item class="{{item.visible ? '' : 'hidden'}}" icon="{{item.icon}}"> + {{ item.text }} + </t-tab-bar-item> + </block> </t-tab-bar> </view> -- Gitblit v1.9.3