pages.config.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. import { tabBar } from './src/tabbar/config'
  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. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  16. 'z-paging/components/z-paging$1/z-paging$1.vue',
  17. '^u--(.*)': 'uview-plus/components/u-$1/u-$1.vue',
  18. '^up-(.*)': 'uview-plus/components/u-$1/u-$1.vue',
  19. '^u-([^-].*)': 'uview-plus/components/u-$1/u-$1.vue',
  20. },
  21. },
  22. // 平台特定配置
  23. 'mp-weixin': {
  24. setting: {
  25. urlCheck: false,
  26. es6: true,
  27. enhance: true,
  28. postcss: true,
  29. },
  30. lazyCodeLoading: 'requiredComponents',
  31. // 微信小程序全局分享配置
  32. 'window': {
  33. 'enableShareAppMessage': true,
  34. 'enableShareTimeline': true,
  35. }
  36. },
  37. // tabbar 的配置统一在 “./src/tabbar/config.ts” 文件中
  38. 'tabBar': tabBar as any,
  39. })