comp.ts 6.6 KB
Newer Older
V
vben 已提交
1
import type { MenuModule } from '/@/router/types';
V
vben 已提交
2
import { t } from '/@/hooks/web/useI18n';
V
vben 已提交
3

陈文彬 已提交
4 5 6
const menu: MenuModule = {
  orderNo: 30,
  menu: {
V
vben 已提交
7
    name: t('routes.demo.comp.comp'),
陈文彬 已提交
8 9 10
    path: '/comp',
    children: [
      {
V
vben 已提交
11
        path: 'basic',
V
vben 已提交
12
        name: t('routes.demo.comp.basic'),
陈文彬 已提交
13
      },
V
vben 已提交
14 15 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
      {
        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'),
          },
J
jinmao88 已提交
47 48 49 50
          {
            path: 'appendForm',
            name: t('routes.demo.form.appendForm'),
          },
V
vben 已提交
51 52 53 54 55
        ],
      },
      {
        path: 'table',
        name: t('routes.demo.table.table'),
56

V
vben 已提交
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
        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'),
          },
Z
zuihou 已提交
118 119 120 121
          {
            path: 'authColumn',
            name: t('routes.demo.table.authColumn'),
          },
V
vben 已提交
122 123
        ],
      },
V
Vben 已提交
124 125 126 127
      {
        path: 'cropper',
        name: t('routes.demo.comp.cropperImage'),
      },
V
vben 已提交
128
      {
V
vben 已提交
129
        path: 'countTo',
V
vben 已提交
130
        name: t('routes.demo.comp.countTo'),
V
vben 已提交
131
      },
132 133 134 135
      {
        path: 'timestamp',
        name: t('routes.demo.comp.time'),
      },
136 137
      {
        path: 'transition',
V
vben 已提交
138
        name: t('routes.demo.comp.transition'),
139
      },
V
vben 已提交
140

141 142
      {
        path: 'modal',
V
vben 已提交
143
        name: t('routes.demo.comp.modal'),
144 145 146
      },
      {
        path: 'drawer',
V
vben 已提交
147
        name: t('routes.demo.comp.drawer'),
148 149 150
      },
      {
        path: 'desc',
V
vben 已提交
151
        name: t('routes.demo.comp.desc'),
152 153 154
      },
      {
        path: 'qrcode',
V
vben 已提交
155
        name: t('routes.demo.comp.qrcode'),
156 157 158
      },
      {
        path: 'strength-meter',
V
vben 已提交
159
        name: t('routes.demo.comp.strength'),
160
      },
V
vben 已提交
161 162
      {
        path: 'upload',
V
vben 已提交
163
        name: t('routes.demo.comp.upload'),
V
vben 已提交
164
      },
V
vben 已提交
165 166
      {
        path: 'loading',
V
vben 已提交
167
        name: t('routes.demo.comp.loading'),
V
vben 已提交
168
      },
V
vben 已提交
169 170 171
      {
        path: 'tree',
        name: t('routes.demo.comp.tree'),
V
Vben 已提交
172

V
vben 已提交
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
        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',
        children: [
V
Vben 已提交
192 193 194 195 196 197 198
          {
            path: 'json',
            name: t('routes.demo.editor.jsonEditor'),
            tag: {
              content: 'new',
            },
          },
V
vben 已提交
199 200 201
          {
            path: 'markdown',
            name: t('routes.demo.editor.markdown'),
202 203 204 205 206 207 208 209 210 211
            children: [
              {
                path: 'index',
                name: t('routes.demo.editor.tinymceBasic'),
              },
              {
                path: 'editor',
                name: t('routes.demo.editor.tinymceForm'),
              },
            ],
V
vben 已提交
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
          },
          {
            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'),
              },
            ],
          },
        ],
      },
陈文彬 已提交
229
      {
V
vben 已提交
230
        path: 'scroll',
V
vben 已提交
231
        name: t('routes.demo.comp.scroll'),
陈文彬 已提交
232 233 234
        children: [
          {
            path: 'basic',
V
vben 已提交
235
            name: t('routes.demo.comp.scrollBasic'),
陈文彬 已提交
236 237 238
          },
          {
            path: 'action',
V
vben 已提交
239
            name: t('routes.demo.comp.scrollAction'),
陈文彬 已提交
240 241 242
          },
          {
            path: 'virtualScroll',
V
vben 已提交
243
            name: t('routes.demo.comp.virtualScroll'),
陈文彬 已提交
244 245 246
          },
        ],
      },
V
vben 已提交
247 248
      {
        path: 'lazy',
V
vben 已提交
249
        name: t('routes.demo.comp.lazy'),
250 251 252
        children: [
          {
            path: 'basic',
V
vben 已提交
253
            name: t('routes.demo.comp.lazyBasic'),
254 255 256
          },
          {
            path: 'transition',
V
vben 已提交
257
            name: t('routes.demo.comp.lazyTransition'),
258 259
          },
        ],
V
vben 已提交
260
      },
陈文彬 已提交
261
      {
V
vben 已提交
262
        path: 'verify',
V
vben 已提交
263
        name: t('routes.demo.comp.verify'),
陈文彬 已提交
264 265
        children: [
          {
V
vben 已提交
266
            path: 'drag',
V
vben 已提交
267
            name: t('routes.demo.comp.verifyDrag'),
陈文彬 已提交
268 269
          },
          {
V
vben 已提交
270
            path: 'rotate',
V
vben 已提交
271
            name: t('routes.demo.comp.verifyRotate'),
V
vben 已提交
272 273 274
          },
        ],
      },
陈文彬 已提交
275 276 277 278
    ],
  },
};
export default menu;