el-option默认值
时间: 2023-10-02 15:07:01 浏览: 201
根据引用所提供的信息,要让el-option有默认值,只需要将v-model绑定的值设为roleOptions数组中的某一条value值即可。这意味着在roleOptions数组中,某个对象的value值将被作为默认值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [el-select下拉框默认值问题](https://blog.csdn.net/qq_44278386/article/details/119103587)[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* *3* [elementUI 下拉框 默认值](https://blog.csdn.net/qcg14774125/article/details/124608117)[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 ]
阅读全文