카드 컴포넌트 중간커밋

This commit is contained in:
kjs
2025-12-01 18:39:01 +09:00
parent 617655a42a
commit fb16e224f0
8 changed files with 374 additions and 47 deletions

View File

@@ -692,6 +692,15 @@ export const ButtonPrimaryComponent: React.FC<ButtonPrimaryComponentProps> = ({
effectiveScreenId,
});
// 🆕 분할 패널 부모 데이터 가져오기 (우측 화면에서 저장 시 좌측 선택 데이터 포함)
let splitPanelParentData: Record<string, any> | undefined;
if (splitPanelContext && splitPanelPosition === "right") {
splitPanelParentData = splitPanelContext.getMappedParentData();
if (Object.keys(splitPanelParentData).length > 0) {
console.log("🔗 [ButtonPrimaryComponent] 분할 패널 부모 데이터 포함:", splitPanelParentData);
}
}
const context: ButtonActionContext = {
formData: formData || {},
originalData: originalData, // 🔧 빈 객체 대신 undefined 유지 (UPDATE 판단에 사용)
@@ -720,6 +729,8 @@ export const ButtonPrimaryComponent: React.FC<ButtonPrimaryComponentProps> = ({
flowSelectedStepId,
// 🆕 컴포넌트별 설정 (parentDataMapping 등)
componentConfigs,
// 🆕 분할 패널 부모 데이터 (좌측 화면에서 선택된 데이터)
splitPanelParentData,
} as ButtonActionContext;
// 확인이 필요한 액션인지 확인