mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 14:04:47 +08:00
Demo:唤出搜索时自动聚焦搜索框
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
>{{ $t('search.replace') }}</el-button
|
||||
>
|
||||
</el-input>
|
||||
<div class="searchInfo" v-if="showSearchInfo">
|
||||
<div class="searchInfo" v-if="showSearchInfo && !isUndef(searchText)">
|
||||
{{ currentIndex }} / {{ total }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -155,7 +155,7 @@ export default {
|
||||
showSearch() {
|
||||
this.$bus.$emit('closeSideBar')
|
||||
this.show = true
|
||||
// this.$refs.searchInputRef.focus()
|
||||
this.$refs.searchInputRef.focus()
|
||||
},
|
||||
|
||||
hideReplaceInput() {
|
||||
|
||||
Reference in New Issue
Block a user