fix: 【ele】代码生成器表单优化
parent
b28476d0c8
commit
7dced16ca6
|
|
@ -350,7 +350,7 @@ export function useGenerationInfoSubTableFormSchema(
|
|||
},
|
||||
{
|
||||
label: '一对一',
|
||||
value: 'false',
|
||||
value: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -131,11 +131,12 @@ getDetail();
|
|||
v-for="(step, index) in steps"
|
||||
:key="index"
|
||||
:title="step.title"
|
||||
class="cursor-pointer"
|
||||
@click="() => (currentStep = index)"
|
||||
/>
|
||||
</ElSteps>
|
||||
|
||||
<div class="flex-1 overflow-auto py-4">
|
||||
<!-- TODO @puhui999:顶部的导航,应该可以点击哈; -->
|
||||
<!-- 根据当前步骤显示对应的组件 -->
|
||||
<BasicInfo
|
||||
v-show="currentStep === 0"
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@ function updateTreeSchema(): void {
|
|||
treeFormApi.setState({
|
||||
schema: useGenerationInfoTreeFormSchema(props.columns),
|
||||
});
|
||||
// 树表信息回显
|
||||
treeFormApi.setValues(props.table as any);
|
||||
}
|
||||
|
||||
/** 更新主子表信息表单 schema */
|
||||
|
|
@ -76,6 +78,8 @@ function updateSubSchema(): void {
|
|||
subFormApi.setState({
|
||||
schema: useGenerationInfoSubTableFormSchema(props.columns, tables.value),
|
||||
});
|
||||
// 主子表信息回显
|
||||
subFormApi.setValues(props.table as any);
|
||||
}
|
||||
|
||||
/** 获取合并的表单值 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue