Browse Source

chore: 适配模态框

master
wangxiang 2 years ago
parent
commit
aecab42fd1
  1. 10
      src/views/workflow/extension/form/helper/WorkflowFormDesign.vue

10
src/views/workflow/extension/form/helper/WorkflowFormDesign.vue

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
:canFullscreen="false"
@register="registerModal"
@ok="handleSubmit"
@visible-change="handleClose"
@visible-change="handleVisibleChange"
>
<div id="formDesign"/>
</BasicModal>
@ -30,7 +30,7 @@ @@ -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 @@ @@ -58,10 +58,8 @@
setModalProps(props);
});
function handleClose(vis:boolean) {
if (!vis) {
state.formDesignApp.unmount();
}
function handleVisibleChange(visible: boolean) {
!visible && state.formDesignApp.unmount();
}
/** 处理弹出框提交 */

Loading…
Cancel
Save