Browse Source

fix(tabbar): 修复pages.config.ts中的tabBar配置

EvilDragon 6 months ago
parent
commit
5b9dc5ab20
1 changed files with 8 additions and 7 deletions
  1. 8 7
      pages.config.ts

+ 8 - 7
pages.config.ts

@@ -21,22 +21,23 @@ export default defineUniPages({
     selectedColor: '#018d71',
     backgroundColor: '#F8F8F8',
     borderStyle: 'black',
-    height: '50px',
     fontSize: '10px',
     iconWidth: '24px',
     spacing: '3px',
+    custom: true,
+    height: '0px',
     list: [
       {
-        iconPath: 'static/tabbar/home.png',
-        selectedIconPath: 'static/tabbar/homeHL.png',
+        // iconPath: 'static/tabbar/home.png',
+        // selectedIconPath: 'static/tabbar/homeHL.png',
         pagePath: 'pages/index/index',
-        text: '首页',
+        // text: '首页',
       },
       {
-        iconPath: 'static/tabbar/example.png',
-        selectedIconPath: 'static/tabbar/exampleHL.png',
+        // iconPath: 'static/tabbar/example.png',
+        // selectedIconPath: 'static/tabbar/exampleHL.png',
         pagePath: 'pages/about/about',
-        text: '关于',
+        // text: '关于',
       },
     ],
   },