hookehuyr

节目负责人搜索时自动聚焦

<!--
* @Date: 2023-11-01 10:18:53
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-11 16:18:45
* @LastEditTime: 2024-06-27 14:40:05
* @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()
})
};
/**
......