pages.config.ts 1007 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. import tabbarList from './src/components/fg-tabbar/tabbarList'
  3. export default defineUniPages({
  4. globalStyle: {
  5. navigationStyle: 'default',
  6. navigationBarTitleText: 'unibest',
  7. navigationBarBackgroundColor: '#f8f8f8',
  8. navigationBarTextStyle: 'black',
  9. backgroundColor: '#FFFFFF',
  10. },
  11. easycom: {
  12. autoscan: true,
  13. custom: {
  14. '^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
  15. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  16. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  17. 'z-paging/components/z-paging$1/z-paging$1.vue',
  18. },
  19. },
  20. // 如果不需要tabBar,推荐使用 spa 模板。(pnpm create xxx -t spa)
  21. tabBar: {
  22. custom: true,
  23. color: '#999999',
  24. selectedColor: '#018d71',
  25. backgroundColor: '#F8F8F8',
  26. borderStyle: 'black',
  27. height: '50px',
  28. fontSize: '10px',
  29. iconWidth: '24px',
  30. spacing: '3px',
  31. list: tabbarList as any,
  32. },
  33. })