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(() => {