260625_01_ENH: 연구, 실사 수정사항 적용 1차
This commit is contained in:
@@ -48,7 +48,9 @@ export function DataTable<TData>({
|
||||
defaultPageSize = 10,
|
||||
pageSizeOptions = [5, 10, 25, 50],
|
||||
showPagination = true,
|
||||
paginationItemsToDisplay = 5
|
||||
paginationItemsToDisplay = 5,
|
||||
headerFontClass = 'content-text-lg',
|
||||
cellFontClass = 'content-text-base',
|
||||
}: Readonly<DataTableProps<TData>>) {
|
||||
// Pagination state
|
||||
const [pagination, setPagination] = useState<PaginationState>({
|
||||
@@ -200,7 +202,8 @@ export function DataTable<TData>({
|
||||
<TableHead
|
||||
key={header.id}
|
||||
className={cn(
|
||||
'content-text-lg font-semibold text-gray-900',
|
||||
'font-semibold text-gray-900',
|
||||
headerFontClass,
|
||||
column.id === 'actions' && 'w-[140px] text-center'
|
||||
)}
|
||||
style={{ width: header.getSize() !== 150 ? header.getSize() : undefined }}
|
||||
@@ -209,7 +212,7 @@ export function DataTable<TData>({
|
||||
<Button
|
||||
type='button'
|
||||
variant='ghost'
|
||||
className='px-0 font-semibold content-text-lg flex items-center gap-1'
|
||||
className={cn('px-0 font-semibold flex items-center gap-1', headerFontClass)}
|
||||
onClick={column.getToggleSortingHandler()}
|
||||
>
|
||||
<span>{headerContent}</span>
|
||||
@@ -240,7 +243,7 @@ export function DataTable<TData>({
|
||||
onPointerCancel={drag.onPointerCancel}
|
||||
onClick={drag.wrapClick(() => handleRowClick(row))}
|
||||
className={cn(
|
||||
'content-text-base',
|
||||
cellFontClass,
|
||||
'[&>td]:py-3 [&>td]:px-3',
|
||||
selectMode !== 'none' && 'cursor-pointer',
|
||||
'data-[state=selected]:bg-slate-100 data-[state=selected]:font-semibold',
|
||||
|
||||
Reference in New Issue
Block a user