mirror of https://github.com/ElemeFE/element
Tree: select fix
parent
9e7110cc94
commit
e001f81a88
|
@ -300,9 +300,9 @@ export default class Node {
|
||||||
setChecked(value, deep, recursion, passValue) {
|
setChecked(value, deep, recursion, passValue) {
|
||||||
this.indeterminate = value === 'half';
|
this.indeterminate = value === 'half';
|
||||||
this.checked = value === true;
|
this.checked = value === true;
|
||||||
let { allWithoutDisable } = getChildState(this.childNodes);
|
let { all, allWithoutDisable } = getChildState(this.childNodes);
|
||||||
|
|
||||||
if (this.childNodes.length && allWithoutDisable) {
|
if (this.childNodes.length && (!all && allWithoutDisable)) {
|
||||||
this.checked = false;
|
this.checked = false;
|
||||||
value = false;
|
value = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue