tabbarList.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export const tabbarList = [
  2. // 注意tabbar路由需要使用 layout:tabbar 布局
  3. {
  4. pagePath: 'pages/index/index',
  5. text: '首页',
  6. icon: 'home',
  7. iconType: 'wot',
  8. },
  9. {
  10. pagePath: 'pages/about/about',
  11. text: '关于',
  12. icon: 'i-carbon-code',
  13. iconType: 'unocss',
  14. },
  15. // {
  16. // pagePath: 'pages/my/index',
  17. // text: '我的',
  18. // icon: '/static/logo.svg',
  19. // iconType: 'local',
  20. // },
  21. // {
  22. // pagePath: 'pages/mine/index',
  23. // text: '我的',
  24. // icon: 'iconfont icon-my',
  25. // iconType: 'iconfont',
  26. // },
  27. ]
  28. // midButton 仅App和H5支持
  29. export const midButton = {
  30. iconPath: '/static/logo.svg',
  31. text: '发布',
  32. }
  33. const _tabbar = {
  34. color: '#999999',
  35. selectedColor: '#018d71',
  36. backgroundColor: '#F8F8F8',
  37. borderStyle: 'black',
  38. height: '50px',
  39. fontSize: '10px',
  40. iconWidth: '24px',
  41. spacing: '3px',
  42. list: tabbarList as any,
  43. // midButton 仅App和H5支持
  44. midButton: midButton,
  45. }
  46. export const CUSTOM_TABBAR_ENABLE = false
  47. export const tabBar = CUSTOM_TABBAR_ENABLE ? undefined : _tabbar