feat(tabbar): 调整
This commit is contained in:
parent
6673c2e269
commit
d35fabd893
@ -49,17 +49,11 @@ export default defineUniPages({
|
|||||||
// iconType: 'local',
|
// iconType: 'local',
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
pagePath: 'pages/my/index',
|
pagePath: 'pages/mine/index',
|
||||||
text: '我的',
|
text: '我的',
|
||||||
icon: 'iconfont icon-my',
|
icon: 'iconfont icon-my',
|
||||||
iconType: 'iconfont',
|
iconType: 'iconfont',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
iconPath: 'static/tabbar/personal.png',
|
|
||||||
selectedIconPath: 'static/tabbar/personalHL.png',
|
|
||||||
pagePath: 'pages/mine/index',
|
|
||||||
text: '我的',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -38,16 +38,10 @@
|
|||||||
"iconType": "unocss"
|
"iconType": "unocss"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/my/index",
|
"pagePath": "pages/mine/index",
|
||||||
"text": "我的",
|
"text": "我的",
|
||||||
"icon": "iconfont icon-my",
|
"icon": "iconfont icon-my",
|
||||||
"iconType": "iconfont"
|
"iconType": "iconfont"
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "static/tabbar/personal.png",
|
|
||||||
"selectedIconPath": "static/tabbar/personalHL.png",
|
|
||||||
"pagePath": "pages/mine/index",
|
|
||||||
"text": "我的"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -81,6 +75,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/mine/index",
|
"path": "pages/mine/index",
|
||||||
"type": "page",
|
"type": "page",
|
||||||
|
"layout": "tabbar",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的"
|
"navigationBarTitleText": "我的"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'tabbar',
|
||||||
style: {
|
style: {
|
||||||
navigationBarTitleText: '我的',
|
navigationBarTitleText: '我的',
|
||||||
},
|
},
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
<route lang="json5" type="page">
|
|
||||||
{
|
|
||||||
layout: 'tabbar',
|
|
||||||
style: {
|
|
||||||
navigationBarTitleText: '我的',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</route>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<view class="pt-40 text-xl text-center text-green-500">我的页面</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts" setup>
|
|
||||||
//
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
//
|
|
||||||
</style>
|
|
1
src/types/components.d.ts
vendored
1
src/types/components.d.ts
vendored
@ -8,6 +8,7 @@ export {}
|
|||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
FgNavbar: typeof import('./../components/fg-navbar/fg-navbar.vue')['default']
|
FgNavbar: typeof import('./../components/fg-navbar/fg-navbar.vue')['default']
|
||||||
|
FgTabbar: typeof import('./../components/fg-tabbar/fg-tabbar.vue')['default']
|
||||||
PrivacyPopup: typeof import('./../components/privacy-popup/privacy-popup.vue')['default']
|
PrivacyPopup: typeof import('./../components/privacy-popup/privacy-popup.vue')['default']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3
src/types/uni-pages.d.ts
vendored
3
src/types/uni-pages.d.ts
vendored
@ -6,7 +6,6 @@
|
|||||||
interface NavigateToOptions {
|
interface NavigateToOptions {
|
||||||
url: "/pages/index/index" |
|
url: "/pages/index/index" |
|
||||||
"/pages/about/about" |
|
"/pages/about/about" |
|
||||||
"/pages/my/index"|
|
|
||||||
"/pages/login/index" |
|
"/pages/login/index" |
|
||||||
"/pages/mine/index" |
|
"/pages/mine/index" |
|
||||||
"/pages/mine/about/index" |
|
"/pages/mine/about/index" |
|
||||||
@ -16,7 +15,7 @@ interface NavigateToOptions {
|
|||||||
interface RedirectToOptions extends NavigateToOptions {}
|
interface RedirectToOptions extends NavigateToOptions {}
|
||||||
|
|
||||||
interface SwitchTabOptions {
|
interface SwitchTabOptions {
|
||||||
url: "/pages/index/index" | "/pages/about/about" | "/pages/my/index"|"/pages/mine/index"
|
url: "/pages/index/index" | "/pages/about/about" | "/pages/mine/index"
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
|
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user