From f2a0ea849099f49a3d2a9c7e5c44d033df22468f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 14 八月 2024 14:55:38 +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