From e363ef301c60f98e6138f4b493491cef5b532a6c Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Thu, 7 Aug 2025 21:26:25 +0800 Subject: [PATCH] =?UTF-8?q?docs(tabbar):=20=E6=9B=B4=E6=96=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=AD=E5=85=B3=E4=BA=8E=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=B1=BB=E5=9E=8B=E7=9A=84=E6=B3=A8=E9=87=8A=E8=AF=B4?= =?UTF-8?q?=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 309c12e..e61ffcd 100644 --- a/src/tabbar/config.ts +++ b/src/tabbar/config.ts @@ -3,7 +3,7 @@ import type { TabBar } from '@uni-helper/vite-plugin-uni-pages' type NativeTabBarItem = TabBar['list'][0] type CustomTabBarItem = Pick & { - iconType: 'uniUi' | 'uiLib' | 'unocss' | 'iconfont' | 'image' + iconType: 'uniUi' | 'uiLib' | 'unocss' | 'iconfont' | 'image' // 不建议用 image 模式,需要配置2张图 icon: any // 其实是 string 类型,这里是为了避免 ts 报错 (tabbar/index.vue 里面 uni-icons 那行) activeIcon?: string // 只有在 image 模式下才需要,传递的是高亮的图片(PS: 不建议用 image 模式) }