field checkbox

This commit is contained in:
2023-07-13 14:31:02 +03:00
parent 1b283b0d56
commit 288c5cbb7e
3 changed files with 13 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ const props = defineProps<{
error?: string
readonly?: boolean
disabled?: boolean
checked?: boolean
tag?: 'input' | 'textarea' | 'select'
}>()
@@ -58,6 +59,7 @@ const inputHandler = (val: any) => {
:value="props.modelValue"
:reatonly="props.readonly"
:disabled="props.disabled"
:checked="checked"
@input="inputHandler"
class="input"
/>