Blame view

src/router/routes/modules/demo/feat.ts 2.82 KB
陈文彬 authored
1
2
3
4
import type { AppRouteModule } from '/@/router/types';

import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
5
const feat: AppRouteModule = {
陈文彬 authored
6
7
8
9
  layout: {
    path: '/feat',
    name: 'FeatDemo',
    component: PAGE_LAYOUT_COMPONENT,
10
    redirect: '/feat/icon',
陈文彬 authored
11
    meta: {
nebv authored
12
      icon: 'ic:outline-featured-play-list',
vben authored
13
      title: '页面功能',
陈文彬 authored
14
15
16
17
18
    },
  },

  routes: [
    {
vben authored
19
20
      path: '/icon',
      name: 'IconDemo',
21
      component: () => import('/@/views/demo/feat/icon/index.vue'),
vben authored
22
23
24
25
26
      meta: {
        title: '图标',
      },
    },
    {
27
28
29
30
31
32
33
34
35
      path: '/tabs',
      name: 'TabsDemo',
      component: () => import('/@/views/demo/feat/tabs/index.vue'),
      meta: {
        title: '标签页操作',
      },
    },

    {
陈文彬 authored
36
37
38
39
40
41
42
43
      path: '/context-menu',
      name: 'ContextMenuDemo',
      component: () => import('/@/views/demo/feat/context-menu/index.vue'),
      meta: {
        title: '右键菜单',
      },
    },
    {
vben authored
44
45
46
47
48
49
50
51
      path: '/download',
      name: 'DownLoadDemo',
      component: () => import('/@/views/demo/feat/download/index.vue'),
      meta: {
        title: '文件下载',
      },
    },
    {
vben authored
52
53
      path: '/click-out-side',
      name: 'ClickOutSideDemo',
54
      component: () => import('/@/views/demo/feat/click-out-side/index.vue'),
vben authored
55
56
57
58
59
      meta: {
        title: 'ClickOutSide组件',
      },
    },
    {
陈文彬 authored
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
      path: '/img-preview',
      name: 'ImgPreview',
      component: () => import('/@/views/demo/feat/img-preview/index.vue'),
      meta: {
        title: '图片预览',
      },
    },
    {
      path: '/copy',
      name: 'CopyDemo',
      component: () => import('/@/views/demo/feat/copy/index.vue'),
      meta: {
        title: '剪切板',
      },
    },
    {
      path: '/msg',
      name: 'MsgDemo',
      component: () => import('/@/views/demo/feat/msg/index.vue'),
      meta: {
        title: '消息提示',
      },
    },
    {
      path: '/i18n',
      name: 'I18nDemo',
      component: () => import('/@/views/demo/feat/i18n/index.vue'),
      meta: {
        title: '国际化',
      },
    },
    {
      path: '/watermark',
      name: 'WatermarkDemo',
      component: () => import('/@/views/demo/feat/watermark/index.vue'),
      meta: {
        title: '水印',
      },
    },
    {
      path: '/full-screen',
      name: 'FullScreenDemo',
      component: () => import('/@/views/demo/feat/full-screen/index.vue'),
      meta: {
        title: '全屏',
      },
    },
vben authored
107
    {
vben authored
108
109
110
111
112
113
114
115
      path: '/error-log',
      name: 'ErrorLog',
      component: () => import('/@/views/sys/error-log/index.vue'),
      meta: {
        title: '错误日志',
      },
    },
    {
vben authored
116
117
118
119
120
      path: '/testTab/:id',
      name: 'TestTab',
      component: () => import('/@/views/demo/feat/tab-params/index.vue'),
      meta: {
        title: 'Tab带参',
121
        carryParam: true,
vben authored
122
123
      },
    },
陈文彬 authored
124
  ],
125
126
127
};

export default feat;