Parcourir la source

fix checkbox isGroup bug in computed cached (#1860)

baiyaaaaa il y a 8 ans
Parent
commit
15e74b6e7d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/checkbox/src/checkbox.vue

+ 1 - 1
packages/checkbox/src/checkbox.vue

@@ -98,7 +98,7 @@
       },
 
       store() {
-        return this._checkboxGroup.value;
+        return this._checkboxGroup ? this._checkboxGroup.value : this.value;
       }
     },