diff --git a/packages/autocomplete/src/autocomplete.vue b/packages/autocomplete/src/autocomplete.vue index 7c6eeafbf..eaa2ed877 100644 --- a/packages/autocomplete/src/autocomplete.vue +++ b/packages/autocomplete/src/autocomplete.vue @@ -5,8 +5,8 @@ :disabled="disabled" :placeholder="placeholder" :name='name' - @onchange="handleChange" - @onfocus="handleFocus" + @change="handleChange" + @focus="handleFocus" @keydown.up.native="highlight(highlightedIndex - 1)" @keydown.down.native="highlight(highlightedIndex + 1)" @keydown.enter.native="select(highlightedIndex)" diff --git a/packages/input/src/input.vue b/packages/input/src/input.vue index 220fe7f07..a2c7bd6e7 100644 --- a/packages/input/src/input.vue +++ b/packages/input/src/input.vue @@ -25,7 +25,7 @@ :minlength="minlength" :autocomplete="autoComplete" ref="input" - @focus="$emit('onfocus', currentValue)" + @focus="$emit('focus', currentValue)" @blur="handleBlur" > @@ -49,7 +49,7 @@ :rows="rows" :maxlength="maxlength" :minlength="minlength" - @focus="$emit('onfocus', currentValue)" + @focus="$emit('focus', currentValue)" @blur="handleBlur"> @@ -162,6 +162,7 @@ 'currentValue'(val) { this.$emit('input', val); + this.$emit('change', val); this.dispatch('form-item', 'el.form.change', [val]); } }