chore: 优化演示示例

This commit is contained in:
xiaoxian521
2024-01-11 22:42:19 +08:00
parent 7b228f4784
commit 44c541126a
30 changed files with 409 additions and 422 deletions

View File

@@ -1,34 +1,30 @@
// 完整版菜单比较多,将 rank 抽离出来,在此方便维护
const home = 0, // 平台规定只有 home 路由的 rank 才能为 0 ,所以后端在返回 rank 的时候需要从 1 开始哦
doc = 1,
utils = 2,
able = 1,
components = 2,
table = 3,
components = 4,
able = 5,
frame = 6,
nested = 7,
result = 8,
error = 9,
list = 10,
permission = 11,
system = 12,
tabs = 13,
formdesign = 14,
flowchart = 15,
ppt = 16,
editor = 17,
guide = 18,
menuoverflow = 19,
about = 20;
frame = 4,
nested = 5,
result = 6,
error = 7,
list = 8,
permission = 9,
system = 10,
tabs = 11,
formdesign = 12,
flowchart = 13,
ppt = 14,
editor = 15,
guide = 16,
about = 17,
menuoverflow = 18;
export {
home,
doc,
utils,
table,
components,
able,
components,
table,
frame,
nested,
result,
@@ -42,6 +38,6 @@ export {
ppt,
editor,
guide,
menuoverflow,
about
about,
menuoverflow
};

View File

@@ -15,8 +15,7 @@ export default {
name: "VideoFrame",
component: () => import("@/views/able/video-frame/index.vue"),
meta: {
title: $t("menus.hsVideoFrame"),
extraIcon: "IF-pure-iconfont-new svg"
title: $t("menus.hsVideoFrame")
}
},
{
@@ -24,8 +23,7 @@ export default {
name: "Wavesurfer",
component: () => import("@/views/able/wavesurfer/index.vue"),
meta: {
title: $t("menus.hsWavesurfer"),
extraIcon: "IF-pure-iconfont-new svg"
title: $t("menus.hsWavesurfer")
}
},
{
@@ -169,8 +167,7 @@ export default {
name: "Sensitive",
component: () => import("@/views/able/sensitive.vue"),
meta: {
title: $t("menus.hsSensitive"),
extraIcon: "IF-pure-iconfont-new svg"
title: $t("menus.hsSensitive")
}
},
{
@@ -178,8 +175,7 @@ export default {
name: "Pinyin",
component: () => import("@/views/able/pinyin.vue"),
meta: {
title: $t("menus.hsPinyin"),
extraIcon: "IF-pure-iconfont-new svg"
title: $t("menus.hsPinyin")
}
}
]

View File

@@ -45,8 +45,7 @@ export default {
name: "Waterfall",
component: () => import("@/views/components/waterfall/index.vue"),
meta: {
title: $t("menus.hswaterfall"),
extraIcon: "IF-pure-iconfont-new svg"
title: $t("menus.hswaterfall")
}
},
{
@@ -110,8 +109,7 @@ export default {
name: "AnimateCss",
component: () => import("@/views/components/animatecss/index.vue"),
meta: {
title: $t("menus.hsanimatecss"),
extraIcon: "IF-pure-iconfont-new svg"
title: $t("menus.hsanimatecss")
}
},
{

View File

@@ -1,24 +0,0 @@
import { doc } from "@/router/enums";
import hot from "@/assets/svg/hot.svg?component";
const IFrame = () => import("@/layout/frameView.vue");
export default {
path: "/pure-admin-doc",
redirect: "/pure-admin-doc/index",
meta: {
icon: hot,
title: "pure-admin-doc",
rank: doc
},
children: [
{
path: "/pure-admin-doc/index",
name: "FrameDoc",
component: IFrame,
meta: {
title: "pure-admin-doc",
frameSrc: "https://yiming_chang.gitee.io/pure-admin-doc/"
}
}
]
} satisfies RouteConfigsTable;

View File

@@ -1,24 +0,0 @@
import { utils } from "@/router/enums";
import hot from "@/assets/svg/hot.svg?component";
const IFrame = () => import("@/layout/frameView.vue");
export default {
path: "/pure-admin-utils",
redirect: "/pure-admin-utils/index",
meta: {
icon: hot,
title: "pure-admin-utils",
rank: utils
},
children: [
{
path: "/pure-admin-utils/index",
name: "FrameUtils",
component: IFrame,
meta: {
title: "pure-admin-utils",
frameSrc: "https://pure-admin-utils.netlify.app/"
}
}
]
} satisfies RouteConfigsTable;

View File

@@ -1,12 +1,11 @@
import { $t } from "@/plugins/i18n";
import { table } from "@/router/enums";
import hot from "@/assets/svg/hot.svg?component";
export default {
path: "/pure-table",
redirect: "/pure-table/index",
meta: {
icon: hot,
icon: "table",
title: "pure-admin-table",
rank: table
},