From decbd4ac345cbe7dcc3b65ff3cc68b59b1207196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 17 Mar 2026 21:01:55 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=88=A0?= =?UTF-8?q?=E9=99=A4quill=E4=BD=BF=E7=94=A8wangeditor-next=E6=9B=BF?= =?UTF-8?q?=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +- src/components/Editor/index.vue | 315 +++++++++++++----------------- src/views/system/notice/index.vue | 7 +- vite.config.ts | 6 +- 4 files changed, 147 insertions(+), 187 deletions(-) diff --git a/package.json b/package.json index ef37a1d..9834ff5 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,9 @@ "@element-plus/icons-vue": "2.3.2", "@highlightjs/vue-plugin": "2.1.2", "@iconify/vue": "^5.0.0", - "@vueup/vue-quill": "1.2.0", "@vueuse/core": "14.2.1", + "@wangeditor-next/editor": "5.6.50", + "@wangeditor-next/editor-for-vue": "5.1.14", "animate.css": "4.1.1", "await-to-js": "3.0.0", "axios": "1.13.6", @@ -73,9 +74,6 @@ "vitest": "4.0.18", "vue-tsc": "^3.2.5" }, - "overrides": { - "quill": "1.3.7" - }, "engines": { "node": ">=20.19.0", "npm": ">=8.19.0" diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index f21ef2e..9027027 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -1,37 +1,29 @@ - diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index badbe9d..a5594fb 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -86,7 +86,7 @@ - + @@ -185,9 +185,12 @@ const getList = async () => { }; /** 取消按钮 */ const cancel = () => { - reset(); dialog.visible = false; }; +/** 对话框关闭后重置 */ +const handleDialogClosed = () => { + reset(); +}; /** 表单重置 */ const reset = () => { form.value = { ...initFormData }; diff --git a/vite.config.ts b/vite.config.ts index 070846c..468fab4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -55,6 +55,7 @@ export default defineConfig(({ mode, command }) => { }, // 预编译 optimizeDeps: { + entries: ['src/**/*.vue'], include: [ 'vue', 'vue-router', @@ -63,9 +64,10 @@ export default defineConfig(({ mode, command }) => { '@vueuse/core', 'echarts', 'vue-i18n', - '@vueup/vue-quill', + '@wangeditor-next/editor', + '@wangeditor-next/editor-for-vue', 'image-conversion', - 'element-plus/es/components/**/css' + 'element-plus/es/components/**/style/css' ] } };