vue-vben-admin/src/router/routes/modules/demo/feat.ts

120 lines
2.6 KiB
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
import type { AppRouteModule } from '/@/router/types';
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
2020-11-12 23:15:11 +08:00
const feat: AppRouteModule = {
2020-09-28 20:19:10 +08:00
layout: {
path: '/feat',
name: 'FeatDemo',
component: PAGE_LAYOUT_COMPONENT,
2020-10-13 22:22:04 +08:00
redirect: '/feat/icon',
2020-09-28 20:19:10 +08:00
meta: {
2020-10-10 23:09:58 +08:00
icon: 'ic:outline-featured-play-list',
2020-10-14 21:22:08 +08:00
title: '页面功能',
2020-09-28 20:19:10 +08:00
},
},
routes: [
2020-10-11 23:48:25 +08:00
{
path: '/icon',
name: 'IconDemo',
component: () => import('/@/views/demo/feat/icon/index.vue'),
2020-10-11 23:48:25 +08:00
meta: {
title: '图标',
},
},
2020-10-13 22:22:04 +08:00
{
path: '/tabs',
name: 'TabsDemo',
component: () => import('/@/views/demo/feat/tabs/index.vue'),
meta: {
title: '标签页操作',
},
},
2020-09-28 20:19:10 +08:00
{
path: '/context-menu',
name: 'ContextMenuDemo',
component: () => import('/@/views/demo/feat/context-menu/index.vue'),
meta: {
title: '右键菜单',
},
},
2020-10-11 23:48:25 +08:00
{
path: '/click-out-side',
name: 'ClickOutSideDemo',
component: () => import('/@/views/demo/feat/click-out-side/index.vue'),
2020-10-11 23:48:25 +08:00
meta: {
title: 'ClickOutSide组件',
},
},
2020-09-28 20:19:10 +08:00
{
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: '全屏',
},
},
2020-11-03 21:30:25 +08:00
{
path: '/error-log',
name: 'ErrorLog',
component: () => import('/@/views/sys/error-log/index.vue'),
meta: {
title: '错误日志',
},
},
2020-10-14 21:08:07 +08:00
{
path: '/testTab/:id',
name: 'TestTab',
component: () => import('/@/views/demo/feat/tab-params/index.vue'),
meta: {
title: 'Tab带参',
2020-10-14 22:08:56 +08:00
carryParam: true,
2020-10-14 21:08:07 +08:00
},
},
2020-09-28 20:19:10 +08:00
],
2020-11-12 23:15:11 +08:00
};
export default feat;