From dd8e14af0ae3f9a2b61c992d87ea7b047879d72f Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Thu, 7 Aug 2025 21:25:25 +0800 Subject: [PATCH] =?UTF-8?q?docs(tabbar):=20=E4=BF=AE=E6=AD=A3=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E4=B8=AD=E5=85=B3=E4=BA=8E=20icon=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tabbar/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabbar/config.ts b/src/tabbar/config.ts index 48b289e..309c12e 100644 --- a/src/tabbar/config.ts +++ b/src/tabbar/config.ts @@ -4,7 +4,7 @@ type NativeTabBarItem = TabBar['list'][0] type CustomTabBarItem = Pick & { iconType: 'uniUi' | 'uiLib' | 'unocss' | 'iconfont' | 'image' - icon: any // 其实是 string 类型,这里是为了避免 ts 报错 + icon: any // 其实是 string 类型,这里是为了避免 ts 报错 (tabbar/index.vue 里面 uni-icons 那行) activeIcon?: string // 只有在 image 模式下才需要,传递的是高亮的图片(PS: 不建议用 image 模式) }