분할 패널 및 반복 필드 그룹 컴포넌트
This commit is contained in:
@@ -37,8 +37,13 @@ export function ComponentsPanel({ className }: ComponentsPanelProps) {
|
||||
|
||||
// 카테고리별 컴포넌트 그룹화
|
||||
const componentsByCategory = useMemo(() => {
|
||||
// 숨길 컴포넌트 ID 목록 (기본 입력 컴포넌트들)
|
||||
const hiddenInputComponents = ["text-input", "number-input", "date-input", "textarea-basic"];
|
||||
|
||||
return {
|
||||
input: allComponents.filter((c) => c.category === ComponentCategory.INPUT && c.id === "file-upload"),
|
||||
input: allComponents.filter(
|
||||
(c) => c.category === ComponentCategory.INPUT && !hiddenInputComponents.includes(c.id),
|
||||
),
|
||||
action: allComponents.filter((c) => c.category === ComponentCategory.ACTION),
|
||||
display: allComponents.filter((c) => c.category === ComponentCategory.DISPLAY),
|
||||
layout: allComponents.filter((c) => c.category === ComponentCategory.LAYOUT),
|
||||
|
||||
Reference in New Issue
Block a user