feat: 常用组件路由
This commit is contained in:
parent
17c5c65208
commit
e6a9369d65
@ -22,6 +22,12 @@ export default {
|
||||
["third-menu-7"]: "third-menu-7",
|
||||
["third-menu-8"]: "third-menu-8",
|
||||
["third-menu-9"]: "third-menu-9",
|
||||
["common-component"]: "common component",
|
||||
["player"]: "player",
|
||||
["print"]: "print",
|
||||
["draggable"]: "draggable",
|
||||
["editor"]: "editor",
|
||||
["markdown"]: "Markdown",
|
||||
["custom-instruction"]: "custom instruction",
|
||||
["anti-shake"]: "anti shake",
|
||||
["throttle"]: "throttle",
|
||||
|
||||
@ -22,6 +22,12 @@ export default {
|
||||
["third-menu-7"]: "三级菜单-7",
|
||||
["third-menu-8"]: "三级菜单-8",
|
||||
["third-menu-9"]: "三级菜单-9",
|
||||
["common-component"]: "常用组件",
|
||||
["player"]: "播放器",
|
||||
["print"]: "打印",
|
||||
["draggable"]: "拖拽",
|
||||
["editor"]: "富文本",
|
||||
["markdown"]: "Markdown",
|
||||
["custom-instruction"]: "自定义指令",
|
||||
["anti-shake"]: "防抖",
|
||||
["throttle"]: "节流",
|
||||
|
||||
@ -272,6 +272,103 @@ export const dynamicRoutes: RouteRecordRaw[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: "/common-component",
|
||||
name: "common-component",
|
||||
redirect: "/common-component/player",
|
||||
meta: {
|
||||
title: "common-component",
|
||||
hide: false,
|
||||
keepAlive: true,
|
||||
affix: false,
|
||||
link: "",
|
||||
iframe: false,
|
||||
roles: ["admin"],
|
||||
svgIcon: "classify"
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/common-component/player",
|
||||
name: "player",
|
||||
component: () => import("@/views/common-component/player/player.vue"),
|
||||
meta: {
|
||||
title: "player",
|
||||
hide: false,
|
||||
keepAlive: true,
|
||||
affix: false,
|
||||
link: "",
|
||||
iframe: false,
|
||||
roles: ["admin"],
|
||||
icon: "icon-menu"
|
||||
},
|
||||
children: []
|
||||
},
|
||||
{
|
||||
path: "/common-component/print",
|
||||
name: "print",
|
||||
component: () => import("@/views/common-component/print/print.vue"),
|
||||
meta: {
|
||||
title: "print",
|
||||
hide: false,
|
||||
keepAlive: true,
|
||||
affix: false,
|
||||
link: "",
|
||||
iframe: false,
|
||||
roles: ["admin"],
|
||||
icon: "icon-menu"
|
||||
},
|
||||
children: []
|
||||
},
|
||||
{
|
||||
path: "/common-component/draggable",
|
||||
name: "draggable",
|
||||
component: () => import("@/views/common-component/draggable/draggable.vue"),
|
||||
meta: {
|
||||
title: "draggable",
|
||||
hide: false,
|
||||
keepAlive: true,
|
||||
affix: false,
|
||||
link: "",
|
||||
iframe: false,
|
||||
roles: ["admin"],
|
||||
icon: "icon-menu"
|
||||
},
|
||||
children: []
|
||||
},
|
||||
{
|
||||
path: "/common-component/editor",
|
||||
name: "editor",
|
||||
component: () => import("@/views/common-component/editor/editor.vue"),
|
||||
meta: {
|
||||
title: "editor",
|
||||
hide: false,
|
||||
keepAlive: true,
|
||||
affix: false,
|
||||
link: "",
|
||||
iframe: false,
|
||||
roles: ["admin"],
|
||||
icon: "icon-menu"
|
||||
},
|
||||
children: []
|
||||
},
|
||||
{
|
||||
path: "/common-component/markdown",
|
||||
name: "markdown",
|
||||
component: () => import("@/views/common-component/markdown/markdown.vue"),
|
||||
meta: {
|
||||
title: "markdown",
|
||||
hide: false,
|
||||
keepAlive: true,
|
||||
affix: false,
|
||||
link: "",
|
||||
iframe: false,
|
||||
roles: ["admin"],
|
||||
icon: "icon-menu"
|
||||
},
|
||||
children: []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: "/custom-instruction",
|
||||
name: "custom-instruction",
|
||||
|
||||
7
src/views/common-component/draggable/draggable.vue
Normal file
7
src/views/common-component/draggable/draggable.vue
Normal file
@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div>拖拽</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
7
src/views/common-component/editor/editor.vue
Normal file
7
src/views/common-component/editor/editor.vue
Normal file
@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div>富文本</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
7
src/views/common-component/markdown/markdown.vue
Normal file
7
src/views/common-component/markdown/markdown.vue
Normal file
@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div>markdown</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
7
src/views/common-component/player/player.vue
Normal file
7
src/views/common-component/player/player.vue
Normal file
@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div class="dc-page">放器</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
7
src/views/common-component/print/print.vue
Normal file
7
src/views/common-component/print/print.vue
Normal file
@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div>打印</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
Loading…
x
Reference in New Issue
Block a user