el-select 自动清除搜索词
时间: 2023-10-06 14:11:14 浏览: 96
在el-select中,当点击关闭下拉框时,搜索词会自动清除。这是由于在el-select的filterable属性设置为true时,它会对搜索词进行过滤。当我们在el-select中输入搜索词并找到匹配的选项后,如果关闭下拉框,el-select会自动清除搜索词。这样可以确保在下次打开下拉框时,搜索词不会保留。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [el-select 可下拉可搜索可保留](https://blog.csdn.net/qq_36229552/article/details/124455775)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [正则表达式](https://download.csdn.net/download/u013013722/8220345)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文