Add validator for text modelValue
This commit is contained in:
parent
a9dea10a17
commit
ab06c7de5d
|
@ -113,7 +113,7 @@ const props = defineProps({
|
|||
default: () => '',
|
||||
},
|
||||
modelValue: {
|
||||
type: String,
|
||||
validator: (v) => typeof v === 'string' || v === null,
|
||||
required: true,
|
||||
},
|
||||
label: {
|
||||
|
|
Loading…
Reference in New Issue