[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
+2 -10
View File
@@ -27,16 +27,8 @@ export default createComponent({
},
methods: {
onClickIcon() {
if (!this.isDisabled) {
this.currentValue = this.name;
}
},
onClickLabel() {
if (!this.isDisabled && !this.labelDisabled) {
this.currentValue = this.name;
}
toggle() {
this.currentValue = this.name;
}
}
});