From 7eab4acb4bb2060970f81840e5d2b72f259b07cb Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期四, 28 三月 2024 11:40:19 +0800
Subject: [PATCH] yangshu

---
 custom-tab-bar/index.wxml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml
index 22debee..5b38995 100644
--- a/custom-tab-bar/index.wxml
+++ b/custom-tab-bar/index.wxml
@@ -10,9 +10,9 @@
 <view class="tabBarBox">
   <view class="tabItem" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index" bindtap="changeTab" data-num="{{index}}">
     <view class="custom-tab-bar-wrapper">
-      <t-image wx:if="{{selected !== index}}" class="tabImg" src="{{item.icon}}" mode="aspectFill" width="22" height="22" />
-      <t-image wx:else class="tabImg" src="{{item.activeIcon}}" mode="aspectFill" width="22" height="22" />
-      <view class="text {{selected == index ? 'activeText' : ''}}">{{ item.text }}</view>
+      <t-image wx:if="{{active !== index}}" class="tabImg" src="{{item.icon}}" mode="aspectFit" width="22" height="22" />
+      <t-image wx:else class="tabImg" src="{{item.activeIcon}}" mode="aspectFit" width="22" height="22" />
+      <view class="text {{active == index ? 'activeText' : ''}}">{{ item.text }}</view>
     </view>
   </view>
 </view>
\ No newline at end of file

--
Gitblit v1.9.1