pages.config.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. '^uv-(.*)': '@climblee/uv-ui/components/uv-$1/uv-$1.vue',
  14. },
  15. },
  16. tabBar: {
  17. color: '#999999',
  18. selectedColor: '#018d71',
  19. backgroundColor: '#F8F8F8',
  20. borderStyle: 'black',
  21. height: '50px',
  22. fontSize: '10px',
  23. iconWidth: '24px',
  24. spacing: '3px',
  25. list: [
  26. {
  27. iconPath: 'static/tabbar/home.png',
  28. selectedIconPath: 'static/tabbar/homeHL.png',
  29. pagePath: 'pages/index/index',
  30. text: '首页',
  31. },
  32. {
  33. iconPath: 'static/tabbar/example.png',
  34. selectedIconPath: 'static/tabbar/exampleHL.png',
  35. pagePath: 'pages/index/about',
  36. text: '关于',
  37. },
  38. ],
  39. },
  40. })