!203 增加表单就绪状态,让表单数据先于form-create渲染,解决发起流程时表单事件不触发问题

Merge pull request !203 from 崔什么/master
pull/205/head^2
xingyu 2025-08-21 02:10:28 +00:00 committed by Gitee
commit 4af5931e92
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,9 @@ const props = defineProps({
const emit = defineEmits(['cancel']);
// form-create
const isFormReady = ref(false)
const { closeCurrentTab } = useTabs();
const getTitle = computed(() => {
@ -136,6 +139,9 @@ async function initProcessInfo(row: any, formVariables?: any) {
}
setConfAndFields2(detailForm, row.formConf, row.formFields, formVariables);
//
isFormReady.value = true
await nextTick();
fApi.value?.btn.show(false); //
@ -292,6 +298,7 @@ defineExpose({ initProcessInfo });
class="flex-1 overflow-auto"
>
<form-create
v-if="isFormReady"
:rule="detailForm.rule"
v-model:api="fApi"
v-model="detailForm.value"