Blame view

src/router/menus/modules/demo/comp.ts 6.36 KB
1
import type { MenuModule } from '/@/router/types';
2
import { t } from '/@/hooks/web/useI18n';
vben authored
3
陈文彬 authored
4
5
6
const menu: MenuModule = {
  orderNo: 30,
  menu: {
7
    name: t('routes.demo.comp.comp'),
陈文彬 authored
8
    path: '/comp',
9
10
11
    tag: {
      dot: true,
    },
陈文彬 authored
12
13
    children: [
      {
vben authored
14
        path: 'basic',
15
        name: t('routes.demo.comp.basic'),
陈文彬 authored
16
      },
17
      {
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
        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'),
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
119
        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
120
        path: 'countTo',
121
        name: t('routes.demo.comp.countTo'),
122
      },
123
      {
124
125
126
127
128
129
130
        path: 'timestamp',
        name: t('routes.demo.comp.time'),
        tag: {
          content: 'new',
        },
      },
      {
131
        path: 'transition',
132
        name: t('routes.demo.comp.transition'),
133
      },
vben authored
134
陈文彬 authored
135
      {
136
        path: 'modal',
137
        name: t('routes.demo.comp.modal'),
138
139
140
      },
      {
        path: 'drawer',
141
        name: t('routes.demo.comp.drawer'),
142
143
144
      },
      {
        path: 'desc',
145
        name: t('routes.demo.comp.desc'),
146
147
148
      },
      {
        path: 'qrcode',
149
        name: t('routes.demo.comp.qrcode'),
150
151
152
      },
      {
        path: 'strength-meter',
153
        name: t('routes.demo.comp.strength'),
154
      },
155
156
      {
        path: 'upload',
157
        name: t('routes.demo.comp.upload'),
158
      },
jq authored
159
      {
160
        path: 'loading',
161
        name: t('routes.demo.comp.loading'),
162
163
      },
      {
164
165
        path: 'tree',
        name: t('routes.demo.comp.tree'),
166
167
168
169
        tag: {
          dot: true,
          type: 'warn',
        },
170
171
172
173
174
175
176
177
        children: [
          {
            path: 'basic',
            name: t('routes.demo.comp.treeBasic'),
          },
          {
            path: 'editTree',
            name: t('routes.demo.comp.editTree'),
178
179
180
181
            tag: {
              dot: true,
              type: 'warn',
            },
182
183
184
185
186
187
188
189
190
191
192
193
194
195
          },
          {
            path: 'actionTree',
            name: t('routes.demo.comp.actionTree'),
          },
        ],
      },
      {
        name: t('routes.demo.editor.editor'),
        path: 'editor',
        children: [
          {
            path: 'markdown',
            name: t('routes.demo.editor.markdown'),
196
197
198
199
200
201
202
203
204
205
            children: [
              {
                path: 'index',
                name: t('routes.demo.editor.tinymceBasic'),
              },
              {
                path: 'editor',
                name: t('routes.demo.editor.tinymceForm'),
              },
            ],
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
          },
          {
            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
224
        path: 'scroll',
225
        name: t('routes.demo.comp.scroll'),
陈文彬 authored
226
227
228
        children: [
          {
            path: 'basic',
229
            name: t('routes.demo.comp.scrollBasic'),
陈文彬 authored
230
231
232
          },
          {
            path: 'action',
233
            name: t('routes.demo.comp.scrollAction'),
陈文彬 authored
234
235
236
          },
          {
            path: 'virtualScroll',
237
            name: t('routes.demo.comp.virtualScroll'),
陈文彬 authored
238
239
240
241
          },
        ],
      },
      {
242
        path: 'lazy',
243
        name: t('routes.demo.comp.lazy'),
244
245
246
        children: [
          {
            path: 'basic',
247
            name: t('routes.demo.comp.lazyBasic'),
248
249
250
          },
          {
            path: 'transition',
251
            name: t('routes.demo.comp.lazyTransition'),
252
253
          },
        ],
254
255
      },
      {
vben authored
256
        path: 'verify',
257
        name: t('routes.demo.comp.verify'),
陈文彬 authored
258
259
        children: [
          {
vben authored
260
            path: 'drag',
261
            name: t('routes.demo.comp.verifyDrag'),
陈文彬 authored
262
263
          },
          {
vben authored
264
            path: 'rotate',
265
            name: t('routes.demo.comp.verifyRotate'),
vben authored
266
267
268
          },
        ],
      },
陈文彬 authored
269
270
271
272
    ],
  },
};
export default menu;