pages.config.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. globalStyle: {
  4. navigationStyle: 'default',
  5. navigationBarTitleText: 'vue3-uniapp',
  6. navigationBarBackgroundColor: '#f8f8f8',
  7. navigationBarTextStyle: 'black',
  8. backgroundColor: '#FFFFFF',
  9. },
  10. easycom: {
  11. autoscan: true,
  12. custom: {
  13. '^fly-(.*)': '@/components/fly-$1/fly-$1.vue',
  14. '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
  15. },
  16. },
  17. tabBar: {
  18. color: '#7A7E83',
  19. selectedColor: '#00f',
  20. backgroundColor: '#ffffff',
  21. borderStyle: 'black',
  22. height: '50px',
  23. fontSize: '10px',
  24. iconWidth: '24px',
  25. spacing: '3px',
  26. list: [
  27. {
  28. pagePath: 'pages/index/index',
  29. iconPath: 'static/tab-icons/extui.png',
  30. selectedIconPath: 'static/tab-icons/extuiHL.png',
  31. text: '首页',
  32. },
  33. {
  34. pagePath: 'pages/throughout/index',
  35. iconPath: 'static/tab-icons/template.png',
  36. selectedIconPath: 'static/tab-icons/templateHL.png',
  37. text: '通屏',
  38. },
  39. ],
  40. },
  41. // 你也可以定义 pages 字段,它具有最高的优先级。
  42. pages: [],
  43. /**
  44. * subPackages 扫描的目录,例如:src/pages-sub
  45. * @type SubPackage[] | undefined
  46. */
  47. subPackages: undefined,
  48. })