unibest/pages.config.ts

60 lines
1.5 KiB
TypeScript
Raw Normal View History

import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
export default defineUniPages({
globalStyle: {
navigationStyle: 'default',
2024-03-03 17:07:54 +08:00
navigationBarTitleText: 'unibest',
navigationBarBackgroundColor: '#f8f8f8',
navigationBarTextStyle: 'black',
backgroundColor: '#FFFFFF',
},
easycom: {
autoscan: true,
custom: {
'^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
2024-03-25 21:01:26 +08:00
'^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
2024-05-12 15:30:57 +08:00
'^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
'z-paging/components/z-paging$1/z-paging$1.vue',
},
},
2025-05-19 15:53:15 +08:00
// 如果不需要tabBar可以注释掉这个配置或者直接删除
2024-02-04 16:00:27 +08:00
tabBar: {
2024-04-02 17:31:39 +08:00
custom: true,
2024-02-04 16:00:27 +08:00
color: '#999999',
selectedColor: '#018d71',
backgroundColor: '#F8F8F8',
borderStyle: 'black',
height: '50px',
fontSize: '10px',
iconWidth: '24px',
spacing: '3px',
list: [
// 注意tabbar路由需要使用 layout:tabbar 布局
2024-02-04 16:00:27 +08:00
{
pagePath: 'pages/index/index',
text: '首页',
icon: 'home',
iconType: 'wot',
},
{
2024-05-28 11:33:15 +08:00
pagePath: 'pages/about/about',
text: '关于',
2024-05-12 16:37:25 +08:00
icon: 'i-carbon-code',
iconType: 'unocss',
2024-02-04 16:00:27 +08:00
},
2024-05-12 16:37:25 +08:00
// {
// pagePath: 'pages/my/index',
// text: '我的',
// icon: '/static/logo.svg',
// iconType: 'local',
// },
2024-02-04 16:00:27 +08:00
{
2024-05-11 09:36:26 +08:00
pagePath: 'pages/my/index',
text: '我的',
2024-05-12 16:37:25 +08:00
icon: 'iconfont icon-my',
iconType: 'iconfont',
2024-02-04 16:00:27 +08:00
},
],
},
})