fix: 【antd】代码生成器表单优化
parent
7dced16ca6
commit
78c7e9aec2
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获取合并的表单值 */
|
/** 获取合并的表单值 */
|
||||||
|
|
Loading…
Reference in New Issue