vben
2020-10-14 31e2715e674fc7d5144f39d8d5e595d904585af8
提交 | 用户 | age
2f6253 1 import type { AppRouteModule } from '/@/router/types';
2
3 import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
4
5 export default {
6   layout: {
7     path: '/feat',
8     name: 'FeatDemo',
9     component: PAGE_LAYOUT_COMPONENT,
02d6a3 10     redirect: '/feat/icon',
2f6253 11     meta: {
66b561 12       icon: 'ic:outline-featured-play-list',
2f6253 13       title: 'Feat',
14     },
15   },
16
17   routes: [
18     {
949db9 19       path: '/icon',
V 20       name: 'IconDemo',
21       component: () => import('/@/views/demo/comp/icon/index.vue'),
22       meta: {
23         title: '图标',
24       },
25     },
26     {
02d6a3 27       path: '/tabs',
N 28       name: 'TabsDemo',
29       component: () => import('/@/views/demo/feat/tabs/index.vue'),
30       meta: {
31         title: '标签页操作',
32       },
33     },
34
35     {
2f6253 36       path: '/context-menu',
37       name: 'ContextMenuDemo',
38       component: () => import('/@/views/demo/feat/context-menu/index.vue'),
39       meta: {
40         title: '右键菜单',
41       },
42     },
43     {
949db9 44       path: '/click-out-side',
V 45       name: 'ClickOutSideDemo',
46       component: () => import('/@/views/demo/comp/click-out-side/index.vue'),
47       meta: {
48         title: 'ClickOutSide组件',
49       },
50     },
51     {
2f6253 52       path: '/img-preview',
53       name: 'ImgPreview',
54       component: () => import('/@/views/demo/feat/img-preview/index.vue'),
55       meta: {
56         title: '图片预览',
57       },
58     },
59     {
60       path: '/copy',
61       name: 'CopyDemo',
62       component: () => import('/@/views/demo/feat/copy/index.vue'),
63       meta: {
64         title: '剪切板',
65       },
66     },
67     {
68       path: '/msg',
69       name: 'MsgDemo',
70       component: () => import('/@/views/demo/feat/msg/index.vue'),
71       meta: {
72         title: '消息提示',
73       },
74     },
75     {
76       path: '/i18n',
77       name: 'I18nDemo',
78       component: () => import('/@/views/demo/feat/i18n/index.vue'),
79       meta: {
80         title: '国际化',
81       },
82     },
83     {
84       path: '/watermark',
85       name: 'WatermarkDemo',
86       component: () => import('/@/views/demo/feat/watermark/index.vue'),
87       meta: {
88         title: '水印',
89       },
90     },
91     {
92       path: '/full-screen',
93       name: 'FullScreenDemo',
94       component: () => import('/@/views/demo/feat/full-screen/index.vue'),
95       meta: {
96         title: '全屏',
97       },
98     },
31e271 99     {
V 100       path: '/testTab/:id',
101       name: 'TestTab',
102       component: () => import('/@/views/demo/feat/tab-params/index.vue'),
103       meta: {
104         title: 'Tab带参',
105       },
106     },
2f6253 107   ],
108 } as AppRouteModule;