화면 분할 패널 기능

This commit is contained in:
kjs
2025-11-28 14:56:11 +09:00
parent 30dac204c0
commit f15846fd10
27 changed files with 2455 additions and 207 deletions

View File

@@ -66,11 +66,28 @@ class ScreenSplitPanelRenderer extends AutoRegisteringComponentRenderer {
};
render() {
const { config = {}, style = {} } = this.props;
console.log("🚀 [ScreenSplitPanelRenderer] render() 호출됨!", this.props);
const { component, style = {}, componentConfig, config, screenId } = this.props as any;
// componentConfig 또는 config 또는 component.componentConfig 사용
const finalConfig = componentConfig || config || component?.componentConfig || {};
console.log("🔍 [ScreenSplitPanelRenderer] 설정 분석:", {
hasComponentConfig: !!componentConfig,
hasConfig: !!config,
hasComponentComponentConfig: !!component?.componentConfig,
finalConfig,
splitRatio: finalConfig.splitRatio, // 🆕 splitRatio 확인
leftScreenId: finalConfig.leftScreenId,
rightScreenId: finalConfig.rightScreenId,
componentType: component?.componentType,
componentId: component?.id,
});
return (
<div style={{ width: "100%", height: "100%", ...style }}>
<ScreenSplitPanel screenId={config.screenId} config={config} />
<ScreenSplitPanel screenId={screenId || finalConfig.screenId} config={finalConfig} />
</div>
);
}