Commit e001f81a authored by Dreamacro's avatar Dreamacro Committed by 杨奕

Tree: select fix

parent 9e7110cc
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment