pages.config.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. globalStyle: {
  4. navigationStyle: 'default',
  5. navigationBarTitleText: '猫耳云打印',
  6. navigationBarBackgroundColor: '#f8f8f8',
  7. navigationBarTextStyle: 'black',
  8. backgroundColor: '#FFFFFF',
  9. },
  10. easycom: {
  11. autoscan: true,
  12. custom: {
  13. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  14. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  15. 'z-paging/components/z-paging$1/z-paging$1.vue',
  16. },
  17. },
  18. tabBar: {
  19. color: '#333333',
  20. selectedColor: '#1487f4',
  21. backgroundColor: '#F8F8F8',
  22. borderStyle: 'black',
  23. height: '50px',
  24. fontSize: '12px',
  25. iconWidth: '24px',
  26. spacing: '3px',
  27. list: [
  28. {
  29. iconPath: 'static/tabbar/home.png',
  30. selectedIconPath: 'static/tabbar/homeHL.png',
  31. pagePath: 'pages/index/index',
  32. text: '首页',
  33. },
  34. {
  35. // TODO: 使用自定义菜单栏 / midButton样式
  36. iconPath: 'static/tabbar/device.png',
  37. selectedIconPath: 'static/tabbar/deviceHL.png',
  38. pagePath: 'pages/assistant/index',
  39. text: '设备',
  40. },
  41. {
  42. iconPath: 'static/tabbar/personal.png',
  43. selectedIconPath: 'static/tabbar/personalHL.png',
  44. pagePath: 'pages/personal/index',
  45. text: '我的',
  46. },
  47. ],
  48. // midButton: {
  49. // width: '80px',
  50. // height: '80px',
  51. // iconPath: 'static/tabbar/deviceHL.png',
  52. // iconWidth: '50px',
  53. // text: '设备',
  54. // }
  55. },
  56. })