fixed Radio bug
fixed Radio bug
This commit is contained in:
parent
184dba1c8e
commit
578ca32537
6 changed files with 42 additions and 7 deletions
|
@ -62,6 +62,7 @@
|
|||
}
|
||||
},
|
||||
ready () {
|
||||
if (this.$parent && this.$parent.$options.name === 'radioGroup') this.group = true;
|
||||
if (!this.group) {
|
||||
this.updateModel();
|
||||
}
|
||||
|
@ -81,6 +82,8 @@
|
|||
checked: this.checked
|
||||
});
|
||||
}
|
||||
|
||||
if (!this.group) this.$dispatch('on-form-change', this.selected);
|
||||
},
|
||||
updateModel () {
|
||||
this.selected = this.checked;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue