pages.config.ts 1.5 KB

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