From 04fb4674d322bea001f030d29bd5f111ed397f99 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 25 三月 2024 12:04:26 +0800 Subject: [PATCH] 视频修改 --- custom-tab-bar/index.wxml | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index 01c11e0..1c93f72 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -1,10 +1,11 @@ <t-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"> + <t-tab-bar-item wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="id"> <view class="custom-tab-bar-wrapper"> <!-- <t-icon prefix="wr" name="{{item.icon}}" size="48rpx" /> <view class="text">{{ item.text }}</view> --> - <t-image wx:if="{{active !== index}}" class="tabImg" src="{{item.icon}}" mode="heightFix" width="22" height="22" /> - <t-image wx:else class="tabImg" src="{{item.activeIcon}}" mode="heightFix" width="22" height="22" /> + <!-- <t-image wx:if="{{active !== index}}" class="tabImg" src="{{item.icon}}" mode="heightFix" width="22" height="22" /> + <t-image wx:else class="tabImg" src="{{item.activeIcon}}" mode="heightFix" width="22" height="22" /> --> + <t-image class="tabImg" src="{{active == item.id ? item.activeIcon : item.icon}}" width="22" height="22"></t-image> <view class="text">{{ item.text }}</view> </view> </t-tab-bar-item> -- Gitblit v1.9.1