vben
authored
|
1
2
3
4
|
import type { AppRouteModule } from '/@/router/types';
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
|
vben
authored
|
5
|
const excel: AppRouteModule = {
|
vben
authored
|
6
7
8
9
10
11
|
layout: {
path: '/excel',
name: 'Excel',
component: PAGE_LAYOUT_COMPONENT,
redirect: '/excel/customExport',
meta: {
|
vben
authored
|
12
|
icon: 'mdi:microsoft-excel',
|
vben
authored
|
13
14
15
16
17
18
19
20
|
title: 'Excel',
},
},
routes: [
{
path: '/customExport',
name: 'CustomExport',
|
vben
authored
|
21
|
component: () => import('/@/views/demo/excel/CustomExport.vue'),
|
vben
authored
|
22
23
24
25
26
27
28
|
meta: {
title: '选择导出格式',
},
},
{
path: '/jsonExport',
name: 'JsonExport',
|
vben
authored
|
29
|
component: () => import('/@/views/demo/excel/JsonExport.vue'),
|
vben
authored
|
30
31
32
33
34
35
36
|
meta: {
title: 'JSON数据导出',
},
},
{
path: '/arrayExport',
name: 'ArrayExport',
|
vben
authored
|
37
|
component: () => import('/@/views/demo/excel/ArrayExport.vue'),
|
vben
authored
|
38
39
40
41
42
43
44
|
meta: {
title: 'Array数据导出',
},
},
{
path: '/importExcel',
name: 'ImportExcel',
|
vben
authored
|
45
|
component: () => import('/@/views/demo/excel/ImportExcel.vue'),
|
vben
authored
|
46
47
48
49
50
|
meta: {
title: '导入',
},
},
],
|
vben
authored
|
51
52
53
|
};
export default excel;
|