mirror of https://github.com/ElemeFE/element
remove select unnecessary input emits
parent
609901ae7a
commit
cc0ca6851b
|
@ -190,8 +190,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
value(val) {
|
value(val) {
|
||||||
this.$emit('input', val);
|
|
||||||
this.$emit('change', val);
|
|
||||||
if (this.valueChangeBySelected) {
|
if (this.valueChangeBySelected) {
|
||||||
this.valueChangeBySelected = false;
|
this.valueChangeBySelected = false;
|
||||||
return;
|
return;
|
||||||
|
@ -486,6 +484,7 @@
|
||||||
this.selected = {};
|
this.selected = {};
|
||||||
this.selectedLabel = '';
|
this.selectedLabel = '';
|
||||||
this.$emit('input', '');
|
this.$emit('input', '');
|
||||||
|
this.$emit('change', '');
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue