feat: 常用组件路由

This commit is contained in:
wang_fan_w 2024-07-14 10:29:24 +08:00
parent 17c5c65208
commit e6a9369d65
8 changed files with 144 additions and 0 deletions

View File

@ -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",

View File

@ -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"]: "节流",

View File

@ -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",

View File

@ -0,0 +1,7 @@
<template>
<div>拖拽</div>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@ -0,0 +1,7 @@
<template>
<div>富文本</div>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@ -0,0 +1,7 @@
<template>
<div>markdown</div>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@ -0,0 +1,7 @@
<template>
<div class="dc-page">放器</div>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@ -0,0 +1,7 @@
<template>
<div>打印</div>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>