From 01ce124940b7fbe4fc9f3efd3da8d3ab872f9a3b Mon Sep 17 00:00:00 2001 From: qiang Date: Tue, 18 Oct 2022 18:46:52 +0800 Subject: [PATCH] fix(components): [autocomplete] optimize the select event type (#10105) closed #8787 --- packages/components/autocomplete/src/autocomplete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/autocomplete/src/autocomplete.ts b/packages/components/autocomplete/src/autocomplete.ts index 33e8be4791..db829ac343 100644 --- a/packages/components/autocomplete/src/autocomplete.ts +++ b/packages/components/autocomplete/src/autocomplete.ts @@ -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) => isObject(item), } export type AutocompleteEmits = typeof autocompleteEmits