From d685a18b9e580fdddd1b4233c4e53c6a75cc21c4 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 31 Mar 2024 14:38:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=80=9D=E7=BB=B4?= =?UTF-8?q?=E5=AF=BC=E5=9B=BE=E7=A4=BA=E4=BE=8B?= 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 | 6 ++++-- src/router/modules/board.ts | 1 + src/router/modules/formdesign.ts | 1 + src/router/modules/mind.ts | 25 ++++++++++++++++++++++++ src/router/modules/ppt.ts | 1 + 8 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 src/router/modules/mind.ts diff --git a/locales/en.yaml b/locales/en.yaml index f6bb7c7c0..299062bb0 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -130,6 +130,7 @@ menus: pureTableEdit: Edit Usage pureVxeTable: Virtual Usage pureBoard: Paint Board + pureMindMap: Mind Map pureMenuOverflow: Menu Overflow Show Tooltip Text pureChildMenuOverflow: Child Menu Overflow Show Tooltip Text status: diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index e13ae5bbe..ad36356fd 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -130,6 +130,7 @@ menus: pureTableEdit: 可编辑用法 pureVxeTable: 虚拟滚动 pureBoard: 艺术画板 + pureMindMap: 思维导图 pureMenuOverflow: 目录超出显示 Tooltip 文字提示 pureChildMenuOverflow: 菜单超出显示 Tooltip 文字提示 status: diff --git a/src/components/ReIcon/src/offlineIcon.ts b/src/components/ReIcon/src/offlineIcon.ts index 1056b1d96..2283a55d3 100644 --- a/src/components/ReIcon/src/offlineIcon.ts +++ b/src/components/ReIcon/src/offlineIcon.ts @@ -31,6 +31,7 @@ import Links from "@iconify-icons/ri/links-fill"; import Search from "@iconify-icons/ri/search-line"; import FlUser from "@iconify-icons/ri/admin-line"; import Setting from "@iconify-icons/ri/settings-3-line"; +import MindMap from "@iconify-icons/ri/mind-map"; import BarChart from "@iconify-icons/ri/bar-chart-horizontal-line"; import LoginLog from "@iconify-icons/ri/window-line"; import Artboard from "@iconify-icons/ri/artboard-line"; @@ -54,6 +55,7 @@ addIcon("ri:table-line", Table); addIcon("ri:search-line", Search); addIcon("ri:admin-line", FlUser); addIcon("ri:settings-3-line", Setting); +addIcon("ri:mind-map", MindMap); addIcon("ri:bar-chart-horizontal-line", BarChart); addIcon("ri:window-line", LoginLog); addIcon("ri:file-search-line", SystemLog); diff --git a/src/router/enums.ts b/src/router/enums.ts index 6cd94fb9e..78719faf9 100644 --- a/src/router/enums.ts +++ b/src/router/enums.ts @@ -22,8 +22,9 @@ const home = 0, // 平台规定只有 home 路由的 rank 才能为 0 ,所以 formdesign = 19, board = 20, ppt = 21, - guide = 22, - menuoverflow = 23; + mind = 22, + guide = 23, + menuoverflow = 24; export { home, @@ -48,6 +49,7 @@ export { formdesign, board, ppt, + mind, guide, menuoverflow }; diff --git a/src/router/modules/board.ts b/src/router/modules/board.ts index 3cf0a0b5c..3e7713d0a 100644 --- a/src/router/modules/board.ts +++ b/src/router/modules/board.ts @@ -17,6 +17,7 @@ export default { component: IFrame, meta: { title: $t("menus.pureBoard"), + keepAlive: true, frameSrc: "https://songlh.top/paint-board/" } } diff --git a/src/router/modules/formdesign.ts b/src/router/modules/formdesign.ts index 2cc6f6e37..03ca9370e 100644 --- a/src/router/modules/formdesign.ts +++ b/src/router/modules/formdesign.ts @@ -17,6 +17,7 @@ export default { component: IFrame, meta: { title: $t("menus.pureFormDesign"), + keepAlive: true, frameSrc: "https://haixin-fang.github.io/vue-form-design/playground/index.html", frameLoading: false diff --git a/src/router/modules/mind.ts b/src/router/modules/mind.ts new file mode 100644 index 000000000..629cde34d --- /dev/null +++ b/src/router/modules/mind.ts @@ -0,0 +1,25 @@ +import { $t } from "@/plugins/i18n"; +import { mind } from "@/router/enums"; +const IFrame = () => import("@/layout/frameView.vue"); + +export default { + path: "/mind-map", + redirect: "/mind-map/index", + meta: { + icon: "ri:mind-map", + title: $t("menus.pureMindMap"), + rank: mind + }, + children: [ + { + path: "/mind-map/index", + name: "FrameMindMap", + component: IFrame, + meta: { + title: $t("menus.pureMindMap"), + keepAlive: true, + frameSrc: "https://wanglin2.github.io/mind-map/#/" + } + } + ] +} satisfies RouteConfigsTable; diff --git a/src/router/modules/ppt.ts b/src/router/modules/ppt.ts index ba137220f..fcf292dd3 100644 --- a/src/router/modules/ppt.ts +++ b/src/router/modules/ppt.ts @@ -16,6 +16,7 @@ export default { component: IFrame, meta: { title: "PPT", + keepAlive: true, frameSrc: "https://pipipi-pikachu.github.io/PPTist/", frameLoading: false }