From f24c5f8be971d578f1ffa23f821a501c3cc923ee Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 17 Nov 2025 16:53:28 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90antd=E3=80=91=E3=80=90bpm?= =?UTF-8?q?=E3=80=91=E6=B5=81=E7=A8=8B=E6=89=93=E5=8D=B0=E7=9A=84=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/modules/custom-print-template.vue | 19 ++++++++----------- .../bpm/model/form/modules/extra-setting.vue | 19 +++++++++---------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/apps/web-antd/src/views/bpm/model/form/modules/custom-print-template.vue b/apps/web-antd/src/views/bpm/model/form/modules/custom-print-template.vue index d4b26c391..ca18c1216 100644 --- a/apps/web-antd/src/views/bpm/model/form/modules/custom-print-template.vue +++ b/apps/web-antd/src/views/bpm/model/form/modules/custom-print-template.vue @@ -5,8 +5,8 @@ import { computed, onBeforeUnmount, ref, shallowRef } from 'vue'; import { useVbenModal } from '@vben/common-ui'; -// @ts-ignore - tinymce vue 声明文件按项目依赖提供 import Editor from '@tinymce/tinymce-vue'; +import { Alert, Button } from 'ant-design-vue'; import { setupTinyPlugins } from './tinymce-plugin'; @@ -23,9 +23,7 @@ const props = withDefaults( const tinymceScriptSrc = `${import.meta.env.VITE_BASE}tinymce/tinymce.min.js`; const [Modal, modalApi] = useVbenModal({ - closable: true, footer: false, - title: '自定义模板', async onOpenChange(isOpen: boolean) { if (!isOpen) { return; @@ -51,7 +49,6 @@ const handleConfirm = () => { modalApi.close(); }; -// 提供给 @ 自动补全的字段(默认 + 表单字段) const mentionList = computed(() => { const base: MentionItem[] = [ { id: 'startUser', name: '发起人' }, @@ -70,11 +67,10 @@ const mentionList = computed(() => { name: `[表单]${it.title}`, })); return [...base, ...extras]; -}); +}); // 提供给 @ 自动补全的字段(默认 + 表单字段) -// 编辑器 const valueHtml = ref(''); -const editorRef = shallowRef(); +const editorRef = shallowRef(); // 编辑器 const tinyInit = { height: 400, @@ -103,9 +99,10 @@ onBeforeUnmount(() => {