This commit is contained in:
rizky 2024-11-05 00:50:42 -07:00
parent d3e5147a59
commit 1e01afae31
2 changed files with 19 additions and 18 deletions

View File

@ -7,7 +7,7 @@ import { FieldTypeInput, PropTypeInput } from "./type/TypeInput";
import { FieldLink } from "./type/TypeLink"; import { FieldLink } from "./type/TypeLink";
import { MultiOption } from "./type/TypeMultiOption"; import { MultiOption } from "./type/TypeMultiOption";
import { SingleOption } from "./type/TypeSingleOption"; import { SingleOption } from "./type/TypeSingleOption";
import { TableListEdit } from "app/comps/table-list-edit/TableListEdit"; // import { TableListEdit } from "app/comps/table-list-edit/TableListEdit";
export const FieldInput: FC<{ export const FieldInput: FC<{
field: FieldLocal; field: FieldLocal;
@ -86,23 +86,23 @@ export const FieldInput: FC<{
child: get(_item, "edit.props.child.value") as PrasiItem, child: get(_item, "edit.props.child.value") as PrasiItem,
bottom: childsTableEdit.find((e) => e.name === "bottom") as PrasiItem, bottom: childsTableEdit.find((e) => e.name === "bottom") as PrasiItem,
}; };
table_list_edit = ( // table_list_edit = (
<TableListEdit // <TableListEdit
on_init={() => { // on_init={() => {
return fm; // return fm;
}} // }}
field = {field} // field = {field}
arg={arg} // arg={arg}
show_header={arg.tbl_show_header} // show_header={arg.tbl_show_header}
name={arg.name} // name={arg.name}
child={child} // child={child}
PassProp={PassProp} // PassProp={PassProp}
item={_item} // item={_item}
bottom={tableListEdit.bottom} // bottom={tableListEdit.bottom}
body={tableListEdit.child} // body={tableListEdit.child}
fm={fm} // fm={fm}
/> // />
); // );
} }
let not_ready: any = false; let not_ready: any = false;

View File

@ -4,6 +4,7 @@
"@hookform/resolvers": "^3.3.4", "@hookform/resolvers": "^3.3.4",
"@paralleldrive/cuid2": "^2.2.2", "@paralleldrive/cuid2": "^2.2.2",
"@prisma/client": "^5.13.0", "@prisma/client": "^5.13.0",
"@radix-ui/react-aspect-ratio": "^1.1.0",
"@radix-ui/react-alert-dialog": "^1.1.1", "@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.1", "@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-dropdown-menu": "^2.1.1",