From 033d96b6bfe812e26e9728c4a3f1e69abf858470 Mon Sep 17 00:00:00 2001 From: dujinkim 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-pagination.tsx | 1 + components/data-table/data-table-pin-left.tsx | 1 - components/data-table/data-table-pin-right.tsx | 1 - components/data-table/data-table-view-options.tsx | 1 - components/data-table/data-table.tsx | 5 +++-- 5 files changed, 4 insertions(+), 5 deletions(-) (limited to 'components/data-table') diff --git a/components/data-table/data-table-pagination.tsx b/components/data-table/data-table-pagination.tsx index 7a2a03f8..4ed63a1b 100644 --- a/components/data-table/data-table-pagination.tsx +++ b/components/data-table/data-table-pagination.tsx @@ -42,6 +42,7 @@ export function DataTablePagination({
{table.getFilteredSelectedRowModel().rows.length} of{" "} {table.getFilteredRowModel().rows.length} row(s) selected. + Total: {table.getRowCount()} records
{/* Rows per page Select */} diff --git a/components/data-table/data-table-pin-left.tsx b/components/data-table/data-table-pin-left.tsx index e79e01eb..27116774 100644 --- a/components/data-table/data-table-pin-left.tsx +++ b/components/data-table/data-table-pin-left.tsx @@ -182,7 +182,6 @@ export function PinLeftButton({ table }: { table: Table }) { 왼쪽 고정 - diff --git a/components/data-table/data-table-pin-right.tsx b/components/data-table/data-table-pin-right.tsx index ad52e44d..2ba471cc 100644 --- a/components/data-table/data-table-pin-right.tsx +++ b/components/data-table/data-table-pin-right.tsx @@ -181,7 +181,6 @@ export function PinRightButton({ table }: { table: Table }) { 오른 고정 - diff --git a/components/data-table/data-table-view-options.tsx b/components/data-table/data-table-view-options.tsx index 69666237..50bb50dd 100644 --- a/components/data-table/data-table-view-options.tsx +++ b/components/data-table/data-table-view-options.tsx @@ -129,7 +129,6 @@ export function DataTableViewOptions({ > 보기 - 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({ compact = false, // 기본값은 false로 설정 children, className, + maxHeight, ...props -}: DataTableProps) { +}: DataTableProps & { maxHeight?: string | number }) { useAutoSizeColumns(table, autoSizeColumns) @@ -56,7 +57,7 @@ export function DataTable({ return (
{children} -
+
{/* 테이블 헤더 */} -- cgit v1.2.3