<template>
<div>
<el-checkbox v-model="checkedAllTop" @change="handleCheckAllChange1($event)" class="largeCheckAll">大全选{
{selectedLength}}</el-checkbox>
<div v-for="(item,index) in tableData" :key="item.id">
<el-checkbox v-model="item.checkedAll" @change="handleCheckAllChange2($event,index)" class="checkedAll">小全选{
{item.checklist.length}}</el-checkbox>
<el-checkbox-group v-model="item.checklist">
<el-checkbox @change="handleCheckAllChange3(item.checklist,item.aerobicsList,index)" v-for="(item1,index1) in item.aerobicsList" :label="item1.id" :key="item1.id">{
{item1.title}}</el-checkbox>
</el-checkbox-group></
el-checkbox-group JSON对象的全选功能(解决el-checkbox-group不支持JSON对象的问题)
最新推荐文章于 2024-07-12 16:15:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)