pages.config.ts 1.4 KB

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