feat: 테이블 관리의 입력 타입 기반 자동 숫자 포맷팅

- TableListComponent: table_type_columns의 input_type 정보를 가져와서 숫자 포맷팅
- getColumnInputTypes API 추가로 컬럼별 입력 타입 조회
- columnMeta에 inputType 포함하여 formatCellValue에서 사용
- 테이블 관리에서 설정한 입력 타입(number/decimal)에 따라 자동으로 천 단위 콤마 표시
- 근본적인 해결: 컬럼명 기반이 아닌 실제 설정값 기반 포맷팅
This commit is contained in:
kjs
2025-11-03 10:14:32 +09:00
parent 68aafb3732
commit 1c571ee3c3
3 changed files with 27 additions and 20 deletions
@@ -1775,12 +1775,6 @@ export const InteractiveDataTable: React.FC<InteractiveDataTableProps> = ({
case "number":
case "decimal":
console.log(`🔢 숫자 컬럼 포맷팅:`, {
columnName: column.columnName,
widgetType: column.widgetType,
value,
valueType: typeof value,
});
if (value !== null && value !== undefined && value !== "") {
const numValue = typeof value === "string" ? parseFloat(value) : value;
if (!isNaN(numValue)) {