feat: 添加艺术画板功能,比如可以用来绘制一些设计思想架构图

This commit is contained in:
xiaoxian521 2024-01-14 12:42:30 +08:00
parent c48291130c
commit 61c6ec230a
6 changed files with 39 additions and 7 deletions

View File

@ -111,6 +111,7 @@ menus:
hsPureTableBase: Base Usage hsPureTableBase: Base Usage
hsPureTableHigh: High Usage hsPureTableHigh: High Usage
hsTree: Big Data Tree hsTree: Big Data Tree
hsboard: Paint Board
hsMenuoverflow: Menu Overflow Show Tooltip Text hsMenuoverflow: Menu Overflow Show Tooltip Text
hsChildMenuoverflow: Child Menu Overflow Show Tooltip Text hsChildMenuoverflow: Child Menu Overflow Show Tooltip Text
status: status:

View File

@ -111,6 +111,7 @@ menus:
hsPureTableBase: 基础用法23个示例 hsPureTableBase: 基础用法23个示例
hsPureTableHigh: 高级用法11个示例 hsPureTableHigh: 高级用法11个示例
hsTree: 大数据树业务组件 hsTree: 大数据树业务组件
hsboard: 艺术画板
hsMenuoverflow: 目录超出显示 Tooltip 文字提示 hsMenuoverflow: 目录超出显示 Tooltip 文字提示
hsChildMenuoverflow: 菜单超出显示 Tooltip 文字提示 hsChildMenuoverflow: 菜单超出显示 Tooltip 文字提示
status: status:

View File

@ -28,6 +28,7 @@ import Monitor from "@iconify-icons/ep/monitor";
import Tag from "@iconify-icons/ri/bookmark-2-line"; import Tag from "@iconify-icons/ri/bookmark-2-line";
import Table from "@iconify-icons/ri/table-line"; import Table from "@iconify-icons/ri/table-line";
import Info from "@iconify-icons/ri/file-info-line"; import Info from "@iconify-icons/ri/file-info-line";
import Artboard from "@iconify-icons/ri/artboard-line";
addIcon("ubuntuFill", UbuntuFill); addIcon("ubuntuFill", UbuntuFill);
addIcon("menu", Menu); addIcon("menu", Menu);
addIcon("edit", Edit); addIcon("edit", Edit);
@ -51,3 +52,4 @@ addIcon("monitor", Monitor);
addIcon("tag", Tag); addIcon("tag", Tag);
addIcon("table", Table); addIcon("table", Table);
addIcon("info", Info); addIcon("info", Info);
addIcon("artboard", Artboard);

View File

@ -16,9 +16,10 @@ const home = 0, // 平台规定只有 home 路由的 rank 才能为 0 ,所以
editor = 13, editor = 13,
flowchart = 14, flowchart = 14,
formdesign = 15, formdesign = 15,
ppt = 16, board = 16,
guide = 17, ppt = 17,
menuoverflow = 18; guide = 18,
menuoverflow = 19;
export { export {
home, home,
@ -34,10 +35,11 @@ export {
system, system,
tabs, tabs,
about, about,
formdesign,
flowchart,
ppt,
editor, editor,
flowchart,
formdesign,
board,
ppt,
guide, guide,
menuoverflow menuoverflow
}; };

View File

@ -0,0 +1,25 @@
import { $t } from "@/plugins/i18n";
import { board } from "@/router/enums";
const IFrame = () => import("@/layout/frameView.vue");
export default {
path: "/board",
redirect: "/board/index",
meta: {
icon: "artboard",
title: $t("menus.hsboard"),
rank: board
},
children: [
{
path: "/board/index",
name: "FrameBoard",
component: IFrame,
meta: {
title: $t("menus.hsboard"),
frameSrc: "https://songlh.top/paint-board/",
extraIcon: "IF-pure-iconfont-new svg"
}
}
]
} satisfies RouteConfigsTable;

View File

@ -18,7 +18,8 @@ export default {
meta: { meta: {
title: $t("menus.hsFormDesign"), title: $t("menus.hsFormDesign"),
frameSrc: frameSrc:
"https://haixin-fang.github.io/vue-form-design/playground/index.html" "https://haixin-fang.github.io/vue-form-design/playground/index.html",
frameLoading: false
} }
} }
] ]