1
0

charts.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. export default {
  4. layout: {
  5. path: '/charts',
  6. name: 'Charts',
  7. component: PAGE_LAYOUT_COMPONENT,
  8. redirect: '/charts/welcome',
  9. meta: {
  10. icon: 'ant-design:area-chart-outlined',
  11. title: '图表库',
  12. },
  13. },
  14. routes: [
  15. {
  16. path: '/echarts',
  17. name: 'Echarts',
  18. meta: {
  19. title: 'Echarts',
  20. },
  21. children: [
  22. {
  23. path: 'map',
  24. name: 'Map',
  25. component: () => import('/@/views/demo/echarts/Map.vue'),
  26. meta: {
  27. title: '地图',
  28. },
  29. },
  30. {
  31. path: 'line',
  32. name: 'Line',
  33. component: () => import('/@/views/demo/echarts/Line.vue'),
  34. meta: {
  35. title: '折线图',
  36. },
  37. },
  38. {
  39. path: 'pie',
  40. name: 'Pie',
  41. component: () => import('/@/views/demo/echarts/Pie.vue'),
  42. meta: {
  43. title: '饼图',
  44. },
  45. },
  46. ],
  47. },
  48. {
  49. path: '/apexChart',
  50. name: 'ApexChart',
  51. meta: {
  52. title: 'ApexChart',
  53. },
  54. component: () => import('/@/views/demo/echarts/apex/index.vue'),
  55. },
  56. ],
  57. } as AppRouteModule;