Эх сурвалжийг харах

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

xiaoxian521 1 жил өмнө
parent
commit
61c6ec230a

+ 1 - 0
locales/en.yaml

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

+ 1 - 0
locales/zh-CN.yaml

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

+ 2 - 0
src/components/ReIcon/src/offlineIcon.ts

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

+ 7 - 5
src/router/enums.ts

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

+ 25 - 0
src/router/modules/board.ts

@@ -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;

+ 2 - 1
src/router/modules/formdesign.ts

@@ -18,7 +18,8 @@ export default {
       meta: {
         title: $t("menus.hsFormDesign"),
         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
       }
     }
   ]