-
Notifications
You must be signed in to change notification settings - Fork 197
treeDataSimpleMode 选项的意义? #92
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
Comments
还处理了父子关系。 |
@yesmeck 你所说的处理父子关系, 是指 export function processSimpleTreeData 里面的 parent.children = children;吗? |
对。 |
那么我觉得这个 我不知道你们之后是否会对于这个选项做更多的考虑, 比如考虑到大量数据下, 为了性能优化, 只保留 |
😳 这个属性 |
懂你的意思了, 我刚重新看了一下源码, 是我之前看错了, export function processSimpleTreeData 这个函数是把一层数组转化为树形结构 |
Uh oh!
There was an error while loading. Please reload this page.
看了文档和示例以及一些issue,不是太懂这个选项的意义
然后看了源码 export function processSimpleTreeData, 才发现仅仅是做了应对treeData数据中 key 不是 id 的情况, 并且不破坏原有数据
所以, treeDataSimpleMode 选项的意义是我理解的这样吗?
The text was updated successfully, but these errors were encountered: