chore(components): declare slots after emits

This commit is contained in:
Benjamin Canac
2024-07-02 13:54:29 +02:00
parent 1eaec0ff56
commit cacd853d1e
3 changed files with 14 additions and 14 deletions

View File

@@ -38,15 +38,15 @@ export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | '
ui?: Partial<typeof switchTv.slots>
}
export interface SwitchSlots {
label(props: { label?: string }): any
description(props: { description?: string }): any
}
export interface SwitchEmits {
(e: 'update:modelValue', payload: boolean): void
(e: 'change', payload: Event): void
}
export interface SwitchSlots {
label(props: { label?: string }): any
description(props: { description?: string }): any
}
</script>
<script setup lang="ts">