merge: with remote

This commit is contained in:
ibuler
2024-05-23 19:10:04 +08:00
parent 5996d89e4c
commit 5fc23c15f0

View File

@@ -27,16 +27,16 @@
ref="SearchInput" ref="SearchInput"
v-model="filterValue" v-model="filterValue"
:placeholder="placeholder" :placeholder="placeholder"
:suffix-icon="suffixIcon"
:validate-event="false" :validate-event="false"
class="search-input" class="search-input"
:suffix-icon="suffixIcon"
@blur="handleBlur" @blur="handleBlur"
@change="handleConfirm" @change="handleConfirm"
@focus="handleFocus" @focus="handleFocus"
@keyup.enter.native="handleConfirm" @keyup.enter.native="handleConfirm"
@keyup.delete.native="handleDelete" @keyup.delete.native="handleDelete"
/> />
<span class="keydown-focus" :class="isFocus ? 'is-focus ' : ''">t</span> <span :class="isFocus ? 'is-focus ' : ''" class="keydown-focus">/</span>
</div> </div>
</template> </template>
@@ -347,7 +347,7 @@ export default {
}, },
handleKeyUp(event) { handleKeyUp(event) {
// 检查按下的键是否是"T"键 // 检查按下的键是否是"T"键
if (event.key === 'T' || event.key === 't') { if (event.key === '/' || event.key === 't') {
this.$refs.SearchInput.focus() this.$refs.SearchInput.focus()
this.suffixIcon = 'el-icon-search' this.suffixIcon = 'el-icon-search'
this.isFocus = true this.isFocus = true