pages.config.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
  14. '^uv-(.*)': '@climblee/uv-ui/components/uv-$1/uv-$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/index/about',
  37. text: '关于',
  38. },
  39. ],
  40. },
  41. })