parent
35c70b9576
commit
323494917f
1 changed files with 7 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
|||
@keydown="resetInputState"
|
||||
@keydown.delete="handleInputDelete"
|
||||
@focus="onInputFocus"
|
||||
@blur="onInputFocus"
|
||||
@blur="onInputBlur"
|
||||
|
||||
ref="input">
|
||||
<Icon type="ios-close-circle" :class="[prefixCls + '-arrow']" v-if="resetSelect" @click.native.stop="onClear"></Icon>
|
||||
|
@ -146,8 +146,12 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
onInputFocus(e){
|
||||
this.$emit(e.type === 'focus' ? 'on-input-focus' : 'on-input-blur');
|
||||
onInputFocus(){
|
||||
this.$emit('on-input-focus');
|
||||
},
|
||||
onInputBlur () {
|
||||
if (!this.values.length) this.query = ''; // #5155
|
||||
this.$emit('on-input-blur');
|
||||
},
|
||||
removeTag (value) {
|
||||
if (this.disabled) return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue