支持图层处理

This commit is contained in:
2025-06-12 19:34:50 +08:00
parent 45565de5ef
commit 057ce85ff3
4 changed files with 254 additions and 296 deletions

View File

@@ -79,7 +79,8 @@ const handleComponentClick = (component) => {
type: component.type,
label: component.name,
position: { x: 100, y: 100 }, // 默认位置
data: { componentType: component.type }
data: { componentType: component.type },
style: { background: '#fff', border: '2px solid black',width: '150px', height: '150px' },
};
// 发出添加节点事件