diff --git a/packages/common/business_components/src/ui/table/index.tsx b/packages/common/business_components/src/ui/table/index.tsx index c1d048a1f..1e2345a88 100644 --- a/packages/common/business_components/src/ui/table/index.tsx +++ b/packages/common/business_components/src/ui/table/index.tsx @@ -4,7 +4,7 @@ import UiPageNations from "./uiPageNations"; type UiTableProps = { headName: React.ReactNode|undefined; - publicReuseFacility: { [key: string]: string | number | boolean }[]; + tableData: { [key: string]: string | number | boolean }[]; headlist: UiHeadProps[]; pageSize: number; total: number; @@ -16,7 +16,7 @@ type UiHeadProps={ title:string; } -export function UiTable({ publicReuseFacility, headlist,pageSize , total, children,headName}: UiTableProps) { +export function UiTable({ tableData, headlist,pageSize , total, children,headName}: UiTableProps) { const cur = 1; return ( @@ -25,14 +25,14 @@ export function UiTable({ publicReuseFacility, headlist,pageSize , total, childr {children? <>{children}: - {headlist.map((head) => ( + {headlist?.map((head) => ( {head.title} ))} } - - {publicReuseFacility.map((el: { [key: string]: string | number | boolean },index) => ( + + {tableData?.map((el: { [key: string]: string | number | boolean },index) => ( {headlist.map((head) => ( {el[head.id]} @@ -43,7 +43,7 @@ export function UiTable({ publicReuseFacility, headlist,pageSize , total, childr
- + {total <=0? <>: } ); } \ No newline at end of file