pages.config.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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: '#999999',
  19. selectedColor: '#018d71',
  20. backgroundColor: '#F8F8F8',
  21. borderStyle: 'black',
  22. height: '50px',
  23. fontSize: '10px',
  24. iconWidth: '24px',
  25. spacing: '3px',
  26. list: [
  27. {
  28. iconPath: 'static/tabbar/home.png',
  29. selectedIconPath: 'static/tabbar/homeHL.png',
  30. pagePath: 'pages/index/index',
  31. text: '首页',
  32. },
  33. {
  34. iconPath: 'static/tabbar/example.png',
  35. selectedIconPath: 'static/tabbar/exampleHL.png',
  36. pagePath: 'pages/demo/index',
  37. text: '示例',
  38. },
  39. {
  40. iconPath: 'static/tabbar/personal.png',
  41. selectedIconPath: 'static/tabbar/personalHL.png',
  42. pagePath: 'pages/my/index',
  43. text: '我的',
  44. },
  45. ],
  46. },
  47. // 你也可以定义 pages 字段,它具有最高的优先级。
  48. pages: [],
  49. /**
  50. * subPackages 扫描的目录,例如:src/pages-sub
  51. * @type SubPackage[] | undefined
  52. */
  53. subPackages: undefined,
  54. })