mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Merge branch 'dev' into carbon
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user