fix form
This commit is contained in:
parent
2333b78c3d
commit
e28c671635
|
|
@ -60,7 +60,13 @@ export const Form: FC<FMProps> = (props) => {
|
|||
if (props.render_parent) {
|
||||
if (!fm.internal.original_render) fm.internal.original_render = fm.render;
|
||||
fm.render = () => {
|
||||
if (isEditor) {
|
||||
setTimeout(() => {
|
||||
if (props.render_parent) props.render_parent();
|
||||
});
|
||||
} else {
|
||||
if (props.render_parent) props.render_parent();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,13 +38,11 @@ export const generateForm = async (
|
|||
}
|
||||
let is_md = !!_is_md;
|
||||
if (typeof _is_md === "undefined") {
|
||||
if (item.edit.parent?.item.name === "child") {
|
||||
if (item.edit.parent?.item.edit.parent?.item.component?.id === "cb52075a-14ab-455a-9847-6f1d929a2a73") {
|
||||
is_md = true;
|
||||
}
|
||||
}
|
||||
console.log(item.edit.parent);
|
||||
|
||||
console.log(is_md);
|
||||
if (pk) {
|
||||
if (data["on_load"]) {
|
||||
result.on_load = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue