pages.config.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { defineUniPages } from "@uni-helper/vite-plugin-uni-pages";
  2. export default defineUniPages({
  3. pages: [],
  4. globalStyle: {
  5. // 导航栏配置
  6. navigationBarBackgroundColor: "@navBgColor",
  7. navigationBarTextStyle: "@navTxtStyle",
  8. navigationBarTitleText: "zhangtao",
  9. // 页面背景配置
  10. backgroundColor: "@bgColor",
  11. backgroundTextStyle: "@bgTxtStyle",
  12. backgroundColorTop: "@bgColorTop",
  13. backgroundColorBottom: "@bgColorBottom",
  14. // 下拉刷新配置
  15. enablePullDownRefresh: false,
  16. onReachBottomDistance: 50,
  17. // 动画配置
  18. animationType: "pop-in",
  19. animationDuration: 300,
  20. },
  21. tabBar: {
  22. custom: true,
  23. // #ifdef MP-ALIPAY
  24. customize: true,
  25. // 暂时不生效。4.71.2025061206-alpha已修复:https://uniapp.dcloud.net.cn/release-note-alpha.html#_4-71-2025061206-alpha,我们等正式版发布后更新。
  26. overlay: true,
  27. // #endif
  28. height: "0",
  29. color: "@tabColor",
  30. selectedColor: "@tabSelectedColor",
  31. backgroundColor: "@tabBgColor",
  32. borderStyle: "@tabBorderStyle",
  33. list: [
  34. {
  35. pagePath: "pages/index/index",
  36. },
  37. {
  38. pagePath: "pages/about/index",
  39. },
  40. ],
  41. },
  42. });