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
50
51
52
53
54
55
56
57
58
59
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
|
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'),
},
],
},
{
path: 'table',
name: t('routes.demo.table.table'),
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'),
},
],
},
{
|
vben
authored
|
119
|
path: 'countTo',
|
vben
authored
|
120
|
name: t('routes.demo.comp.countTo'),
|
vben
authored
|
121
|
},
|
vben
authored
|
122
123
|
{
path: 'transition',
|
vben
authored
|
124
|
name: t('routes.demo.comp.transition'),
|
vben
authored
|
125
|
},
|
vben
authored
|
126
|
|
|
127
|
{
|
vben
authored
|
128
|
path: 'modal',
|
vben
authored
|
129
|
name: t('routes.demo.comp.modal'),
|
vben
authored
|
130
131
132
|
},
{
path: 'drawer',
|
vben
authored
|
133
|
name: t('routes.demo.comp.drawer'),
|
vben
authored
|
134
135
136
|
},
{
path: 'desc',
|
vben
authored
|
137
|
name: t('routes.demo.comp.desc'),
|
vben
authored
|
138
139
140
|
},
{
path: 'qrcode',
|
vben
authored
|
141
|
name: t('routes.demo.comp.qrcode'),
|
vben
authored
|
142
143
144
|
},
{
path: 'strength-meter',
|
vben
authored
|
145
|
name: t('routes.demo.comp.strength'),
|
vben
authored
|
146
|
},
|
vben
authored
|
147
148
|
{
path: 'upload',
|
vben
authored
|
149
|
name: t('routes.demo.comp.upload'),
|
vben
authored
|
150
|
},
|
|
151
|
{
|
vben
authored
|
152
|
path: 'loading',
|
vben
authored
|
153
|
name: t('routes.demo.comp.loading'),
|
vben
authored
|
154
155
|
},
{
|
vben
authored
|
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
path: 'tree',
name: t('routes.demo.comp.tree'),
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
|
176
177
178
|
tag: {
content: 'new',
},
|
vben
authored
|
179
180
181
182
|
children: [
{
path: 'markdown',
name: t('routes.demo.editor.markdown'),
|
vben
authored
|
183
184
185
186
187
188
189
190
191
192
|
children: [
{
path: 'index',
name: t('routes.demo.editor.tinymceBasic'),
},
{
path: 'editor',
name: t('routes.demo.editor.tinymceForm'),
},
],
|
vben
authored
|
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
},
{
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
|
211
|
path: 'scroll',
|
vben
authored
|
212
|
name: t('routes.demo.comp.scroll'),
|
|
213
214
215
|
children: [
{
path: 'basic',
|
vben
authored
|
216
|
name: t('routes.demo.comp.scrollBasic'),
|
|
217
218
219
|
},
{
path: 'action',
|
vben
authored
|
220
|
name: t('routes.demo.comp.scrollAction'),
|
|
221
222
223
|
},
{
path: 'virtualScroll',
|
vben
authored
|
224
|
name: t('routes.demo.comp.virtualScroll'),
|
|
225
226
227
228
|
},
],
},
{
|
vben
authored
|
229
|
path: 'lazy',
|
vben
authored
|
230
|
name: t('routes.demo.comp.lazy'),
|
vben
authored
|
231
232
233
|
children: [
{
path: 'basic',
|
vben
authored
|
234
|
name: t('routes.demo.comp.lazyBasic'),
|
vben
authored
|
235
236
237
|
},
{
path: 'transition',
|
vben
authored
|
238
|
name: t('routes.demo.comp.lazyTransition'),
|
vben
authored
|
239
240
|
},
],
|
vben
authored
|
241
242
|
},
{
|
vben
authored
|
243
|
path: 'verify',
|
vben
authored
|
244
|
name: t('routes.demo.comp.verify'),
|
|
245
246
|
children: [
{
|
vben
authored
|
247
|
path: 'drag',
|
vben
authored
|
248
|
name: t('routes.demo.comp.verifyDrag'),
|
|
249
250
|
},
{
|
vben
authored
|
251
|
path: 'rotate',
|
vben
authored
|
252
|
name: t('routes.demo.comp.verifyRotate'),
|
vben
authored
|
253
254
255
|
},
],
},
|
|
256
257
258
259
|
],
},
};
export default menu;
|