From 61c6ec230af3892d75a09a92f5d3af00d5f1aabb Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 14 Jan 2024 12:42:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=89=BA=E6=9C=AF?= =?UTF-8?q?=E7=94=BB=E6=9D=BF=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=AF=94=E5=A6=82?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E7=94=A8=E6=9D=A5=E7=BB=98=E5=88=B6=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E8=AE=BE=E8=AE=A1=E6=80=9D=E6=83=B3=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.yaml | 1 + locales/zh-CN.yaml | 1 + src/components/ReIcon/src/offlineIcon.ts | 2 ++ src/router/enums.ts | 14 +++++++------ src/router/modules/board.ts | 25 ++++++++++++++++++++++++ src/router/modules/formdesign.ts | 3 ++- 6 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 src/router/modules/board.ts diff --git a/locales/en.yaml b/locales/en.yaml index bc1bbe45c..a3846101e 100644 --- a/locales/en.yaml +++ b/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: diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 21364443e..e0d5fb1c3 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -111,6 +111,7 @@ menus: hsPureTableBase: 基础用法(23个示例) hsPureTableHigh: 高级用法(11个示例) hsTree: 大数据树业务组件 + hsboard: 艺术画板 hsMenuoverflow: 目录超出显示 Tooltip 文字提示 hsChildMenuoverflow: 菜单超出显示 Tooltip 文字提示 status: diff --git a/src/components/ReIcon/src/offlineIcon.ts b/src/components/ReIcon/src/offlineIcon.ts index 830e9002e..9e3cf1ffe 100644 --- a/src/components/ReIcon/src/offlineIcon.ts +++ b/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); diff --git a/src/router/enums.ts b/src/router/enums.ts index 1f9ac894c..17def4030 100644 --- a/src/router/enums.ts +++ b/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, - flowchart, - ppt, editor, + flowchart, + formdesign, + board, + ppt, guide, menuoverflow }; diff --git a/src/router/modules/board.ts b/src/router/modules/board.ts new file mode 100644 index 000000000..6e9378e6b --- /dev/null +++ b/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; diff --git a/src/router/modules/formdesign.ts b/src/router/modules/formdesign.ts index f814eac8f..1aaf7f90b 100644 --- a/src/router/modules/formdesign.ts +++ b/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 } } ]