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