mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2025-08-23 16:14:51 +00:00
支持图层处理
This commit is contained in:
@@ -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' },
|
||||
};
|
||||
|
||||
// 发出添加节点事件
|
||||
|
Reference in New Issue
Block a user