fix(components): [cascader] disabled option can't trigger cancel checked (#7604)

This commit is contained in:
btea 2022-05-16 21:11:07 +08:00 committed by GitHub
parent 89b3239528
commit 60483d4100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,9 @@ class Node {
this.checked =
this.loaded &&
this.children.every((child) => child.loaded && child.checked) &&
this.children
.filter((child) => !child.isDisabled)
.every((child) => child.loaded && child.checked) &&
checked
this.indeterminate =
this.loaded && checkedNum !== totalNum && checkedNum > 0