fix: 【ele】代码生成器表单优化

pull/133/head
puhui999 2025-06-07 12:50:57 +08:00
parent b28476d0c8
commit 7dced16ca6
3 changed files with 7 additions and 2 deletions

View File

@ -350,7 +350,7 @@ export function useGenerationInfoSubTableFormSchema(
}, },
{ {
label: '一对一', label: '一对一',
value: 'false', value: false,
}, },
], ],
}, },

View File

@ -131,11 +131,12 @@ getDetail();
v-for="(step, index) in steps" v-for="(step, index) in steps"
:key="index" :key="index"
:title="step.title" :title="step.title"
class="cursor-pointer"
@click="() => (currentStep = index)"
/> />
</ElSteps> </ElSteps>
<div class="flex-1 overflow-auto py-4"> <div class="flex-1 overflow-auto py-4">
<!-- TODO @puhui999顶部的导航应该可以点击哈 -->
<!-- 根据当前步骤显示对应的组件 --> <!-- 根据当前步骤显示对应的组件 -->
<BasicInfo <BasicInfo
v-show="currentStep === 0" v-show="currentStep === 0"

View File

@ -69,6 +69,8 @@ function updateTreeSchema(): void {
treeFormApi.setState({ treeFormApi.setState({
schema: useGenerationInfoTreeFormSchema(props.columns), schema: useGenerationInfoTreeFormSchema(props.columns),
}); });
//
treeFormApi.setValues(props.table as any);
} }
/** 更新主子表信息表单 schema */ /** 更新主子表信息表单 schema */
@ -76,6 +78,8 @@ function updateSubSchema(): void {
subFormApi.setState({ subFormApi.setState({
schema: useGenerationInfoSubTableFormSchema(props.columns, tables.value), schema: useGenerationInfoSubTableFormSchema(props.columns, tables.value),
}); });
//
subFormApi.setValues(props.table as any);
} }
/** 获取合并的表单值 */ /** 获取合并的表单值 */