vben
authored
|
1
|
import type { MenuModule } from '/@/router/types';
|
vben
authored
|
2
|
import { t } from '/@/hooks/web/useI18n';
|
vben
authored
|
3
|
|
|
4
5
6
|
const menu: MenuModule = {
orderNo: 30,
menu: {
|
vben
authored
|
7
|
name: t('routes.demo.comp.comp'),
|
|
8
|
path: '/comp',
|
Vben
authored
|
9
10
11
|
tag: {
dot: true,
},
|
|
12
13
|
children: [
{
|
vben
authored
|
14
|
path: 'basic',
|
vben
authored
|
15
|
name: t('routes.demo.comp.basic'),
|
|
16
|
},
|
vben
authored
|
17
|
{
|
vben
authored
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
path: 'form',
name: t('routes.demo.form.form'),
children: [
{
path: 'basic',
name: t('routes.demo.form.basic'),
},
{
path: 'useForm',
name: t('routes.demo.form.useForm'),
},
{
path: 'refForm',
name: t('routes.demo.form.refForm'),
},
{
path: 'advancedForm',
name: t('routes.demo.form.advancedForm'),
},
{
path: 'ruleForm',
name: t('routes.demo.form.ruleForm'),
},
{
path: 'dynamicForm',
name: t('routes.demo.form.dynamicForm'),
},
{
path: 'customerForm',
name: t('routes.demo.form.customerForm'),
},
|
|
50
51
52
53
|
{
path: 'appendForm',
name: t('routes.demo.form.appendForm'),
},
|
vben
authored
|
54
55
56
57
58
|
],
},
{
path: 'table',
name: t('routes.demo.table.table'),
|
Vben
authored
|
59
|
|
vben
authored
|
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
children: [
{
path: 'basic',
name: t('routes.demo.table.basic'),
},
{
path: 'treeTable',
name: t('routes.demo.table.treeTable'),
},
{
path: 'fetchTable',
name: t('routes.demo.table.fetchTable'),
},
{
path: 'fixedColumn',
name: t('routes.demo.table.fixedColumn'),
},
{
path: 'customerCell',
name: t('routes.demo.table.customerCell'),
},
{
path: 'formTable',
name: t('routes.demo.table.formTable'),
},
{
path: 'useTable',
name: t('routes.demo.table.useTable'),
},
{
path: 'refTable',
name: t('routes.demo.table.refTable'),
},
{
path: 'multipleHeader',
name: t('routes.demo.table.multipleHeader'),
},
{
path: 'mergeHeader',
name: t('routes.demo.table.mergeHeader'),
},
{
path: 'expandTable',
name: t('routes.demo.table.expandTable'),
},
{
path: 'fixedHeight',
name: t('routes.demo.table.fixedHeight'),
},
{
path: 'footerTable',
name: t('routes.demo.table.footerTable'),
},
{
path: 'editCellTable',
name: t('routes.demo.table.editCellTable'),
},
{
path: 'editRowTable',
name: t('routes.demo.table.editRowTable'),
},
|
|
121
122
123
124
|
{
path: 'authColumn',
name: t('routes.demo.table.authColumn'),
},
|
vben
authored
|
125
126
127
|
],
},
{
|
Vben
authored
|
128
129
130
131
|
path: 'cropper',
name: t('routes.demo.comp.cropperImage'),
},
{
|
vben
authored
|
132
|
path: 'countTo',
|
vben
authored
|
133
|
name: t('routes.demo.comp.countTo'),
|
vben
authored
|
134
|
},
|
vben
authored
|
135
|
{
|
Vben
authored
|
136
137
138
139
|
path: 'timestamp',
name: t('routes.demo.comp.time'),
},
{
|
vben
authored
|
140
|
path: 'transition',
|
vben
authored
|
141
|
name: t('routes.demo.comp.transition'),
|
vben
authored
|
142
|
},
|
vben
authored
|
143
|
|
|
144
|
{
|
vben
authored
|
145
|
path: 'modal',
|
vben
authored
|
146
|
name: t('routes.demo.comp.modal'),
|
vben
authored
|
147
148
149
|
},
{
path: 'drawer',
|
vben
authored
|
150
|
name: t('routes.demo.comp.drawer'),
|
vben
authored
|
151
152
153
|
},
{
path: 'desc',
|
vben
authored
|
154
|
name: t('routes.demo.comp.desc'),
|
vben
authored
|
155
156
157
|
},
{
path: 'qrcode',
|
vben
authored
|
158
|
name: t('routes.demo.comp.qrcode'),
|
vben
authored
|
159
160
161
|
},
{
path: 'strength-meter',
|
vben
authored
|
162
|
name: t('routes.demo.comp.strength'),
|
vben
authored
|
163
|
},
|
vben
authored
|
164
165
|
{
path: 'upload',
|
vben
authored
|
166
|
name: t('routes.demo.comp.upload'),
|
vben
authored
|
167
|
},
|
|
168
|
{
|
vben
authored
|
169
|
path: 'loading',
|
vben
authored
|
170
|
name: t('routes.demo.comp.loading'),
|
vben
authored
|
171
172
|
},
{
|
vben
authored
|
173
174
|
path: 'tree',
name: t('routes.demo.comp.tree'),
|
Vben
authored
|
175
|
|
vben
authored
|
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
children: [
{
path: 'basic',
name: t('routes.demo.comp.treeBasic'),
},
{
path: 'editTree',
name: t('routes.demo.comp.editTree'),
},
{
path: 'actionTree',
name: t('routes.demo.comp.actionTree'),
},
],
},
{
name: t('routes.demo.editor.editor'),
path: 'editor',
|
Vben
authored
|
194
195
196
|
tag: {
dot: true,
},
|
vben
authored
|
197
198
|
children: [
{
|
Vben
authored
|
199
200
201
202
203
204
205
|
path: 'json',
name: t('routes.demo.editor.jsonEditor'),
tag: {
content: 'new',
},
},
{
|
vben
authored
|
206
207
|
path: 'markdown',
name: t('routes.demo.editor.markdown'),
|
vben
authored
|
208
209
210
211
212
213
214
215
216
217
|
children: [
{
path: 'index',
name: t('routes.demo.editor.tinymceBasic'),
},
{
path: 'editor',
name: t('routes.demo.editor.tinymceForm'),
},
],
|
vben
authored
|
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
},
{
path: 'tinymce',
name: t('routes.demo.editor.tinymce'),
children: [
{
path: 'index',
name: t('routes.demo.editor.tinymceBasic'),
},
{
path: 'editor',
name: t('routes.demo.editor.tinymceForm'),
},
],
},
],
},
{
|
vben
authored
|
236
|
path: 'scroll',
|
vben
authored
|
237
|
name: t('routes.demo.comp.scroll'),
|
|
238
239
240
|
children: [
{
path: 'basic',
|
vben
authored
|
241
|
name: t('routes.demo.comp.scrollBasic'),
|
|
242
243
244
|
},
{
path: 'action',
|
vben
authored
|
245
|
name: t('routes.demo.comp.scrollAction'),
|
|
246
247
248
|
},
{
path: 'virtualScroll',
|
vben
authored
|
249
|
name: t('routes.demo.comp.virtualScroll'),
|
|
250
251
252
253
|
},
],
},
{
|
vben
authored
|
254
|
path: 'lazy',
|
vben
authored
|
255
|
name: t('routes.demo.comp.lazy'),
|
vben
authored
|
256
257
258
|
children: [
{
path: 'basic',
|
vben
authored
|
259
|
name: t('routes.demo.comp.lazyBasic'),
|
vben
authored
|
260
261
262
|
},
{
path: 'transition',
|
vben
authored
|
263
|
name: t('routes.demo.comp.lazyTransition'),
|
vben
authored
|
264
265
|
},
],
|
vben
authored
|
266
267
|
},
{
|
vben
authored
|
268
|
path: 'verify',
|
vben
authored
|
269
|
name: t('routes.demo.comp.verify'),
|
|
270
271
|
children: [
{
|
vben
authored
|
272
|
path: 'drag',
|
vben
authored
|
273
|
name: t('routes.demo.comp.verifyDrag'),
|
|
274
275
|
},
{
|
vben
authored
|
276
|
path: 'rotate',
|
vben
authored
|
277
|
name: t('routes.demo.comp.verifyRotate'),
|
vben
authored
|
278
279
280
|
},
],
},
|
|
281
282
283
284
|
],
},
};
export default menu;
|