G6 icon indicating copy to clipboard operation
G6 copied to clipboard

使用 graph.updateChild 更新数据 增加 children 数据会展开后秒收回

Open liangdongyan opened this issue 9 months ago • 2 comments

问题描述

使用 graph.updateChild 更新数据 增加 children 数据会展开后秒收回

重现链接

https://codesandbox.io/s/nervous-moore-gs9jq2?file=/src/App.vue

重现步骤

进入页面后 点击 最左侧 node 将会动态获得children 数据并使用 updateChild 就会出现展开收起效果 数据已更新后展开收起正常

预期行为

期望数据更新后直接就是展开的不会秒收起

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

liangdongyan avatar Nov 09 '23 09:11 liangdongyan

hi @liangdongyan, welcome!

github-actions[bot] avatar Nov 09 '23 09:11 github-actions[bot]

Hi @liangdongyan, Please star this repo if you find it useful! Thanks :star:! 你好 @liangdongyan。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

github-actions[bot] avatar Nov 09 '23 09:11 github-actions[bot]