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

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