antvis / XFlow

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

更新边 // 更新连线上react节点的内容 #390

Closed OShuxin closed 1 year ago

OShuxin commented 1 year ago

问题描述

https://xflow.antv.vision/zh-CN/api/commands/edge-update/#%E6%9B%B4%E6%96%B0%E8%BE%B9 更新连线上react节点的内容 无效

重现链接

https://codesandbox.io/s/05fpw2?file=/App.tsx

重现步骤

点击更新连线上react节点的内容 无效

预期行为

同 更新连线上label的内容类型 但应该不能更新text内为空

平台

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

xflow-bot[bot] commented 1 year ago

👋 @OShuxin

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.

xflow-bot[bot] commented 1 year ago

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

seasonrui commented 1 year ago

请问这个问题是怎么解决的,我也遇到同样的问题了,更新 react 节点的内容,连线内容不会更新

OShuxin commented 1 year ago

在更新react节点的内容的同时给标签任意的值(空字符串也行) 下图的连接在上面### 重现连接中 可以试一试 image

fengyangchen0405 commented 1 year ago

在更新react节点的内容的同时给标签任意的值(空字符串也行) 下图的连接在上面### 重现连接中 可以试一试 image

非常感谢,解决了问题!

xflow-bot[bot] commented 4 weeks 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.