Fix modelValue required prop warning
This commit is contained in:
parent
0226eada8c
commit
73d9af91ff
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
defineProps<{label?: string, name:string, type?: string, modelValue: any}>()
|
defineProps<{label?: string, name:string, type?: string, modelValue?: any}>()
|
||||||
defineEmits(['update:modelValue'])
|
defineEmits(['update:modelValue'])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ defineEmits(['update:modelValue'])
|
||||||
<div>
|
<div>
|
||||||
<label v-if="label" :for="name">{{ label }}</label>
|
<label v-if="label" :for="name">{{ label }}</label>
|
||||||
|
|
||||||
<!--suppress RequiredAttributes -->
|
|
||||||
<input
|
<input
|
||||||
:id="name"
|
:id="name"
|
||||||
:type="type ?? 'text'"
|
:type="type ?? 'text'"
|
||||||
|
|
Loading…
Reference in a new issue