Parcourir la source

refactor(pages.json): 移除未使用的图标配置

feige996 il y a 8 mois
Parent
commit
47b0d49415
2 fichiers modifiés avec 8 ajouts et 8 suppressions
  1. 7 7
      src/pages.json
  2. 1 1
      src/tabbar/config.ts

+ 7 - 7
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": "关于"
       }
     ]
   },

+ 1 - 1
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]