[bugfix] Radio: can't select when click gap (#4007)

This commit is contained in:
neverland
2019-07-30 20:44:02 +08:00
committed by GitHub
parent cabd3c0f14
commit 4d8c4df5fe
3 changed files with 18 additions and 27 deletions

View File

@@ -45,18 +45,6 @@ export default createComponent({
});
},
onClickIcon() {
if (!this.isDisabled) {
this.toggle();
}
},
onClickLabel() {
if (!this.isDisabled && !this.labelDisabled) {
this.toggle();
}
},
setParentValue(val) {
const { parent } = this;
const value = parent.value.slice();