el-select反向回显
时间: 2023-10-08 17:08:12 浏览: 95
el-select反向回显是通过设置v-model的值来实现的。在引用中,可以看到el-select组件绑定了一个v-model属性,即scope.row.rowItem。这个属性的值决定了el-select选择框中的选项。通过改变v-model的值,可以实现反向回显,即选中之前选中的选项。在这个例子中,v-model的值是一个对象,包含了选中选项的相关信息。通过改变对象的属性值,可以实现反向回显。具体实现方法是通过改变v-model对象中的属性值来反显选项。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [el-select下拉框多选远程搜索反显](https://blog.csdn.net/gaoyu007/article/details/125931261)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [el-select绑定对象并可以实现回显](https://blog.csdn.net/Anyuegogogo/article/details/125022002)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [element-ui 远程搜索组件el-select在项目中组件化的实现代码](https://download.csdn.net/download/weixin_38516863/12931163)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文