Tree: select fix

pull/6058/head
Dreamacro 2017-07-24 16:37:44 +08:00 committed by 杨奕
parent 9e7110cc94
commit e001f81a88
1 changed files with 2 additions and 2 deletions

View File

@ -300,9 +300,9 @@ export default class Node {
setChecked(value, deep, recursion, passValue) {
this.indeterminate = value === 'half';
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;
value = false;
}