-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
collapse-expand does not take effect, version 5.0.24 #6412
Comments
interface NodeData {
id: ID;
type: string;
data?: Record<string, unknown>;
children?: ID[];
} |
|
直接加交互肯定是没办法生效的呀,需要再处理一下数据~ |
其实相当于是,如果数据结构是带children的,插件会自动处理。但是如果没有带的话,需要自己通过onCollpse和onExpand函数去处理吧? |
无论是使用内置的 |
目前dagre布局,所使用的data结构是GraphData类型的,是否意味着这种布局无法使用collapse-expand组件? |
你预处理一下数据不就可以了?
halapro.liu ***@***.***>于2024年10月24日 周四17:49写道:
… 无论是使用内置的 collapse-expand 交互,还是使用 graph API expandElement 和 collapseElement,都需要消费
children 字段,以告知哪些元素需要被展开或收起。否则,从数据层面很难推断出需要展开或收起的元素。
目前dagre布局,所使用的data结构是GraphData类型的,是否意味着这种布局无法使用collapse-expand组件?
—
Reply to this email directly, view it on GitHub
<#6412 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANJVVEIT7SHJNUGPEDWDV2LZ5C7B7AVCNFSM6AAAAABQAUI242VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZUHAYDQMZQGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Describe the bug / 问题描述
使用collapse-expand插件,展开收缩不生效
Reproduction link / 重现链接
https://stackblitz.com/edit/vitejs-vite-cnvaiy?file=src%2FApp.vue
Steps to Reproduce the Bug or Issue / 重现步骤
复现链接中有
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
macOS
Browser / 浏览器
Chrome
Additional context / 补充说明
麻烦帮忙看下
The text was updated successfully, but these errors were encountered: