fix(components): [autocomplete] optimize the select event type (#10105)

closed #8787
This commit is contained in:
qiang 2022-10-18 18:46:52 +08:00 committed by GitHub
parent ed03cd42bb
commit 01ce124940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ export const autocompleteEmits = {
focus: (evt: FocusEvent) => evt instanceof FocusEvent,
blur: (evt: FocusEvent) => evt instanceof FocusEvent,
clear: () => true,
select: (item: { value: any }) => isObject(item),
select: (item: Record<string, any>) => isObject(item),
}
export type AutocompleteEmits = typeof autocompleteEmits