fo: 유량현황 팝업 강우시 강우일 음영표시
This commit is contained in:
@@ -25,6 +25,7 @@ type UiTableProps<T extends object> = {
|
||||
cellClick: ((index: number | undefined, headId: string) => void) | undefined;
|
||||
onPageChange: (page: number) => void;
|
||||
cellClassName?: (row: T, headId: string, rowIndex: number) => string;
|
||||
rowClassName?: (row: T, rowIndex: number) => string;
|
||||
className?: string;
|
||||
resetPageNo?: boolean;
|
||||
children?: React.ReactNode | undefined;
|
||||
@@ -57,6 +58,7 @@ export function UiTable<T extends object = Record<string, unknown>>({
|
||||
cellClick,
|
||||
onPageChange,
|
||||
cellClassName,
|
||||
rowClassName,
|
||||
className = "",
|
||||
resetPageNo = false,
|
||||
boldArray = [],
|
||||
@@ -151,7 +153,7 @@ export function UiTable<T extends object = Record<string, unknown>>({
|
||||
<TableBody className="text-center">
|
||||
{tableData.length > 0 ? (
|
||||
tableData?.map((el: T, index) => (
|
||||
<TableRow key={`row-${index}`}>
|
||||
<TableRow key={`row-${index}`} className={rowClassName ? rowClassName(el, index) : ""}>
|
||||
{headlist
|
||||
.filter((item) => item.visible != false)
|
||||
.map(
|
||||
|
||||
Reference in New Issue
Block a user