summaryrefslogtreecommitdiff
path: root/components/data-table/data-table.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-05-12 11:34:29 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-05-12 11:34:29 +0000
commit033d96b6bfe812e26e9728c4a3f1e69abf858470 (patch)
tree953daaac8092a7ae6abb157d9819023c1710984d /components/data-table/data-table.tsx
parentcd682438ffed4c2fd551606dc6dbec7b62497f6d (diff)
(대표님) 데이터테이블 - 공통컴포넌트 변경사항항
Diffstat (limited to 'components/data-table/data-table.tsx')
-rw-r--r--components/data-table/data-table.tsx5
1 files changed, 3 insertions, 2 deletions
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>