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;
|
const checked = event.target.checked;
|
||||||
this.currentValue = checked;
|
this.currentValue = checked;
|
||||||
this.$emit('input', checked);
|
this.$emit('input', checked);
|
||||||
this.$emit('on-change', checked);
|
|
||||||
|
|
||||||
if (this.group && this.label) {
|
if (this.group && this.label) {
|
||||||
this.$parent.change({
|
this.$parent.change({
|
||||||
|
@ -86,8 +85,11 @@
|
||||||
checked: this.value
|
checked: this.value
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (!this.group) {
|
||||||
|
this.$emit('on-change', checked);
|
||||||
// todo 事件
|
// todo 事件
|
||||||
// if (!this.group) this.$dispatch('on-form-change', checked);
|
// this.$dispatch('on-form-change', checked);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
updateValue () {
|
updateValue () {
|
||||||
this.currentValue = this.value;
|
this.currentValue = this.value;
|
||||||
|
|
Loading…
Add table
Reference in a new issue