![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
拼命写bug
较真每天
展开
-
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 · 2015 阅读 · 0 评论 -
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 · 2196 阅读 · 1 评论