- {/* ✅ 외부에서 조절 가능한 높이 적용 */}
-
-
-
- {children ? (
- <>{children}>
- ) : (
-
- {headlist.map((head) => (
-
- {head.title}
-
- ))}
-
- )}
-
-
-
- {tableData.length > 0 ? (
- tableData.map((el, index) => (
-
- {headlist.map((head) => (
- handleCellClick(startIdx + index, head.id)}
- >
- {typeof el[head.id] === 'number'
- ? String(el[head.id]).replace(/\B(?=(\d{3})+(?!\d))/g, ",")
- : String(el[head.id] ?? '')}
-
- ))}
-
- ))
- ) : (
-
-
- {/* ✅ 높이 보장 + 가운데 정렬용 div */}
-
- 🔍 검색 결과가 없습니다.
-
-
-
- )}
-
-
-
-
- {/* 페이지네이션 하단 고정 */}
- {(
-
-
-
- )}
-
- >
- );
-}
diff --git a/packages/common/business_components/src/ui/table/index.tsx b/packages/common/business_components/src/ui/table/index.tsx
index 85ffb85ea..de6fed944 100644
--- a/packages/common/business_components/src/ui/table/index.tsx
+++ b/packages/common/business_components/src/ui/table/index.tsx
@@ -1,11 +1,21 @@
-"use client"
+"use client";
-import { Checkbox, Table, TableBody, TableCell, TableHeader, TableRow } from "@common/components";
+import {
+ Checkbox,
+ Table,
+ TableBody,
+ TableCell,
+ TableHeader,
+ TableRow,
+} from "@common/components";
import { useEffect, useState, useRef } from "react";
import { HeadMakeColSpan } from "./HeadMakeColSpan";
import UiPageNations from "./uiPageNations";
import { Check } from "lucide-react";
-
+export type ChkClass = {
+ chk: boolean;
+ readonly: boolean;
+};
type UiTableProps = {
headName: React.ReactNode | undefined;
tableData: { [key: string]: any }[];
@@ -20,22 +30,35 @@ type UiTableProps = {
boldArray?: number[];
resetSelection?: boolean;
index?: number;
-}
+};
type UiHeadProps = {
id: string;
title: string;
align?: string;
visible?: boolean;
-}
+};
-export function UiTable({ tableData, headlist, pageSize, total, headName, children, cellClick, onPageChange, className = '', resetPageNo = false, boldArray = [], resetSelection = false, index = -1 }: UiTableProps) {
+export function UiTable({
+ tableData,
+ headlist,
+ pageSize,
+ total,
+ headName,
+ children,
+ cellClick,
+ onPageChange,
+ className = "",
+ resetPageNo = false,
+ boldArray = [],
+ resetSelection = false,
+ index = -1,
+}: UiTableProps) {
const [cur, setCur] = useState