vben
authored
|
1
2
|
import type { AppRouteModule } from '/@/router/types';
|
vben
authored
|
3
|
import { getParentLayout, LAYOUT } from '/@/router/constant';
|
vben
authored
|
4
|
import { t } from '/@/hooks/web/useI18n';
|
vben
authored
|
5
|
|
vben
authored
|
6
|
const charts: AppRouteModule = {
|
vben
authored
|
7
8
9
10
11
|
path: '/charts',
name: 'Charts',
component: LAYOUT,
redirect: '/charts/apexChart',
meta: {
|
|
12
|
icon: 'vaadin:spline-area-chart',
|
vben
authored
|
13
|
title: t('routes.demo.charts.charts'),
|
vben
authored
|
14
|
},
|
vben
authored
|
15
|
children: [
|
vben
authored
|
16
|
{
|
vben
authored
|
17
18
19
20
21
22
23
24
|
path: 'apexChart',
name: 'ApexChart',
meta: {
title: t('routes.demo.charts.apexChart'),
},
component: () => import('/@/views/demo/echarts/apex/index.vue'),
},
{
|
vben
authored
|
25
|
path: 'echarts',
|
vben
authored
|
26
|
name: 'Echarts',
|
vben
authored
|
27
|
component: getParentLayout('Echarts'),
|
vben
authored
|
28
29
30
|
meta: {
title: 'Echarts',
},
|
vben
authored
|
31
|
redirect: '/charts/echarts/map',
|
vben
authored
|
32
33
34
35
36
37
|
children: [
{
path: 'map',
name: 'Map',
component: () => import('/@/views/demo/echarts/Map.vue'),
meta: {
|
vben
authored
|
38
|
title: t('routes.demo.charts.map'),
|
vben
authored
|
39
40
41
42
43
44
45
|
},
},
{
path: 'line',
name: 'Line',
component: () => import('/@/views/demo/echarts/Line.vue'),
meta: {
|
vben
authored
|
46
|
title: t('routes.demo.charts.line'),
|
vben
authored
|
47
48
49
50
51
52
53
|
},
},
{
path: 'pie',
name: 'Pie',
component: () => import('/@/views/demo/echarts/Pie.vue'),
meta: {
|
vben
authored
|
54
|
title: t('routes.demo.charts.pie'),
|
vben
authored
|
55
56
57
58
59
|
},
},
],
},
],
|
vben
authored
|
60
61
62
|
};
export default charts;
|