Blame view

src/router/routes/modules/demo/charts.ts 1.84 KB
1
2
import type { AppRouteModule } from '/@/router/types';
vben authored
3
import { getParentLayout, LAYOUT } from '/@/router/constant';
4
import { t } from '/@/hooks/web/useI18n';
5
6
const charts: AppRouteModule = {
vben authored
7
8
9
  path: '/charts',
  name: 'Charts',
  component: LAYOUT,
10
  redirect: '/charts/echarts/map',
vben authored
11
  meta: {
12
    icon: 'ion:bar-chart-outline',
13
    title: t('routes.demo.charts.charts'),
14
  },
vben authored
15
  children: [
16
    {
17
18
19
20
21
22
23
24
25
26
27
28
29
      path: 'baiduMap',
      name: 'BaiduMap',
      meta: {
        title: t('routes.demo.charts.baiduMap'),
      },
      component: () => import('/@/views/demo/charts/map/Baidu.vue'),
    },
    {
      path: 'aMap',
      name: 'AMap',
      meta: {
        title: t('routes.demo.charts.aMap'),
      },
Vben authored
30
      component: () => import('/@/views/demo/charts/map/Gaode.vue'),
31
32
33
34
35
36
37
38
39
40
41
    },
    {
      path: 'googleMap',
      name: 'GoogleMap',
      meta: {
        title: t('routes.demo.charts.googleMap'),
      },
      component: () => import('/@/views/demo/charts/map/Google.vue'),
    },

    {
vben authored
42
      path: 'echarts',
43
      name: 'Echarts',
vben authored
44
      component: getParentLayout('Echarts'),
45
46
47
      meta: {
        title: 'Echarts',
      },
48
      redirect: '/charts/echarts/map',
49
50
51
52
      children: [
        {
          path: 'map',
          name: 'Map',
53
          component: () => import('/@/views/demo/charts/Map.vue'),
54
          meta: {
55
            title: t('routes.demo.charts.map'),
56
57
58
59
60
          },
        },
        {
          path: 'line',
          name: 'Line',
61
          component: () => import('/@/views/demo/charts/Line.vue'),
62
          meta: {
63
            title: t('routes.demo.charts.line'),
64
65
66
67
68
          },
        },
        {
          path: 'pie',
          name: 'Pie',
69
          component: () => import('/@/views/demo/charts/Pie.vue'),
70
          meta: {
71
            title: t('routes.demo.charts.pie'),
72
73
74
75
76
          },
        },
      ],
    },
  ],
77
78
79
};

export default charts;