diff --git a/src/components/Select.vue b/src/components/Select.vue index 2e3da56..5eeff4f 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -577,7 +577,14 @@ onChange: { type: Function, default: function (val) { - this.$emit('input', val) + this.$emit('change', val); + } + }, + + onInput: { + type: Function, + default: function (val) { + this.$emit('input', val); } }, @@ -841,6 +848,7 @@ } else { this.mutableValue = option } + this.onInput(this.mutableValue); } this.onAfterSelect(option) @@ -864,6 +872,7 @@ } else { this.mutableValue = null } + this.onInput(this.mutableValue); }, /** @@ -872,6 +881,7 @@ */ clearSelection() { this.mutableValue = this.multiple ? [] : null + this.onInput(this.mutableValue) }, /**