We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述 能否增加清空某个节点的函数。 要清空某个节点,目前使用已经提供的 API treeRef.value. remove(nodeId) 在 for 循环里逐个删除,数据量小的时候问题不大,数据量几万后界面会卡住几十秒。
treeRef.value. remove(nodeId)
目前暂时的解决办法是把要清空的节点从它的 parent 里删除,然后重建一个同样的节点。
组件版本
The text was updated successfully, but these errors were encountered:
清空节点是指移除节点的所有子节点?
Sorry, something went wrong.
是的。
https://wsfe.github.io/vue-tree/examples/node-manipulation.html#reload-children
Successfully merging a pull request may close this issue.
问题描述
能否增加清空某个节点的函数。
要清空某个节点,目前使用已经提供的 API
treeRef.value. remove(nodeId)
在 for 循环里逐个删除,数据量小的时候问题不大,数据量几万后界面会卡住几十秒。目前暂时的解决办法是把要清空的节点从它的 parent 里删除,然后重建一个同样的节点。
组件版本
The text was updated successfully, but these errors were encountered: