el-checkbox 回显
时间: 2023-08-29 14:11:20 浏览: 148
el-checkbox的回显可以通过v-model来实现。在引用中的例子中,v-model指定了formData.field101作为复选框组的绑定值,当选中或取消选中复选框时,formData.field101的值会相应地改变。这样,可以通过初始设置formData.field101的值来进行回显。同样地,在引用中的例子中,v-model指定了chooseRoleNames作为复选框组的绑定值,通过改变chooseRoleNames的值来进行回显。在引用的例子中,v-model指定了checkedCities作为复选框组的绑定值,在data中初始化checkedCities的值,就可以进行回显了。所以,el-checkbox的回显可以通过设置绑定值来实现。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [解决 el-checkbox-group 值为对象的时候 复选框回显问题](https://blog.csdn.net/qcg14774125/article/details/124377658)[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* [原创:vue使用elementUI的复选框el-checkbox-group与el-checkbox回显失效问题解决!!](https://blog.csdn.net/HD243608836/article/details/116202202)[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 ]
阅读全文