pages.config.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. },
  16. },
  17. tabBar: {
  18. custom: true,
  19. color: '#999999',
  20. selectedColor: '#018d71',
  21. backgroundColor: '#F8F8F8',
  22. borderStyle: 'black',
  23. height: '50px',
  24. fontSize: '10px',
  25. iconWidth: '24px',
  26. spacing: '3px',
  27. list: [
  28. {
  29. pagePath: 'pages/index/index',
  30. icon: 'home',
  31. text: '首页',
  32. },
  33. {
  34. pagePath: 'pages/my/index',
  35. icon: 'user',
  36. // 经过验证发现unocss这样跨文件动态图标,无法显示,所以先用wot icon 吧
  37. // isUnocssIcon: true,
  38. text: '我的',
  39. },
  40. ],
  41. },
  42. })