Revert "fix: disabled node can be checked"
This commit is contained in:
parent
a86a9b6a37
commit
b212b25537
1 changed files with 1 additions and 5 deletions
|
@ -174,11 +174,7 @@
|
||||||
if (this.checkStrictly) return;
|
if (this.checkStrictly) return;
|
||||||
|
|
||||||
for (let key in changes) {
|
for (let key in changes) {
|
||||||
if (key === 'checked' && node.disabled) {
|
this.$set(node, key, changes[key]);
|
||||||
this.$set(node, key, node.checked);
|
|
||||||
} else {
|
|
||||||
this.$set(node, key, changes[key]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (node[this.childrenKey]) {
|
if (node[this.childrenKey]) {
|
||||||
node[this.childrenKey].forEach(child => {
|
node[this.childrenKey].forEach(child => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue