Fix prop validation for checkboxes
This commit is contained in:
parent
99b3b1f0cb
commit
99811228f2
|
@ -26,7 +26,7 @@ const props = defineProps({
|
|||
field: {
|
||||
required: true,
|
||||
validator: (value) =>
|
||||
hasKeys(value, [...globalFieldRules(), 'options']) &&
|
||||
hasKeys(value, [...globalFieldRules(), 'options', 'min', 'max']) &&
|
||||
typeof value.key === 'string' &&
|
||||
value.key.length > 0 &&
|
||||
typeof value.name === 'string' &&
|
||||
|
|
Loading…
Reference in New Issue