|
@@ -10,7 +10,8 @@
|
|
|
<el-input
|
|
|
ref="input"
|
|
|
v-bind="[$props, $attrs]"
|
|
|
- @input="handleChange"
|
|
|
+ @input="handleInput"
|
|
|
+ @change="handleChange"
|
|
|
@focus="handleFocus"
|
|
|
@blur="handleBlur"
|
|
|
@clear="handleClear"
|
|
@@ -186,7 +187,7 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- handleChange(value) {
|
|
|
+ handleInput(value) {
|
|
|
this.$emit('input', value);
|
|
|
this.suggestionDisabled = false;
|
|
|
if (!this.triggerOnFocus && !value) {
|
|
@@ -196,6 +197,9 @@
|
|
|
}
|
|
|
this.debouncedGetData(value);
|
|
|
},
|
|
|
+ handleChange(event) {
|
|
|
+ this.$emit('change', event.target.value);
|
|
|
+ },
|
|
|
handleFocus(event) {
|
|
|
this.activated = true;
|
|
|
this.$emit('focus', event);
|