|
|
|
@ -6,16 +6,15 @@
@@ -6,16 +6,15 @@
|
|
|
|
|
@ok="handleSubmit" |
|
|
|
|
> |
|
|
|
|
<div id="formDesign"/> |
|
|
|
|
<a-button @click="test">测试</a-button> |
|
|
|
|
</BasicModal> |
|
|
|
|
</template> |
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import { reactive } from 'vue'; |
|
|
|
|
import { BasicModal, ModalProps, useModalInner } from '/@/components/Modal'; |
|
|
|
|
import { loadMicroApp } from 'qiankun'; |
|
|
|
|
import { microState } from '/@/qiankun'; |
|
|
|
|
import { getSubDefineProps } from '/@/qiankun/state'; |
|
|
|
|
import { GlStateEnum } from '/@/enums/microAppEnum'; |
|
|
|
|
import { useMicroAppStore } from '/@/store/modules/microApp'; |
|
|
|
|
|
|
|
|
|
interface TableState { |
|
|
|
|
tag: string; |
|
|
|
@ -31,6 +30,7 @@
@@ -31,6 +30,7 @@
|
|
|
|
|
toolbar: ['clear', 'preview'] |
|
|
|
|
}; |
|
|
|
|
const emit = defineEmits(['success', 'register']); |
|
|
|
|
const microAppStore = useMicroAppStore(); |
|
|
|
|
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data: BoxPayload = { _tag: '' }) => { |
|
|
|
|
loadMicroApp({ |
|
|
|
|
name: 'formDesign', |
|
|
|
@ -56,14 +56,6 @@
@@ -56,14 +56,6 @@
|
|
|
|
|
setModalProps(props); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// todo:待删除 |
|
|
|
|
function test(){ |
|
|
|
|
console.log(10101); |
|
|
|
|
microState.setGlobalState({ |
|
|
|
|
[GlStateEnum.FORM_DESIGN_PROPS_KEY]: 'barbar' |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 处理弹出框提交 */ |
|
|
|
|
async function handleSubmit() { |
|
|
|
|
try { |
|
|
|
|