Replies: 1 comment
-
您提到的问题涉及到在使用 这个问题可能与
如果这些方法仍然无法解决您的问题,建议您提供一个最小可复现的示例,以便更好地诊断和解决问题。 🪧 TipsFor further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug / 问题描述
背景描述:

1、节点之间存在多对多的关系,相同线段会重合显示,视觉上进行了合并,但实际是有多条线段的
2、点击某个节点后,需要展开子节点,为了达到这一效果,点击节点后使用了changeData()
3、点击某个节点后,同时需要将节点链路进行高亮,使用item.setState改变状态实现。
问题现象:
点击节点后,部分高亮的线段没有置于最顶层,已经使用了item.toFront();
定位过程:
1、去掉changeData() 后就正常显示了,但是要实现展开和收缩节点,必须要使用changeData
2、尝试添加 setTimeout(() => {实现高亮 }, 1000); 可以解决,那就是changeData异步的问题了,有什么好的解决方案吗
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
Please select / 请选择
OS / 操作系统
Browser / 浏览器
Beta Was this translation helpful? Give feedback.
All reactions