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

fix(comp-tree): support comp-tree-foreach stop,add insertNodesByKey #818

Merged
merged 1 commit into from
Jun 26, 2021

Conversation

bbkkkk8
Copy link

@bbkkkk8 bbkkkk8 commented Jun 26, 2021

Subject of the feature
优化tree组件遍历函数支持批量插入子节点

Problem
当树节点非常大的时候,插入节点的函数出现性能不佳浏览器卡顿
api仅提供了插入单个子节点,插入多个节点重复调用性能较差
Expected behaviour
在treeHelper forEach中根据节点处理返回true及时终止无意义遍历
提供批量插入 insertNodesByKey

@anncwb anncwb merged commit d97aa92 into vbenjs:main Jun 26, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants