Open mafeixiong opened 4 years ago
Translation of this issue:
2.13.2
macOs 10.14.5/ 83.0.4103.97
2.5.2
https://codepen.io/mafeixiong/pen/vYLGjxR
After loading the tree, use setCheckedKeys ([]) to clear the data. Individual data cannot be cleared. The data structure value is not repeated
this.$nextTick(() => { this.$ refs.tree.setCheckedKeys ([]);
console.log ("clear"); };
Expected data is cleared
Individual data cannot be cleared
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Element UI version
2.13.2
OS/Browsers version
macOs 10.14.5/ 83.0.4103.97
Vue version
2.5.2
Reproduction Link
https://codepen.io/mafeixiong/pen/vYLGjxR
Steps to reproduce
加载tree后,清空数据使用setCheckedKeys([])个别数据无法清空,数据结构value没有重复的 this.$nextTick(() => { this.$refs.tree.setCheckedKeys([]); console.log("clear"); });
What is Expected?
期望数据被清空
What is actually happening?
个别数据无法被清空