antvis / XFlow

React component for building interactive diagrams.
https://x6.antv.antgroup.com/xflow/guide/introduction
MIT License
573 stars 235 forks source link

初始化时动态链接桩会自动生成多个 #254

Closed cjmafei closed 2 years ago

cjmafei commented 2 years ago

问题描述

初始化时动态链接桩会自动生成多个

重现链接

https://codesandbox.io/s/dong-tai-geng-xin-jie-dian-lian-jie-zhuang-luo-ji-forked-p04h2x?file=/service.ts

重现步骤

进入页面即可看到异常

预期行为

动态链接桩生成的个数应该是只比连线数量多一个

平台

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

xflow-bot[bot] commented 2 years ago

👋 @cjmafei

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

cjmafei commented 2 years ago

建议初始化的时候不走自动添加输入桩的逻辑。因为在保存时已经多保存了一个备用输入桩。 只有在手动连线的时候才走自动添加输入桩的逻辑。这样比较合理。

cjmafei commented 2 years ago

fixed in 1.0.48

xflow-bot[bot] commented 1 year ago

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.