vue2中 el-checkbox 被全选择的问题
vue2中,v-for的div 里面的el-checkbox-group中再v-for出el-checkbox,问题是点击一个el-checkbox,其它所有el-checkbox都被选中或者取消,请问这个问题怎么解决?
<div class="btnitem" v-for="(item,index) in newChildList" :key="index">
{{item.id}}
<el-checkbox-group v-model="vals" class="checkBoxGroup" @change="changeItem ">
<div v-for="(obj,idx) in item.content" :key="obj.id">
<el-checkbox style="display: flex;">{{obj.val}}</el-checkbox>
<div> </div>
</el-checkbox-button>
</div>
</el-checkbox-group>
初始的界面

点选择一个,其它全部都选择了!
