fix(flowEditor):修复节点输出位置计算错误

- 将数据输出位置计算中的 apiOuts 长度替换为 apiIns 长度
- 确保输出接口基于正确的输入数量进行定位
- 修复了因长度引用错误导致的界面显示异常问题
master
钟良源 3 months ago
parent cfbe5be405
commit 862080357b

@ -70,7 +70,7 @@ const renderSpecialNodeHandles = (isStartNode: boolean, isEndNode: boolean, data
id={dataOuts[index].name || `output-${index}`}
style={{
...handleStyles.data,
top: `${70 + apiOuts.length * 20 + index * 20}px`
top: `${70 + apiIns.length * 20 + index * 20}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 + (apiOuts.length + index) * 20}px`
top: `${70 + (apiIns.length + index) * 20}px`
}}
/>
))}

Loading…
Cancel
Save