feat: 添加vue-flow流程图示例 (#1001)

* feat: 添加`vue-flow`流程图示例
This commit is contained in:
xiaoming
2024-03-19 21:05:44 +08:00
committed by GitHub
parent bf128f183f
commit f0a80c680e
12 changed files with 1183 additions and 20 deletions

View File

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

View File

@@ -0,0 +1,22 @@
import { vueflow } from "@/router/enums";
export default {
path: "/vue-flow",
redirect: "/vue-flow/index",
meta: {
icon: "ep:set-up",
title: "vue-flow",
rank: vueflow
},
children: [
{
path: "/vue-flow/index",
name: "VueFlow",
component: () => import("@/views/vue-flow/layouting/index.vue"),
meta: {
title: "vue-flow",
extraIcon: "IF-pure-iconfont-new svg"
}
}
]
} satisfies RouteConfigsTable;