pages.config.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.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: {
  20. custom: true,
  21. color: '#999999',
  22. selectedColor: '#018d71',
  23. backgroundColor: '#F8F8F8',
  24. borderStyle: 'black',
  25. height: '50px',
  26. fontSize: '10px',
  27. iconWidth: '24px',
  28. spacing: '3px',
  29. list: [
  30. {
  31. pagePath: 'pages/index/index',
  32. text: '首页',
  33. icon: 'home',
  34. iconType: 'wot',
  35. },
  36. {
  37. pagePath: 'pages/index/about',
  38. text: '关于',
  39. icon: 'i-carbon-3d-mpr-toggle',
  40. iconType: 'unocss',
  41. },
  42. {
  43. pagePath: 'pages/my/index',
  44. text: '我的',
  45. icon: '/static/logo.svg',
  46. iconType: 'local',
  47. },
  48. ],
  49. },
  50. })