Jelajahi Sumber

✨ feat(config): 添加底部导航栏配置

- 配置自定义tabBar组件基础样式
- 设置首页、发现、我的三个导航项
- 定义导航栏颜色方案:默认#7f7f7f,选中#1890ff,背景白色
yourname 4 bulan lalu
induk
melakukan
587cd72d69
1 mengubah file dengan 21 tambahan dan 0 penghapusan
  1. 21 0
      mini/src/app.config.ts

+ 21 - 0
mini/src/app.config.ts

@@ -12,5 +12,26 @@ export default defineAppConfig({
     navigationBarTitleText: '小程序Starter',
     navigationBarTextStyle: 'white',
     navigationStyle: 'custom'
+  },
+  tabBar: {
+    custom: true,
+    color: '#7f7f7f',
+    selectedColor: '#1890ff',
+    backgroundColor: '#ffffff',
+    borderStyle: 'white',
+    list: [
+      {
+        pagePath: 'pages/index/index',
+        text: '首页'
+      },
+      {
+        pagePath: 'pages/explore/index',
+        text: '发现'
+      },
+      {
+        pagePath: 'pages/profile/index',
+        text: '我的'
+      }
+    ]
   }
 })