refactor: 自定义tabbar
This commit is contained in:
21
src/components/fg-tabbar/tabbar.ts
Normal file
21
src/components/fg-tabbar/tabbar.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
export const tabbarList = [
|
||||
{
|
||||
path: '/pages/index/about',
|
||||
icon: 'home',
|
||||
isWotIcon: true,
|
||||
title: '首页',
|
||||
},
|
||||
{
|
||||
path: '/pages/index/index',
|
||||
icon: 'i-carbon-user-avatar',
|
||||
isWotIcon: false,
|
||||
title: '我的',
|
||||
},
|
||||
]
|
||||
|
||||
export const tabbarStore = reactive({
|
||||
curIdx: 0,
|
||||
setCurIdx(idx: number) {
|
||||
this.curIdx = idx
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user