charts.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { getParentLayout, LAYOUT } from '/@/router/constant';
  3. import { t } from '/@/hooks/web/useI18n';
  4. const charts: AppRouteModule = {
  5. path: '/charts',
  6. name: 'Charts',
  7. component: LAYOUT,
  8. redirect: '/charts/apexChart',
  9. meta: {
  10. icon: 'ion:bar-chart-outline',
  11. title: t('routes.demo.charts.charts'),
  12. },
  13. children: [
  14. {
  15. path: 'baiduMap',
  16. name: 'BaiduMap',
  17. meta: {
  18. title: t('routes.demo.charts.baiduMap'),
  19. },
  20. component: () => import('/@/views/demo/charts/map/Baidu.vue'),
  21. },
  22. {
  23. path: 'aMap',
  24. name: 'AMap',
  25. meta: {
  26. title: t('routes.demo.charts.aMap'),
  27. },
  28. component: () => import('/@/views/demo/charts/map/Amap.vue'),
  29. },
  30. {
  31. path: 'googleMap',
  32. name: 'GoogleMap',
  33. meta: {
  34. title: t('routes.demo.charts.googleMap'),
  35. },
  36. component: () => import('/@/views/demo/charts/map/Google.vue'),
  37. },
  38. {
  39. path: 'apexChart',
  40. name: 'ApexChart',
  41. meta: {
  42. title: t('routes.demo.charts.apexChart'),
  43. },
  44. component: () => import('/@/views/demo/charts/apex/index.vue'),
  45. },
  46. {
  47. path: 'echarts',
  48. name: 'Echarts',
  49. component: getParentLayout('Echarts'),
  50. meta: {
  51. title: 'Echarts',
  52. },
  53. redirect: '/charts/echarts/map',
  54. children: [
  55. {
  56. path: 'map',
  57. name: 'Map',
  58. component: () => import('/@/views/demo/charts/Map.vue'),
  59. meta: {
  60. title: t('routes.demo.charts.map'),
  61. },
  62. },
  63. {
  64. path: 'line',
  65. name: 'Line',
  66. component: () => import('/@/views/demo/charts/Line.vue'),
  67. meta: {
  68. title: t('routes.demo.charts.line'),
  69. },
  70. },
  71. {
  72. path: 'pie',
  73. name: 'Pie',
  74. component: () => import('/@/views/demo/charts/Pie.vue'),
  75. meta: {
  76. title: t('routes.demo.charts.pie'),
  77. },
  78. },
  79. ],
  80. },
  81. ],
  82. };
  83. export default charts;