You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
form组件使用element-plus库时,CheckboxGroup没有选中效果,但实际的选项值已经选中,且无法取消选中,单独使用elCheckbox时正常,RadioGroup也正常,在checkbox首次点击时,warn: Invalid prop: type check failed for prop "modelValue". Expected Array, got String with value "XXX".
Version
Vben Admin V5
Describe the bug?
form组件使用element-plus库时,CheckboxGroup没有选中效果,但实际的选项值已经选中,且无法取消选中,单独使用elCheckbox时正常,RadioGroup也正常,在checkbox首次点击时,warn: Invalid prop: type check failed for prop "modelValue". Expected Array, got String with value "XXX".
Reproduction
<Form> <template #radioGroup="slotProps"> <el-radio-group v-bind="slotProps"> <el-radio :value="3">Option A</el-radio> <el-radio :value="6">Option B</el-radio> <el-radio :value="9">Option C</el-radio> </el-radio-group> </template> <template #checkboxGroup="slotProps"> <el-checkbox-group v-bind="slotProps"> <el-checkbox label="Option D" value="Value D" /> <el-checkbox label="Option E" value="Value E" /> <el-checkbox label="Option F" value="Value F" /> </el-checkbox-group> </template> <template #checkbox="slotProps"> <el-checkbox label="我已阅读并同意" v-bind="slotProps" /> </template> </Form> schema: [ { component: 'RadioGroup', fieldName: 'radioGroup', label: '单选组', rules: 'selectRequired', }, { component: 'CheckboxGroup', fieldName: 'checkboxGroup', label: '多选组', rules: 'selectRequired', }, { component: 'Checkbox', fieldName: 'checkbox', label: '', defaultValue: false, renderComponentContent: () => { return { default: () => ['我已阅读并同意'], }; }, rules: 'selectRequired', }, ]
System Info
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: