검색 필터기능 수정사항

This commit is contained in:
kjs
2025-09-23 14:26:18 +09:00
parent e653effac0
commit da9985cd24
11 changed files with 1537 additions and 318 deletions

View File

@@ -121,25 +121,9 @@ export const DataTableTemplate: React.FC<DataTableTemplateProps> = ({
className = "",
isPreview = true,
}) => {
// 미리보기용 기본 컬럼 데이터
// 설정된 컬럼만 사용 (자동 생성 안함)
const defaultColumns = React.useMemo(() => {
if (columns.length > 0) return columns;
return [
{ id: "id", label: "ID", type: "number", visible: true, sortable: true, filterable: false, width: 80 },
{ id: "name", label: "이름", type: "text", visible: true, sortable: true, filterable: true, width: 150 },
{ id: "email", label: "이메일", type: "email", visible: true, sortable: true, filterable: true, width: 200 },
{ id: "status", label: "상태", type: "select", visible: true, sortable: true, filterable: true, width: 100 },
{
id: "created_date",
label: "생성일",
type: "date",
visible: true,
sortable: true,
filterable: true,
width: 120,
},
];
return columns || [];
}, [columns]);
// 미리보기용 샘플 데이터