refactor(tabbar): 将tabbar配置抽离为单独模块以提高可维护性
将pages.config.ts中的tabbar配置抽离到单独的tabbarList.ts文件 移除pages.json中无用的__esModule字段
This commit is contained in:
27
src/components/fg-tabbar/tabbarList.ts
Normal file
27
src/components/fg-tabbar/tabbarList.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
export default [
|
||||
// 注意tabbar路由需要使用 layout:tabbar 布局
|
||||
{
|
||||
pagePath: 'pages/index/index',
|
||||
text: '首页',
|
||||
icon: 'home',
|
||||
iconType: 'wot',
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/about/about',
|
||||
text: '关于',
|
||||
icon: 'i-carbon-code',
|
||||
iconType: 'unocss',
|
||||
},
|
||||
// {
|
||||
// pagePath: 'pages/my/index',
|
||||
// text: '我的',
|
||||
// icon: '/static/logo.svg',
|
||||
// iconType: 'local',
|
||||
// },
|
||||
// {
|
||||
// pagePath: 'pages/mine/index',
|
||||
// text: '我的',
|
||||
// icon: 'iconfont icon-my',
|
||||
// iconType: 'iconfont',
|
||||
// },
|
||||
]
|
||||
Reference in New Issue
Block a user