el-select取消默认选中第一个
时间: 2023-10-02 21:03:36 浏览: 259
要取消el-select的默认选中第一个选项,可以将v-model的值设置为null或者空字符串。在给el-select绑定v-model的地方,将v-model的值设为null或者空字符串即可取消默认选中第一个选项。例如,将this.queryParam.receiveObject = this.objectSelectOptions<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [el-select 默认选中](https://blog.csdn.net/qq_43628847/article/details/124980446)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [详解element-ui中el-select的默认选择项问题](https://download.csdn.net/download/weixin_38571449/12938481)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文