|
@@ -29,6 +29,7 @@
|
|
class="select-trigger"
|
|
class="select-trigger"
|
|
@mouseenter="inputHovering = true"
|
|
@mouseenter="inputHovering = true"
|
|
@mouseleave="inputHovering = false"
|
|
@mouseleave="inputHovering = false"
|
|
|
|
+ @click="handleInputClick"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
v-if="multiple"
|
|
v-if="multiple"
|
|
@@ -140,6 +141,7 @@
|
|
<input
|
|
<input
|
|
v-if="filterable"
|
|
v-if="filterable"
|
|
ref="input"
|
|
ref="input"
|
|
|
|
+ :id="id"
|
|
v-model="query"
|
|
v-model="query"
|
|
type="text"
|
|
type="text"
|
|
:class="[nsSelect.e('input'), nsSelect.is(selectSize)]"
|
|
:class="[nsSelect.e('input'), nsSelect.is(selectSize)]"
|
|
@@ -154,12 +156,11 @@
|
|
width: `${inputLength / (inputWidth - 32)}%`,
|
|
width: `${inputLength / (inputWidth - 32)}%`,
|
|
maxWidth: `${inputWidth - 42}px`,
|
|
maxWidth: `${inputWidth - 42}px`,
|
|
}"
|
|
}"
|
|
|
|
+ @click="handleInputClick"
|
|
@focus="handleFocus"
|
|
@focus="handleFocus"
|
|
@blur="handleBlur"
|
|
@blur="handleBlur"
|
|
@keyup="managePlaceholder"
|
|
@keyup="managePlaceholder"
|
|
@keydown="resetInputState"
|
|
@keydown="resetInputState"
|
|
- @keydown.down.prevent="navigateOptions('next')"
|
|
|
|
- @keydown.up.prevent="navigateOptions('prev')"
|
|
|
|
@keydown.esc="handleKeydownEscape"
|
|
@keydown.esc="handleKeydownEscape"
|
|
@keydown.enter.stop.prevent="selectOption"
|
|
@keydown.enter.stop.prevent="selectOption"
|
|
@keydown.delete="deletePrevTag"
|
|
@keydown.delete="deletePrevTag"
|
|
@@ -170,6 +171,8 @@
|
|
@input="debouncedQueryChange"
|
|
@input="debouncedQueryChange"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!--@keydown.down.prevent="navigateOptions('next')"
|
|
|
|
+ @keydown.up.prevent="navigateOptions('prev')"-->
|
|
<el-input
|
|
<el-input
|
|
:id="id"
|
|
:id="id"
|
|
ref="reference"
|
|
ref="reference"
|
|
@@ -188,6 +191,7 @@
|
|
:validate-event="false"
|
|
:validate-event="false"
|
|
:class="[nsSelect.is('focus', visible)]"
|
|
:class="[nsSelect.is('focus', visible)]"
|
|
:tabindex="multiple && filterable ? -1 : undefined"
|
|
:tabindex="multiple && filterable ? -1 : undefined"
|
|
|
|
+ @click="handleInputClick"
|
|
@focus="handleFocus"
|
|
@focus="handleFocus"
|
|
@blur="handleBlur"
|
|
@blur="handleBlur"
|
|
@input="debouncedOnInputChange"
|
|
@input="debouncedOnInputChange"
|
|
@@ -195,12 +199,12 @@
|
|
@compositionstart="handleComposition"
|
|
@compositionstart="handleComposition"
|
|
@compositionupdate="handleComposition"
|
|
@compositionupdate="handleComposition"
|
|
@compositionend="handleComposition"
|
|
@compositionend="handleComposition"
|
|
- @keydown.down.stop.prevent="navigateOptions('next')"
|
|
|
|
- @keydown.up.stop.prevent="navigateOptions('prev')"
|
|
|
|
@keydown.enter.stop.prevent="selectOption"
|
|
@keydown.enter.stop.prevent="selectOption"
|
|
@keydown.esc="handleKeydownEscape"
|
|
@keydown.esc="handleKeydownEscape"
|
|
@keydown.tab="visible = false"
|
|
@keydown.tab="visible = false"
|
|
>
|
|
>
|
|
|
|
+ <!--@keydown.down.stop.prevent="navigateOptions('next')"
|
|
|
|
+ @keydown.up.stop.prevent="navigateOptions('prev')"-->
|
|
<template v-if="$slots.prefix" #prefix>
|
|
<template v-if="$slots.prefix" #prefix>
|
|
<div
|
|
<div
|
|
style="
|
|
style="
|
|
@@ -462,6 +466,7 @@ export default defineComponent({
|
|
onOptionDestroy,
|
|
onOptionDestroy,
|
|
handleMenuEnter,
|
|
handleMenuEnter,
|
|
handleFocus,
|
|
handleFocus,
|
|
|
|
+ handleInputClick,
|
|
blur,
|
|
blur,
|
|
handleBlur,
|
|
handleBlur,
|
|
handleClearClick,
|
|
handleClearClick,
|
|
@@ -643,6 +648,7 @@ export default defineComponent({
|
|
handleComposition,
|
|
handleComposition,
|
|
handleMenuEnter,
|
|
handleMenuEnter,
|
|
handleFocus,
|
|
handleFocus,
|
|
|
|
+ handleInputClick,
|
|
blur,
|
|
blur,
|
|
handleBlur,
|
|
handleBlur,
|
|
handleClearClick,
|
|
handleClearClick,
|