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

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