We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ba3c29 + a011b5f commit bea3f8dCopy full SHA for bea3f8d
examples/routers/checkbox.vue
@@ -88,7 +88,7 @@
88
data () {
89
return {
90
social: ['facebook', 'github'],
91
- fruit: ['苹果'],
+ fruit: null,
92
tags: [],
93
testValue1: null,
94
testValue2: null,
src/components/checkbox/checkbox.vue
@@ -128,7 +128,9 @@
128
},
129
currentValue () {
130
if (this.CheckboxGroupInstance) {
131
- return this.CheckboxGroupInstance.modelValue.indexOf(this.label) >= 0;
+ let modelValue = this.CheckboxGroupInstance.modelValue;
132
+ modelValue = Array.isArray(modelValue) ? modelValue : []
133
+ return modelValue.indexOf(this.label) >= 0;
134
} else {
135
return this.modelValue === this.trueValue;
136
}
0 commit comments