提交 | 用户 | age
|
2f6253
|
1 |
import type { AppRouteModule } from '/@/router/types'; |
陈 |
2 |
|
c303ec
|
3 |
import { getParentLayout, LAYOUT } from '/@/router/constant'; |
2f6253
|
4 |
|
fc4666
|
5 |
const comp: AppRouteModule = { |
c303ec
|
6 |
path: '/comp', |
V |
7 |
name: 'Comp', |
|
8 |
component: LAYOUT, |
|
9 |
redirect: '/comp/basic', |
|
10 |
meta: { |
|
11 |
icon: 'ant-design:table-outlined', |
|
12 |
title: 'routes.demo.comp.comp', |
2f6253
|
13 |
}, |
陈 |
14 |
|
c303ec
|
15 |
children: [ |
2f6253
|
16 |
{ |
c303ec
|
17 |
path: 'basic', |
2f6253
|
18 |
name: 'BasicDemo', |
陈 |
19 |
component: () => import('/@/views/demo/comp/button/index.vue'), |
|
20 |
meta: { |
190112
|
21 |
title: 'routes.demo.comp.basic', |
2f6253
|
22 |
}, |
陈 |
23 |
}, |
afc726
|
24 |
{ |
c303ec
|
25 |
path: 'transition', |
371348
|
26 |
name: 'transitionDemo', |
V |
27 |
component: () => import('/@/views/demo/comp/transition/index.vue'), |
|
28 |
meta: { |
190112
|
29 |
title: 'routes.demo.comp.transition', |
371348
|
30 |
}, |
V |
31 |
}, |
|
32 |
{ |
c303ec
|
33 |
path: 'countTo', |
afc726
|
34 |
name: 'CountTo', |
V |
35 |
component: () => import('/@/views/demo/comp/count-to/index.vue'), |
|
36 |
meta: { |
190112
|
37 |
title: 'routes.demo.comp.countTo', |
afc726
|
38 |
}, |
V |
39 |
}, |
949db9
|
40 |
|
2f6253
|
41 |
{ |
c303ec
|
42 |
path: 'scroll', |
2f6253
|
43 |
name: 'ScrollDemo', |
陈 |
44 |
redirect: '/comp/scroll/basic', |
c303ec
|
45 |
component: getParentLayout('ScrollDemo'), |
2f6253
|
46 |
meta: { |
190112
|
47 |
title: 'routes.demo.comp.scroll', |
2f6253
|
48 |
}, |
陈 |
49 |
children: [ |
|
50 |
{ |
|
51 |
path: 'basic', |
|
52 |
name: 'BasicScrollDemo', |
|
53 |
component: () => import('/@/views/demo/comp/scroll/index.vue'), |
|
54 |
meta: { |
190112
|
55 |
title: 'routes.demo.comp.scrollBasic', |
2f6253
|
56 |
}, |
陈 |
57 |
}, |
|
58 |
{ |
|
59 |
path: 'action', |
|
60 |
name: 'ActionScrollDemo', |
|
61 |
component: () => import('/@/views/demo/comp/scroll/Action.vue'), |
|
62 |
meta: { |
190112
|
63 |
title: 'routes.demo.comp.scrollAction', |
2f6253
|
64 |
}, |
陈 |
65 |
}, |
|
66 |
{ |
|
67 |
path: 'virtualScroll', |
|
68 |
name: 'VirtualScrollDemo', |
|
69 |
component: () => import('/@/views/demo/comp/scroll/VirtualScroll.vue'), |
|
70 |
meta: { |
190112
|
71 |
title: 'routes.demo.comp.virtualScroll', |
2f6253
|
72 |
}, |
陈 |
73 |
}, |
|
74 |
], |
|
75 |
}, |
|
76 |
|
|
77 |
{ |
c303ec
|
78 |
path: 'modal', |
2f6253
|
79 |
name: 'ModalDemo', |
陈 |
80 |
component: () => import('/@/views/demo/comp/modal/index.vue'), |
|
81 |
meta: { |
190112
|
82 |
title: 'routes.demo.comp.modal', |
2f6253
|
83 |
}, |
陈 |
84 |
}, |
|
85 |
{ |
c303ec
|
86 |
path: 'drawer', |
2f6253
|
87 |
name: 'DrawerDemo', |
陈 |
88 |
component: () => import('/@/views/demo/comp/drawer/index.vue'), |
|
89 |
meta: { |
190112
|
90 |
title: 'routes.demo.comp.drawer', |
2f6253
|
91 |
}, |
陈 |
92 |
}, |
|
93 |
{ |
c303ec
|
94 |
path: 'desc', |
2f6253
|
95 |
name: 'DescDemo', |
陈 |
96 |
component: () => import('/@/views/demo/comp/desc/index.vue'), |
|
97 |
meta: { |
190112
|
98 |
title: 'routes.demo.comp.desc', |
2f6253
|
99 |
}, |
陈 |
100 |
}, |
0f4b84
|
101 |
|
fdeaa0
|
102 |
{ |
c303ec
|
103 |
path: 'lazy', |
V |
104 |
name: 'LazyDemo', |
|
105 |
component: getParentLayout('LazyDemo'), |
0f4b84
|
106 |
redirect: '/comp/lazy/basic', |
fdeaa0
|
107 |
meta: { |
190112
|
108 |
title: 'routes.demo.comp.lazy', |
fdeaa0
|
109 |
}, |
0f4b84
|
110 |
children: [ |
V |
111 |
{ |
|
112 |
path: 'basic', |
|
113 |
name: 'BasicLazyDemo', |
|
114 |
component: () => import('/@/views/demo/comp/lazy/index.vue'), |
|
115 |
meta: { |
190112
|
116 |
title: 'routes.demo.comp.lazyBasic', |
0f4b84
|
117 |
}, |
V |
118 |
}, |
|
119 |
{ |
|
120 |
path: 'transition', |
|
121 |
name: 'BasicTransitionDemo', |
|
122 |
component: () => import('/@/views/demo/comp/lazy/Transition.vue'), |
|
123 |
meta: { |
190112
|
124 |
title: 'routes.demo.comp.lazyTransition', |
0f4b84
|
125 |
}, |
V |
126 |
}, |
|
127 |
], |
fdeaa0
|
128 |
}, |
2f6253
|
129 |
{ |
c303ec
|
130 |
path: 'verify', |
2f6253
|
131 |
name: 'VerifyDemo', |
c303ec
|
132 |
component: getParentLayout('VerifyDemo'), |
2f6253
|
133 |
redirect: '/comp/verify/drag', |
陈 |
134 |
meta: { |
190112
|
135 |
title: 'routes.demo.comp.verify', |
2f6253
|
136 |
}, |
陈 |
137 |
children: [ |
|
138 |
{ |
|
139 |
path: 'drag', |
|
140 |
name: 'VerifyDragDemo', |
|
141 |
component: () => import('/@/views/demo/comp/verify/index.vue'), |
|
142 |
meta: { |
190112
|
143 |
title: 'routes.demo.comp.verifyDrag', |
2f6253
|
144 |
}, |
陈 |
145 |
}, |
|
146 |
{ |
|
147 |
path: 'rotate', |
|
148 |
name: 'VerifyRotateDemo', |
|
149 |
component: () => import('/@/views/demo/comp/verify/Rotate.vue'), |
|
150 |
meta: { |
190112
|
151 |
title: 'routes.demo.comp.verifyRotate', |
2f6253
|
152 |
}, |
陈 |
153 |
}, |
|
154 |
], |
|
155 |
}, |
|
156 |
// |
949db9
|
157 |
|
2f6253
|
158 |
{ |
c303ec
|
159 |
path: 'qrcode', |
2f6253
|
160 |
name: 'QrCodeDemo', |
陈 |
161 |
component: () => import('/@/views/demo/comp/qrcode/index.vue'), |
|
162 |
meta: { |
190112
|
163 |
title: 'routes.demo.comp.qrcode', |
2f6253
|
164 |
}, |
陈 |
165 |
}, |
|
166 |
{ |
c303ec
|
167 |
path: 'strength-meter', |
2f6253
|
168 |
name: 'StrengthMeterDemo', |
陈 |
169 |
component: () => import('/@/views/demo/comp/strength-meter/index.vue'), |
|
170 |
meta: { |
190112
|
171 |
title: 'routes.demo.comp.strength', |
2f6253
|
172 |
}, |
陈 |
173 |
}, |
746d4a
|
174 |
{ |
c303ec
|
175 |
path: 'upload', |
746d4a
|
176 |
name: 'UploadDemo', |
J |
177 |
component: () => import('/@/views/demo/comp/upload/index.vue'), |
|
178 |
meta: { |
190112
|
179 |
title: 'routes.demo.comp.upload', |
746d4a
|
180 |
}, |
J |
181 |
}, |
5db3ce
|
182 |
{ |
c303ec
|
183 |
path: 'loading', |
5db3ce
|
184 |
name: 'LoadingDemo', |
V |
185 |
component: () => import('/@/views/demo/comp/loading/index.vue'), |
|
186 |
meta: { |
|
187 |
title: 'routes.demo.comp.loading', |
|
188 |
}, |
|
189 |
}, |
2f6253
|
190 |
], |
fc4666
|
191 |
}; |
V |
192 |
|
|
193 |
export default comp; |