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