ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.1k stars 14.64k forks source link

[bug report] element UI El tree setcheckedkeys individual data cannot be completely cleared #19631

Open mafeixiong opened 4 years ago

mafeixiong commented 4 years ago

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?

个别数据无法被清空

element-bot commented 4 years ago

Translation of this issue:

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

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"); };

What is Expected?

Expected data is cleared

What is actually happening?

Individual data cannot be cleared

stale[bot] commented 3 years ago

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.