Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hierarchy.mindmap渲染思维导图当设置collapsed为true时子节点丢失问题 #4298

Closed
xiaoqiao112 opened this issue May 10, 2024 · 2 comments

Comments

@xiaoqiao112
Copy link

xiaoqiao112 commented May 10, 2024

问题描述:

使用Hierarchy.mindmap渲染思维导图,节点支持展开收起,通过设置collapsed实现,当collapsed默认为true时,Hierarchy.mindmap渲染子节点丢失如何解决?展开收起后如何重新布局,data数据如下:

const data = {
id: '1',
label: '主题1',
collapsed: false,
children: [
{
id: '1-1',
label: '主题1-1',
collapsed: true,
children: [
{
id: '1-1-1',
label: '主题1-1-1',
collapsed: false,
},
],
},
],
};

重现链接

暂无

重现步骤

图data数据中collapsed为true

预期行为

使用Hierarchy.mindmap渲染思维导图,当collapsed默认为true时,节点只是隐藏,不丢失同时如何触发重新布局?

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented May 10, 2024

👋 @xiaoqiao112

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.

@xiaoqiao112
Copy link
Author

已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant