|
|
|
@ -6,7 +6,6 @@
@@ -6,7 +6,6 @@
|
|
|
|
|
:showCancelBtn="false" |
|
|
|
|
:showOkBtn="false" |
|
|
|
|
@register="registerModal" |
|
|
|
|
@visible-change="handleVisibleChange" |
|
|
|
|
> |
|
|
|
|
<div id="formDesign"/> |
|
|
|
|
<template #centerFooter> |
|
|
|
@ -57,6 +56,7 @@
@@ -57,6 +56,7 @@
|
|
|
|
|
const microAppStore = useMicroAppStore(); |
|
|
|
|
const [registerModal, { setModalProps, closeModal, changeLoading }] = useModalInner(async (data: BoxPayload = { _tag: '' }) => { |
|
|
|
|
changeLoading(); |
|
|
|
|
state.formDesignApp?.unmount(); |
|
|
|
|
state.formDesignApp = loadMicroApp(Object.assign({} , apps.find(item => item.name == 'form-design'), { |
|
|
|
|
container: '#formDesign', |
|
|
|
|
props: { |
|
|
|
@ -89,10 +89,6 @@
@@ -89,10 +89,6 @@
|
|
|
|
|
setModalProps(props); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function handleVisibleChange(visible: boolean) { |
|
|
|
|
!visible && state.formDesignApp?.unmount(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 处理弹出框提交 */ |
|
|
|
|
async function handleSubmitForm(status: string) { |
|
|
|
|
try { |
|
|
|
|