Blame view

src/router/menus/modules/demo/comp.ts 2.25 KB
陈文彬 authored
1
import type { MenuModule } from '/@/router/types.d';
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',
vben authored
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
      {
vben authored
18
        path: 'countTo',
19
        name: t('routes.demo.comp.countTo'),
20
      },
21
22
      {
        path: 'transition',
23
        name: t('routes.demo.comp.transition'),
24
      },
vben authored
25
陈文彬 authored
26
      {
27
        path: 'modal',
28
        name: t('routes.demo.comp.modal'),
29
30
31
      },
      {
        path: 'drawer',
32
        name: t('routes.demo.comp.drawer'),
33
34
35
      },
      {
        path: 'desc',
36
        name: t('routes.demo.comp.desc'),
37
38
39
      },
      {
        path: 'qrcode',
40
        name: t('routes.demo.comp.qrcode'),
41
42
43
      },
      {
        path: 'strength-meter',
44
        name: t('routes.demo.comp.strength'),
45
      },
46
47
      {
        path: 'upload',
48
        name: t('routes.demo.comp.upload'),
49
      },
jq authored
50
      {
51
        path: 'loading',
52
        name: t('routes.demo.comp.loading'),
vben authored
53
54
55
        tag: {
          content: 'new',
        },
56
57
      },
      {
vben authored
58
        path: 'scroll',
59
        name: t('routes.demo.comp.scroll'),
陈文彬 authored
60
61
62
        children: [
          {
            path: 'basic',
63
            name: t('routes.demo.comp.scrollBasic'),
陈文彬 authored
64
65
66
          },
          {
            path: 'action',
67
            name: t('routes.demo.comp.scrollAction'),
陈文彬 authored
68
69
70
          },
          {
            path: 'virtualScroll',
71
            name: t('routes.demo.comp.virtualScroll'),
陈文彬 authored
72
73
74
75
          },
        ],
      },
      {
76
        path: 'lazy',
77
        name: t('routes.demo.comp.lazy'),
78
79
80
        children: [
          {
            path: 'basic',
81
            name: t('routes.demo.comp.lazyBasic'),
82
83
84
          },
          {
            path: 'transition',
85
            name: t('routes.demo.comp.lazyTransition'),
86
87
          },
        ],
88
89
      },
      {
vben authored
90
        path: 'verify',
91
        name: t('routes.demo.comp.verify'),
陈文彬 authored
92
93
        children: [
          {
vben authored
94
            path: 'drag',
95
            name: t('routes.demo.comp.verifyDrag'),
陈文彬 authored
96
97
          },
          {
vben authored
98
            path: 'rotate',
99
            name: t('routes.demo.comp.verifyRotate'),
vben authored
100
101
102
          },
        ],
      },
陈文彬 authored
103
104
105
106
    ],
  },
};
export default menu;