pages.config.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. globalStyle: {
  4. navigationStyle: 'default',
  5. navigationBarTitleText: 'unibest',
  6. navigationBarBackgroundColor: '#f8f8f8',
  7. navigationBarTextStyle: 'black',
  8. backgroundColor: '#FFFFFF',
  9. },
  10. easycom: {
  11. autoscan: true,
  12. custom: {
  13. '^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
  14. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  15. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  16. 'z-paging/components/z-paging$1/z-paging$1.vue',
  17. },
  18. },
  19. // 如果不需要tabBar,请使用 spa 模板。(pnpm create xxx -t spa)
  20. tabBar: {
  21. custom: true,
  22. color: '#999999',
  23. selectedColor: '#018d71',
  24. backgroundColor: '#F8F8F8',
  25. borderStyle: 'black',
  26. height: '50px',
  27. fontSize: '10px',
  28. iconWidth: '24px',
  29. spacing: '3px',
  30. list: [
  31. // 注意tabbar路由需要使用 layout:tabbar 布局
  32. {
  33. pagePath: 'pages/index/index',
  34. text: '首页',
  35. icon: 'home',
  36. iconType: 'wot',
  37. },
  38. {
  39. pagePath: 'pages/about/about',
  40. text: '关于',
  41. icon: 'i-carbon-code',
  42. iconType: 'unocss',
  43. },
  44. // {
  45. // pagePath: 'pages/my/index',
  46. // text: '我的',
  47. // icon: '/static/logo.svg',
  48. // iconType: 'local',
  49. // },
  50. {
  51. pagePath: 'pages/mine/index',
  52. text: '我的',
  53. icon: 'iconfont icon-my',
  54. iconType: 'iconfont',
  55. },
  56. ],
  57. },
  58. })