From 4bdd64a480480dd1780cd45f76580f9b3a3739f4 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Wed, 25 Sep 2024 18:29:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E3=80=90=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=BC=96=E6=8E=92=E3=80=91=E5=88=A4=E6=96=AD=E5=99=A8?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=8F=B3=E4=BE=A7+=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=90=8E=EF=BC=8C=E8=BF=9E=E7=BA=BF=E6=9C=89?= =?UTF-8?q?=E7=82=B9=E9=95=BF=EF=BC=8C=E5=BB=BA=E8=AE=AE=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=80=E4=B8=8B=E7=BB=84=E4=BB=B6=E8=B7=9D=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/workflow/common/NodeContainer.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/workflow/common/NodeContainer.vue b/ui/src/workflow/common/NodeContainer.vue index 6063589bf..71aae228e 100644 --- a/ui/src/workflow/common/NodeContainer.vue +++ b/ui/src/workflow/common/NodeContainer.vue @@ -182,10 +182,11 @@ const resizeStepContainer = (wh: any) => { } function clickNodes(item: any) { + const width = item.properties.width ? item.properties.width : 214 const nodeModel = props.nodeModel.graphModel.addNode({ type: item.type, properties: item.properties, - x: anchorData.value?.x + props.nodeModel.width + 100, + x: anchorData.value?.x + width / 2 + 200, y: anchorData.value?.y - item.height }) props.nodeModel.graphModel.addEdge({