refactor: 自定义tabbar

This commit is contained in:
菲鸽
2024-05-11 09:36:26 +08:00
parent de8df540c2
commit ee52ae132d
6 changed files with 75 additions and 123 deletions

View 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
},
})