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