From 8db8f9ab194cb7f08e7a5d36197776b39ae1dcb0 Mon Sep 17 00:00:00 2001 From: xixiIBN5100 <144224541+xixiIBN5100@users.noreply.github.com> Date: Thu, 30 May 2024 14:40:53 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=97=AE=E5=8D=B7=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=A1=B5=E6=A0=87=E9=A2=98=E4=BC=98=E5=8C=96=20(#240)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 重构 src/management/pages/edit/modules 目录下组件, 使用 Vue3 组合式 API 写法 * perf: 问卷编辑页标题优化 --- web/package.json | 1 + .../pages/edit/components/ModuleNavbar.vue | 26 ++----- .../edit/modules/generalModule/BackPanel.vue | 11 +-- .../edit/modules/generalModule/NavPanel.vue | 56 +++++++------- .../edit/modules/generalModule/TitlePanel.vue | 73 ++++++++++++++++--- 5 files changed, 96 insertions(+), 71 deletions(-) diff --git a/web/package.json b/web/package.json index c2a6226b..3cc9e456 100644 --- a/web/package.json +++ b/web/package.json @@ -14,6 +14,7 @@ "format": "prettier --write src/" }, "dependencies": { + "@types/lodash-es": "^4.17.12", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.12", "async-validator": "^4.2.5", diff --git a/web/src/management/pages/edit/components/ModuleNavbar.vue b/web/src/management/pages/edit/components/ModuleNavbar.vue index a8250340..8b9de47b 100644 --- a/web/src/management/pages/edit/components/ModuleNavbar.vue +++ b/web/src/management/pages/edit/components/ModuleNavbar.vue @@ -15,35 +15,19 @@ - + +