|
|
@ -4,7 +4,7 @@ |
|
|
|
:canFullscreen="false" |
|
|
|
:canFullscreen="false" |
|
|
|
@register="registerModal" |
|
|
|
@register="registerModal" |
|
|
|
@ok="handleSubmit" |
|
|
|
@ok="handleSubmit" |
|
|
|
@visible-change="handleClose" |
|
|
|
@visible-change="handleVisibleChange" |
|
|
|
> |
|
|
|
> |
|
|
|
<div id="formDesign"/> |
|
|
|
<div id="formDesign"/> |
|
|
|
</BasicModal> |
|
|
|
</BasicModal> |
|
|
@ -30,7 +30,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
const formDesignProps = { |
|
|
|
const formDesignProps = { |
|
|
|
undoRedo: false, |
|
|
|
undoRedo: false, |
|
|
|
style: { height: 'calc(100vh - 133px)' }, |
|
|
|
style: { height: 'calc(100vh - 160px)' }, |
|
|
|
toolbar: ['clear', 'preview'] |
|
|
|
toolbar: ['clear', 'preview'] |
|
|
|
}; |
|
|
|
}; |
|
|
|
const emit = defineEmits(['success', 'register']); |
|
|
|
const emit = defineEmits(['success', 'register']); |
|
|
@ -58,10 +58,8 @@ |
|
|
|
setModalProps(props); |
|
|
|
setModalProps(props); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function handleClose(vis:boolean) { |
|
|
|
function handleVisibleChange(visible: boolean) { |
|
|
|
if (!vis) { |
|
|
|
!visible && state.formDesignApp.unmount(); |
|
|
|
state.formDesignApp.unmount(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 处理弹出框提交 */ |
|
|
|
/** 处理弹出框提交 */ |
|
|
|