[bugfix] disabled property in checkbox (#425)

This commit is contained in:
WyTiny
2017-12-13 16:18:40 +08:00
committed by neverland
parent e2ec1ecd13
commit a19cfe51ca
3 changed files with 18 additions and 4 deletions

View File

@@ -89,9 +89,7 @@ export default create({
},
isDisabled() {
return this.isGroup && this.parentGroup
? this.parentGroup.disabled
: this.disabled;
return (this.isGroup && this.parentGroup && this.parentGroup.disabled) || this.disabled;
}
},