Skip to content

Commit f35ca57

Browse files
author
黄书伟
committed
修复数据只有一条无法全选和取消全选的bug
1 parent 78c6412 commit f35ca57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/src/utils/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default {
162162

163163
let childrens = context.$children;
164164

165-
while (childrens && childrens.length > 1) {
165+
while (childrens && childrens.length > 0) {
166166

167167
childrens.forEach(child=>{
168168

packages/v-checkbox-group/src/checkbox-group.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
5050
let children = utils.getChildCompsByName(this,'v-checkbox');
5151
52-
if (children.length > 1){
52+
if (children.length > 0){
5353
5454
children.forEach(child =>{
5555

0 commit comments

Comments
 (0)