update Radio
update Radio
This commit is contained in:
parent
cbe03a12b2
commit
a804d60885
1 changed files with 5 additions and 3 deletions
|
@ -78,7 +78,6 @@
|
|||
const checked = event.target.checked;
|
||||
this.currentValue = checked;
|
||||
this.$emit('input', checked);
|
||||
this.$emit('on-change', checked);
|
||||
|
||||
if (this.group && this.label) {
|
||||
this.$parent.change({
|
||||
|
@ -86,8 +85,11 @@
|
|||
checked: this.value
|
||||
});
|
||||
}
|
||||
if (!this.group) {
|
||||
this.$emit('on-change', checked);
|
||||
// todo 事件
|
||||
// if (!this.group) this.$dispatch('on-form-change', checked);
|
||||
// this.$dispatch('on-form-change', checked);
|
||||
}
|
||||
},
|
||||
updateValue () {
|
||||
this.currentValue = this.value;
|
||||
|
|
Loading…
Add table
Reference in a new issue