From b70e26c7be40ad4ccb971f3bbc0fbcb32fe82df1 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 03 四月 2024 17:14:20 +0800
Subject: [PATCH] 学习

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

diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml
index 5b38995..f96ce3b 100644
--- a/custom-tab-bar/index.wxml
+++ b/custom-tab-bar/index.wxml
@@ -10,8 +10,10 @@
 <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="{{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="tab-images">
+        <image wx:if="{{active !== index}}" class="tabImg" src="{{item.icon}}" mode="aspectFit" />
+        <image wx:else class="tabImg" src="{{item.activeIcon}}" mode="aspectFit" />
+      </view>
       <view class="text {{active == index ? 'activeText' : ''}}">{{ item.text }}</view>
     </view>
   </view>

--
Gitblit v1.9.1