From 8fd05635fc0a96d65af941ba56d936e471de8d8b Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Tue, 5 Aug 2025 10:38:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(tabbar):=20=E8=B0=83=E6=95=B4=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89=E9=A1=BA=E5=BA=8F=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0activeIcon=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tabbar/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tabbar/config.ts b/src/tabbar/config.ts index 0053994..a22521d 100644 --- a/src/tabbar/config.ts +++ b/src/tabbar/config.ts @@ -1,8 +1,9 @@ import type { TabBar } from '@uni-helper/vite-plugin-uni-pages' type FgTabBarItem = TabBar['list'][0] & { - icon: any // 其实是 string 类型,这里是为了避免 ts 报错 iconType: 'uniUi' | 'uiLib' | 'unocss' | 'iconfont' | 'local' + icon: any // 其实是 string 类型,这里是为了避免 ts 报错 + activeIcon?: string // 只有在 local 模式下才需要,传递的是高亮的图片(PS: 不建议用 local 模式) } /**