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