mirror of
https://github.com/element-plus/element-plus.git
synced 2025-12-19 09:09:40 +08:00
docs(components): [autocomplete] correct expose type (#22591)
autocomplete.md
This commit is contained in:
@@ -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>` |
|
||||
|
||||
Reference in New Issue
Block a user