diff --git a/src/pages.json b/src/pages.json index ede1e65..c2254af 100644 --- a/src/pages.json +++ b/src/pages.json @@ -15,7 +15,7 @@ } }, "tabBar": { - "custom": true, + "custom": false, "color": "#999999", "selectedColor": "#018d71", "backgroundColor": "#F8F8F8", @@ -26,16 +26,16 @@ "spacing": "3px", "list": [ { - "text": "首页", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/homeHL.png", "pagePath": "pages/index/index", - "iconType": "uniUi", - "icon": "home" + "text": "首页" }, { - "text": "关于", + "iconPath": "static/tabbar/example.png", + "selectedIconPath": "static/tabbar/exampleHL.png", "pagePath": "pages/about/about", - "iconType": "unocss", - "icon": "i-carbon-code" + "text": "关于" } ] }, diff --git a/src/tabbar/config.ts b/src/tabbar/config.ts index 3708c05..8a28010 100644 --- a/src/tabbar/config.ts +++ b/src/tabbar/config.ts @@ -20,7 +20,7 @@ export const TABBAR_STRATEGY_MAP = { // 如果是使用 NO_TABBAR(0),nativeTabbarList 和 customTabbarList 都不生效(里面的配置不用管) // 如果是使用 NATIVE_TABBAR(1),只需要配置 nativeTabbarList,customTabbarList 不生效 // 如果是使用 CUSTOM_TABBAR(2,3),只需要配置 customTabbarList,nativeTabbarList 不生效 -export const selectedTabbarStrategy = TABBAR_STRATEGY_MAP.CUSTOM_TABBAR_WITH_CACHE +export const selectedTabbarStrategy = TABBAR_STRATEGY_MAP.NATIVE_TABBAR type NativeTabBarItem = TabBar['list'][number]