diff --git a/src/components/flow/ComponentsPanel.vue b/src/components/flow/ComponentsPanel.vue index ed6f827..e1e526d 100644 --- a/src/components/flow/ComponentsPanel.vue +++ b/src/components/flow/ComponentsPanel.vue @@ -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' }, }; // 发出添加节点事件 diff --git a/src/components/flow/FlowEditor.vue b/src/components/flow/FlowEditor.vue index 4d1d786..22eda86 100644 --- a/src/components/flow/FlowEditor.vue +++ b/src/components/flow/FlowEditor.vue @@ -1,5 +1,5 @@ @@ -191,18 +275,20 @@ onMounted(() => {
- +