docs(components): [autocomplete] correct expose type (#22591)

autocomplete.md
This commit is contained in:
zhongli-Leah
2025-10-27 15:09:35 +08:00
committed by GitHub
parent bc6a25ab2b
commit d39ecebe75

View File

@@ -112,18 +112,18 @@ autocomplete/custom-header-footer
### Exposes
| Name | Description | Type |
| ---------------- | ------------------------------------------- | ------------------------------------------ |
| activated | if autocomplete activated | ^[object]`Ref<boolean>` |
| blur | blur the input element | ^[Function]`() => void` |
| close | collapse suggestion list | ^[Function]`() => void` |
| focus | focus the input element | ^[Function]`() => void` |
| handleSelect | triggers when a suggestion is clicked | ^[Function]`(item: any) => promise<void>` |
| handleKeyEnter | handle keyboard enter event | ^[Function]`() => promise<void>` |
| highlightedIndex | the index of the currently highlighted item | ^[object]`Ref<number>` |
| highlight | highlight an item in a suggestion | ^[Function]`(itemIndex: number) => void` |
| inputRef | el-input component instance | ^[object]`Ref<ElInputInstance>` |
| loading | remote search loading indicator | ^[object]`Ref<boolean>` |
| popperRef | el-tooltip component instance | ^[object]`Ref<ElTooltipInstance>` |
| suggestions | fetch suggestions result | ^[object]`Ref<record<string, any>>` |
| getData ^(2.8.4) | loading suggestion list | ^[Function]`(queryString: string) => void` |
| Name | Description | Type |
| ---------------- | ------------------------------------------- | --------------------------------------------------- |
| activated | if autocomplete activated | ^[object]`Ref<boolean>` |
| blur | blur the input element | ^[Function]`() => void` |
| close | collapse suggestion list | ^[Function]`() => void` |
| focus | focus the input element | ^[Function]`() => void` |
| handleSelect | triggers when a suggestion is clicked | ^[Function]`(item: any) => promise<void>` |
| handleKeyEnter | handle keyboard enter event | ^[Function]`() => promise<void>` |
| highlightedIndex | the index of the currently highlighted item | ^[object]`Ref<number>` |
| highlight | highlight an item in a suggestion | ^[Function]`(itemIndex: number) => void` |
| inputRef | el-input component instance | ^[object]`Ref<ElInputInstance>` |
| loading | remote search loading indicator | ^[object]`Ref<boolean>` |
| popperRef | el-tooltip component instance | ^[object]`Ref<ElTooltipInstance>` |
| suggestions | fetch suggestions result | ^[object]`Ref<record<string, any>[]>` |
| getData ^(2.8.4) | loading suggestion list | ^[Function]`(queryString: string) => promise<void>` |