mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-24 04:33:06 +00:00
merge: with remote
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user