From aecab42fd1a2bb7f0570eb8635a2a59e21513221 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Wed, 26 Jul 2023 14:21:17 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=80=82=E9=85=8D=E6=A8=A1=E6=80=81?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extension/form/helper/WorkflowFormDesign.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/workflow/extension/form/helper/WorkflowFormDesign.vue b/src/views/workflow/extension/form/helper/WorkflowFormDesign.vue index c4bb8c7..8d78c2c 100644 --- a/src/views/workflow/extension/form/helper/WorkflowFormDesign.vue +++ b/src/views/workflow/extension/form/helper/WorkflowFormDesign.vue @@ -4,7 +4,7 @@ :canFullscreen="false" @register="registerModal" @ok="handleSubmit" - @visible-change="handleClose" + @visible-change="handleVisibleChange" >
@@ -30,7 +30,7 @@ const formDesignProps = { undoRedo: false, - style: { height: 'calc(100vh - 133px)' }, + style: { height: 'calc(100vh - 160px)' }, toolbar: ['clear', 'preview'] }; const emit = defineEmits(['success', 'register']); @@ -58,10 +58,8 @@ setModalProps(props); }); - function handleClose(vis:boolean) { - if (!vis) { - state.formDesignApp.unmount(); - } + function handleVisibleChange(visible: boolean) { + !visible && state.formDesignApp.unmount(); } /** 处理弹出框提交 */