| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
- export default defineUniPages({
- globalStyle: {
- navigationStyle: 'default',
- navigationBarTitleText: 'unibest',
- navigationBarBackgroundColor: '#f8f8f8',
- navigationBarTextStyle: 'black',
- backgroundColor: '#FFFFFF',
- },
- easycom: {
- autoscan: true,
- custom: {
- '^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
- '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
- '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
- 'z-paging/components/z-paging$1/z-paging$1.vue',
- },
- },
- // 如果不需要tabBar,推荐使用 spa 模板。(pnpm create xxx -t spa)
- tabBar: {
- color: '#999999',
- selectedColor: '#018d71',
- backgroundColor: '#F8F8F8',
- borderStyle: 'black',
- height: '50px',
- fontSize: '10px',
- iconWidth: '24px',
- spacing: '3px',
- list: [
- {
- iconPath: 'static/tabbar/home.png',
- selectedIconPath: 'static/tabbar/homeHL.png',
- pagePath: 'pages/index/index',
- text: '首页',
- },
- {
- iconPath: 'static/tabbar/example.png',
- selectedIconPath: 'static/tabbar/exampleHL.png',
- pagePath: 'pages/about/about',
- text: '关于',
- },
- {
- iconPath: 'static/tabbar/personal.png',
- selectedIconPath: 'static/tabbar/personalHL.png',
- pagePath: 'pages/mine/index',
- text: '我的',
- },
- ],
- },
- // 微信小程序特定配置
- // 'mp-weixin': {
- // lazyCodeLoading: 'requiredComponents', // 微信小程序懒加载配置
- // },
- // 使用条件编译添加微信小程序特定配置
- // #ifdef MP-WEIXIN
- // lazyCodeLoading: 'requiredComponents',
- // #endif
- // 使用 custom 字段注入原生微信小程序配置
- // custom: {
- // mpWeixin: {
- // appJson: {
- // lazyCodeLoading: 'requiredComponents',
- // },
- // },
- // },
- })
|