Skip to content

Commit ffa5b23

Browse files
committed
fix(CheckboxGroup): proxy generic to emits
1 parent 725ef9b commit ffa5b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/components/CheckboxGroup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface CheckboxGroupProps<T extends CheckboxGroupItem[] = CheckboxGrou
6363
ui?: CheckboxGroup['slots'] & CheckboxProps['ui']
6464
}
6565
66-
export type CheckboxGroupEmits = CheckboxGroupRootEmits & {
66+
export type CheckboxGroupEmits<T extends CheckboxGroupItem[] = CheckboxGroupItem[]> = CheckboxGroupRootEmits<T[number]> & {
6767
change: [event: Event]
6868
}
6969
@@ -92,7 +92,7 @@ const props = withDefaults(defineProps<CheckboxGroupProps<T, VK>>(), {
9292
valueKey: 'value' as never,
9393
orientation: 'vertical'
9494
})
95-
const emits = defineEmits<CheckboxGroupEmits>()
95+
const emits = defineEmits<CheckboxGroupEmits<T>>()
9696
const slots = defineSlots<CheckboxGroupSlots<T>>()
9797
9898
const appConfig = useAppConfig() as CheckboxGroup['AppConfig']

0 commit comments

Comments
 (0)