fix form
This commit is contained in:
parent
648291078c
commit
8386021db2
|
|
@ -56,6 +56,11 @@ export const Form: FC<FMProps> = (props) => {
|
||||||
field: null,
|
field: null,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (props.render_parent) {
|
||||||
|
fm.render = props.render_parent;
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// deteksi jika ada softdelete
|
// deteksi jika ada softdelete
|
||||||
if (Array.isArray(props.feature)) {
|
if (Array.isArray(props.feature)) {
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ export type FMProps = {
|
||||||
on_load_deps?: any[];
|
on_load_deps?: any[];
|
||||||
feature?: any[];
|
feature?: any[];
|
||||||
sfd_field?: any;
|
sfd_field?: any;
|
||||||
|
render_parent?: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GenField =
|
export type GenField =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue