From 9881a9afededf25a391677c14de8f18ddee737c6 Mon Sep 17 00:00:00 2001 From: ZLY Date: Thu, 4 Dec 2025 09:35:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(flowEditor):=20=E8=B0=83=E6=95=B4=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E8=BF=9E=E6=8E=A5=E7=82=B9=E4=BD=8D=E7=BD=AE=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 API 输出连接点的垂直间距公式 - 修改 API 输入连接点的垂直间距公式 - 调整数据输入连接点的位置偏移量 - 调整数据输出连接点的位置偏移量 - 统一连接点间距为 22 像素 - 微调连接点起始位置以优化视觉效果 --- src/pages/flowEditor/components/nodeContentOther.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/flowEditor/components/nodeContentOther.tsx b/src/pages/flowEditor/components/nodeContentOther.tsx index 1434ed9..a593acd 100644 --- a/src/pages/flowEditor/components/nodeContentOther.tsx +++ b/src/pages/flowEditor/components/nodeContentOther.tsx @@ -131,7 +131,7 @@ const renderRegularNodeHandles = (dataIns: any[], dataOuts: any[], apiIns: any[] id={apiOuts[index].name || apiOuts[index].id || `output-${index}`} style={{ ...handleStyles.mainSource, - top: `${35 + index * 20}px` + top: `${37 + index * 22}px` }} /> ))} @@ -143,7 +143,7 @@ const renderRegularNodeHandles = (dataIns: any[], dataOuts: any[], apiIns: any[] id={apiIns[index].name || apiIns[index].id || `input-${index}`} style={{ ...handleStyles.mainTarget, - top: `${35 + index * 20}px` + top: `${37 + index * 22}px` }} /> ))} @@ -157,7 +157,7 @@ const renderRegularNodeHandles = (dataIns: any[], dataOuts: any[], apiIns: any[] id={dataIns[index].name || dataIns[index].id || `input-${index}`} style={{ ...handleStyles.data, - top: `${70 + (apiIns.length + index) * 20}px` + top: `${65 + (apiIns.length + index) * 22}px` }} /> ))} @@ -171,7 +171,7 @@ const renderRegularNodeHandles = (dataIns: any[], dataOuts: any[], apiIns: any[] id={dataOuts[index].name || dataOuts[index].id || `output-${index}`} style={{ ...handleStyles.data, - top: `${70 + (apiIns.length + index) * 20}px` + top: `${65 + (apiIns.length + index) * 22}px` }} /> ))}