From 7b676a6affff4f84282aefbeee5887e43551a725 Mon Sep 17 00:00:00 2001 From: kjs Date: Mon, 3 Nov 2025 10:09:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20TableListComponent=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=88=AB=EC=9E=90=20=ED=83=80=EC=9E=85=20=EC=BB=AC=EB=9F=BC=20?= =?UTF-8?q?=EC=B2=9C=20=EB=8B=A8=EC=9C=84=20=EC=BD=A4=EB=A7=88=20=ED=91=9C?= =?UTF-8?q?=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - inputType이 number 또는 decimal인 컬럼에 천 단위 콤마 자동 적용 - 문자열로 저장된 숫자도 parseFloat 후 포맷팅 처리 - format 속성보다 inputType을 우선 체크하도록 수정 --- .../components/table-list/TableListComponent.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/lib/registry/components/table-list/TableListComponent.tsx b/frontend/lib/registry/components/table-list/TableListComponent.tsx index 9ee27c36..2b0cf501 100644 --- a/frontend/lib/registry/components/table-list/TableListComponent.tsx +++ b/frontend/lib/registry/components/table-list/TableListComponent.tsx @@ -647,6 +647,17 @@ export const TableListComponent: React.FC = ({ if (convertedValue !== value) return convertedValue; } + // inputType 기반 포맷팅 (우선순위) + if (column.inputType === "number" || column.inputType === "decimal") { + if (value !== null && value !== undefined && value !== "") { + const numValue = typeof value === "string" ? parseFloat(value) : value; + if (!isNaN(numValue)) { + return numValue.toLocaleString("ko-KR"); + } + } + return String(value); + } + switch (column.format) { case "date": if (value) {