- 博客(2)
- 收藏
- 关注
原创 vue的checkbox复选框实现单选
1.实现思路:只选中一个,其他的disabled2.用change事件实现<el-checkbox-group v-modle=checkboxGroup1 @change=handleCheckbox><el-checkbox-button v-for=“item in msgList” :label=“item” :disabled=currentItemId? currentItemId !== item.id : false :key=“index ”>handleC
2021-06-22 16:24:03
2111
原创 el-checkbox-group复选框实现单选
1.实现思路:只选中一个,其他的disabled2.用change事件实现<el-checkbox-group v-modle=checkboxGroup1 @change=handleCheckbox><el-checkbox-button v-for=“(item in msgList ” :disabled=current ItemId? currentItemId !==item.id : false :key=“index ”>handleCheckbox(val
2021-06-22 15:46:14
2360
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人