Blame view

src/router/routes/modules/demo/comp.ts 4.77 KB
陈文彬 authored
1
2
import type { AppRouteModule } from '/@/router/types';
vben authored
3
import { getParentLayout, LAYOUT } from '/@/router/constant';
4
import { t } from '/@/hooks/web/useI18n';
陈文彬 authored
5
6
const comp: AppRouteModule = {
vben authored
7
8
9
10
11
  path: '/comp',
  name: 'Comp',
  component: LAYOUT,
  redirect: '/comp/basic',
  meta: {
陈小婷 authored
12
    icon: 'ic:outline-settings-input-component',
13
    title: t('routes.demo.comp.comp'),
陈文彬 authored
14
15
  },
vben authored
16
  children: [
陈文彬 authored
17
    {
vben authored
18
      path: 'basic',
陈文彬 authored
19
20
21
      name: 'BasicDemo',
      component: () => import('/@/views/demo/comp/button/index.vue'),
      meta: {
22
        title: t('routes.demo.comp.basic'),
陈文彬 authored
23
24
      },
    },
25
    {
vben authored
26
      path: 'transition',
27
28
29
      name: 'transitionDemo',
      component: () => import('/@/views/demo/comp/transition/index.vue'),
      meta: {
30
        title: t('routes.demo.comp.transition'),
31
32
33
      },
    },
    {
vben authored
34
      path: 'countTo',
35
36
37
      name: 'CountTo',
      component: () => import('/@/views/demo/comp/count-to/index.vue'),
      meta: {
38
        title: t('routes.demo.comp.countTo'),
39
40
      },
    },
vben authored
41
陈文彬 authored
42
    {
vben authored
43
      path: 'scroll',
陈文彬 authored
44
45
      name: 'ScrollDemo',
      redirect: '/comp/scroll/basic',
vben authored
46
      component: getParentLayout('ScrollDemo'),
陈文彬 authored
47
      meta: {
48
        title: t('routes.demo.comp.scroll'),
陈文彬 authored
49
50
51
52
53
54
55
      },
      children: [
        {
          path: 'basic',
          name: 'BasicScrollDemo',
          component: () => import('/@/views/demo/comp/scroll/index.vue'),
          meta: {
56
            title: t('routes.demo.comp.scrollBasic'),
陈文彬 authored
57
58
59
60
61
62
63
          },
        },
        {
          path: 'action',
          name: 'ActionScrollDemo',
          component: () => import('/@/views/demo/comp/scroll/Action.vue'),
          meta: {
64
            title: t('routes.demo.comp.scrollAction'),
陈文彬 authored
65
66
67
68
69
70
71
          },
        },
        {
          path: 'virtualScroll',
          name: 'VirtualScrollDemo',
          component: () => import('/@/views/demo/comp/scroll/VirtualScroll.vue'),
          meta: {
72
            title: t('routes.demo.comp.virtualScroll'),
陈文彬 authored
73
74
75
76
77
78
          },
        },
      ],
    },

    {
vben authored
79
      path: 'modal',
陈文彬 authored
80
81
82
      name: 'ModalDemo',
      component: () => import('/@/views/demo/comp/modal/index.vue'),
      meta: {
83
        title: t('routes.demo.comp.modal'),
陈文彬 authored
84
85
86
      },
    },
    {
vben authored
87
      path: 'drawer',
陈文彬 authored
88
89
90
      name: 'DrawerDemo',
      component: () => import('/@/views/demo/comp/drawer/index.vue'),
      meta: {
91
        title: t('routes.demo.comp.drawer'),
陈文彬 authored
92
93
94
      },
    },
    {
vben authored
95
      path: 'desc',
陈文彬 authored
96
97
98
      name: 'DescDemo',
      component: () => import('/@/views/demo/comp/desc/index.vue'),
      meta: {
99
        title: t('routes.demo.comp.desc'),
陈文彬 authored
100
101
      },
    },
102
103
    {
vben authored
104
105
106
      path: 'lazy',
      name: 'LazyDemo',
      component: getParentLayout('LazyDemo'),
107
      redirect: '/comp/lazy/basic',
108
      meta: {
109
        title: t('routes.demo.comp.lazy'),
110
      },
111
112
113
114
115
116
      children: [
        {
          path: 'basic',
          name: 'BasicLazyDemo',
          component: () => import('/@/views/demo/comp/lazy/index.vue'),
          meta: {
117
            title: t('routes.demo.comp.lazyBasic'),
118
119
120
121
122
123
124
          },
        },
        {
          path: 'transition',
          name: 'BasicTransitionDemo',
          component: () => import('/@/views/demo/comp/lazy/Transition.vue'),
          meta: {
125
            title: t('routes.demo.comp.lazyTransition'),
126
127
128
          },
        },
      ],
129
    },
陈文彬 authored
130
    {
vben authored
131
      path: 'verify',
陈文彬 authored
132
      name: 'VerifyDemo',
vben authored
133
      component: getParentLayout('VerifyDemo'),
陈文彬 authored
134
135
      redirect: '/comp/verify/drag',
      meta: {
136
        title: t('routes.demo.comp.verify'),
陈文彬 authored
137
138
139
140
141
142
143
      },
      children: [
        {
          path: 'drag',
          name: 'VerifyDragDemo',
          component: () => import('/@/views/demo/comp/verify/index.vue'),
          meta: {
144
            title: t('routes.demo.comp.verifyDrag'),
陈文彬 authored
145
146
147
148
149
150
151
          },
        },
        {
          path: 'rotate',
          name: 'VerifyRotateDemo',
          component: () => import('/@/views/demo/comp/verify/Rotate.vue'),
          meta: {
152
            title: t('routes.demo.comp.verifyRotate'),
陈文彬 authored
153
154
155
156
157
          },
        },
      ],
    },
    //
vben authored
158
陈文彬 authored
159
    {
vben authored
160
      path: 'qrcode',
陈文彬 authored
161
162
163
      name: 'QrCodeDemo',
      component: () => import('/@/views/demo/comp/qrcode/index.vue'),
      meta: {
164
        title: t('routes.demo.comp.qrcode'),
陈文彬 authored
165
166
167
      },
    },
    {
vben authored
168
      path: 'strength-meter',
陈文彬 authored
169
170
171
      name: 'StrengthMeterDemo',
      component: () => import('/@/views/demo/comp/strength-meter/index.vue'),
      meta: {
172
        title: t('routes.demo.comp.strength'),
陈文彬 authored
173
174
      },
    },
jq authored
175
    {
vben authored
176
      path: 'upload',
jq authored
177
178
179
      name: 'UploadDemo',
      component: () => import('/@/views/demo/comp/upload/index.vue'),
      meta: {
180
        title: t('routes.demo.comp.upload'),
jq authored
181
182
      },
    },
183
    {
vben authored
184
      path: 'loading',
185
186
187
      name: 'LoadingDemo',
      component: () => import('/@/views/demo/comp/loading/index.vue'),
      meta: {
188
        title: t('routes.demo.comp.loading'),
189
190
      },
    },
陈文彬 authored
191
  ],
192
193
194
};

export default comp;