Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-06-27 14:41:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
24ba7ca9009cbb11159185c1f6b2d834e902f6b1
24ba7ca9
1 parent
2b52c39a
节目负责人搜索时自动聚焦
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
doc/selectUserView.vue
doc/selectUserView.vue
View file @
24ba7ca
<!--
* @Date: 2023-11-01 10:18:53
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
3-12-11 16:18:4
5
* @LastEditTime: 202
4-06-27 14:40:0
5
* @FilePath: /vue-flow-editor/doc/selectUserView.vue
* @Description: 成员列表选择控件
-->
...
...
@@ -67,6 +67,7 @@
</div>
<div v-else>
<el-input
ref="refSearchInput"
v-model="search_input"
@input="onSearchInput"
class="search-btn-wrapper"
...
...
@@ -745,10 +746,15 @@ const confirmUserForm = () => {
*
* @return {void} No return value.
*/
const refSearchInput = ref(null);
const activeSearchBtn = () => {
is_active_search.value = !is_active_search.value;
search_input.value = '';
searchUserList.value = {};
// 自动聚焦
nextTick(() => {
refSearchInput.value.focus()
})
};
/**
...
...
Please
register
or
login
to post a comment