chore(components): add missing emits for docs

This commit is contained in:
Benjamin Canac
2024-06-28 16:19:06 +02:00
parent 7dd90f2bb7
commit fae627ed65
6 changed files with 17 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ export interface CheckboxSlots {
label(props: { label?: string }): any
description(props: { description?: string }): any
}
export interface CheckboxEmits {
(e: 'update:modelValue', payload: boolean): void
}
</script>
<script setup lang="ts">
@@ -48,6 +52,7 @@ import { useId, useAppConfig, useFormField } from '#imports'
const props = defineProps<CheckboxProps>()
const slots = defineSlots<CheckboxSlots>()
defineEmits<CheckboxEmits>()
const modelValue = defineModel<boolean | undefined>({ default: undefined })