조사사업 등록·결과 업로드 및 관로·맨홀 종합집계 화면 구현

This commit is contained in:
kiminchan
2026-07-23 17:06:01 +09:00
parent ec60a05b01
commit 477426c384
27 changed files with 3376 additions and 11 deletions
@@ -40,6 +40,7 @@ type UiTableProps<T extends object> = {
curPage?: number;
headButton?: React.ReactNode | undefined;
widthFixed?: boolean;
noOuterMargin?: boolean; // 외부 스크롤 래퍼가 표 여백을 직접 관리할 때 사용한다.
isHideCount?: boolean; // 총 건수 default false
clickableHeadIds?: string[];
sort?: UiTableSort;
@@ -65,6 +66,7 @@ export function UiTable<T extends object = Record<string, unknown>>({
curPage = 1,
headButton = undefined,
widthFixed = false,
noOuterMargin = false,
isHideCount = false,
clickableHeadIds,
sort,
@@ -170,7 +172,7 @@ export function UiTable<T extends object = Record<string, unknown>>({
) : (
<></>
)}
<div className={`card !m-[1.2rem] ${className}`}>
<div className={`card ${noOuterMargin ? "!m-0" : "!m-[1.2rem]"} ${className}`}>
<Table variant="secondary" className={widthFixed ? "table-fixed" : ""}>
{widthFixed ? (
<colgroup>
@@ -195,7 +197,11 @@ 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}`} className={rowClassName ? rowClassName(el, index) : ""}>
<TableRow
key={`row-${index}`}
data-state={idx === index ? "selected" : undefined}
className={rowClassName ? rowClassName(el, index) : ""}
>
{headlist
.filter((item) => item.visible != false)
.map(