el-checkbox-group 保存数据
时间: 2023-10-08 17:12:31 浏览: 156
el-checkbox-group可以通过v-model来保存选中的数据。v-model绑定的是一个数组,可以通过改变数组的值来实现数据的保存。每当用户选择一个或多个checkbox时,选中的值会被添加到v-model绑定的数组中,用户取消选择时,对应的值会从数组中移除。这样,最终v-model绑定的数组中就保存了用户选择的数据。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [el-checkbox-group修改默认样式,el-checkbox-group自定义样式案例](https://blog.csdn.net/weixin_41346436/article/details/126698899)[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: 33.333333333333336%"]
- *2* [nested_el-checkbox:element-ui的el-checkbox实现嵌套多选,单选](https://download.csdn.net/download/weixin_42107561/18609162)[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: 33.333333333333336%"]
- *3* [Vue动态生成el-checkbox点击无法赋值的解决方法](https://download.csdn.net/download/weixin_38599412/13255919)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文