From 7078f932ef6393c64d7967f1ea2cf5bf5aab04e6 Mon Sep 17 00:00:00 2001 From: leedj312 Date: Tue, 4 Mar 2025 17:58:30 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=20=ED=97=A4?= =?UTF-8?q?=EB=8D=94=20colspan=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 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/common/business_components/src/ui/table/index.tsx b/packages/common/business_components/src/ui/table/index.tsx index 6a5033963..17360af12 100644 --- a/packages/common/business_components/src/ui/table/index.tsx +++ b/packages/common/business_components/src/ui/table/index.tsx @@ -3,29 +3,30 @@ import UiPageNations from "./uiPageNations"; interface UiTableProps { + headName: string; publicReuseFacility: any[]; headlist: { id: string; title: string; }[]; pageSize: number; total: number; + children: React.ReactNode|undefined; } export function UiTable(UiTableProps: UiTableProps) { - const { publicReuseFacility, headlist,pageSize , total} = UiTableProps; - let cur = 1; - + const { publicReuseFacility, headlist,pageSize , total, children,headName} = UiTableProps; + const cur = 1; return ( <> -

공공하수처리시설 목록

+

{headName}

- + {children? <>{children}: {headlist.map((head) => ( {head.title} ))} - - + } + {publicReuseFacility.map((el: any,index) => (