From fa0d220aab8e3a24ab4c118ae3d30bce10a3133a Mon Sep 17 00:00:00 2001 From: leedj312 Date: Mon, 10 Mar 2025 18:01:01 +0900 Subject: [PATCH] =?UTF-8?q?tabledata=EB=A1=9C=20=EB=B3=80=EC=88=98=20?= =?UTF-8?q?=EB=AA=85=20=EB=B3=80=EA=B2=BD,=20=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=20=EB=84=A4=EC=9D=B4=EC=85=98=20unvisible=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business_components/src/ui/table/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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