From 033d96b6bfe812e26e9728c4a3f1e69abf858470 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 12 May 2025 11:34:29 +0000
Subject: (대표님) 데이터테이블 - 공통컴포넌트 변경사항항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/data-table/data-table.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'components/data-table/data-table.tsx')

diff --git a/components/data-table/data-table.tsx b/components/data-table/data-table.tsx
index 5aeefe21..c241c1ec 100644
--- a/components/data-table/data-table.tsx
+++ b/components/data-table/data-table.tsx
@@ -35,8 +35,9 @@ export function DataTable<TData>({
   compact = false, // 기본값은 false로 설정
   children,
   className,
+  maxHeight,
   ...props
-}: DataTableProps<TData>) {
+}: DataTableProps<TData> & { maxHeight?: string | number }) {
 
   useAutoSizeColumns(table, autoSizeColumns)
 
@@ -56,7 +57,7 @@ export function DataTable<TData>({
   return (
     <div className={cn("w-full space-y-2.5 overflow-auto", className)} {...props}>
       {children}
-      <div className="max-w-[100vw] overflow-auto" style={{ maxHeight: '35rem' }}>
+      <div className="max-w-[100vw] overflow-auto"  style={{ maxHeight: maxHeight || '35rem' }} >
         <Table className="[&>thead]:sticky [&>thead]:top-0 [&>thead]:z-10 table-fixed">
           {/* 테이블 헤더 */}
           <TableHeader>
-- 
cgit v1.2.3

