From 074e9c022bc9c05cfaf47f4cedebbb573e190719 Mon Sep 17 00:00:00 2001 From: Bryan Qiu Date: Mon, 2 Mar 2026 23:36:13 +0800 Subject: [PATCH] docs(components): [autocomplete] fix invalid placement enum value (#23708) --- docs/en-US/component/autocomplete.md | 48 ++++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/en-US/component/autocomplete.md b/docs/en-US/component/autocomplete.md index 353f1e3ef9..72a5d0b210 100644 --- a/docs/en-US/component/autocomplete.md +++ b/docs/en-US/component/autocomplete.md @@ -61,30 +61,30 @@ autocomplete/custom-header-footer ### Attributes -| Name | Description | Type | Default | -| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------ | -| model-value / v-model | binding value | ^[string] | — | -| placeholder | the placeholder of Autocomplete | ^[string] | — | -| clearable | whether to show clear button | ^[boolean] | false | -| disabled | whether Autocomplete is disabled | ^[boolean] | false | -| value-key | key name of the input suggestion object for display | ^[string] | value | -| debounce | debounce delay when typing, in milliseconds | ^[number] | 300 | -| placement | placement of the popup menu | ^[enum]`'top' \| 'top- start' \| 'top-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end'` | bottom-start | -| fetch-suggestions | a method to fetch input suggestions. When suggestions are ready, invoke `callback(data:[])` to return them to Autocomplete | ^[Array] / ^[Function]`(queryString: string, callback: callbackfn) => void` | — | -| trigger-on-focus | whether show suggestions when input focus | ^[boolean] | true | -| select-when-unmatched | whether to emit a `select` event on enter when there is no autocomplete match | ^[boolean] | false | -| name | same as `name` in native input | ^[string] | — | -| aria-label ^(a11y) ^(2.7.2) | native `aria-label` attribute | ^[string] | — | -| hide-loading | whether to hide the loading icon in remote search | ^[boolean] | false | -| popper-class | custom class name for autocomplete's dropdown | ^[string] / ^[object] | '' | -| popper-style ^(2.11.4) | custom style for autocomplete's dropdown | ^[string] / ^[object] | — | -| teleported | whether select dropdown is teleported to the body | ^[boolean] | true | -| append-to ^(2.9.9) | which select dropdown appends to | ^[CSSSelector] / ^[HTMLElement] | — | -| highlight-first-item | whether to highlight first item in remote search suggestions by default | ^[boolean] | false | -| fit-input-width | whether the width of the dropdown is the same as the input | ^[boolean] | false | -| popper-append-to-body ^(deprecated) | whether to append the dropdown to body. If the positioning of the dropdown is wrong, you can try to set this prop to false | ^[boolean] | false | -| loop-navigation ^(2.11.4) | whether keyboard navigation loops from end to start | ^[boolean] | true | -| [input props](./input.md#attributes) | — | — | — | +| Name | Description | Type | Default | +| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------ | +| model-value / v-model | binding value | ^[string] | — | +| placeholder | the placeholder of Autocomplete | ^[string] | — | +| clearable | whether to show clear button | ^[boolean] | false | +| disabled | whether Autocomplete is disabled | ^[boolean] | false | +| value-key | key name of the input suggestion object for display | ^[string] | value | +| debounce | debounce delay when typing, in milliseconds | ^[number] | 300 | +| placement | placement of the popup menu | ^[enum]`'top' \| 'top-start' \| 'top-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end'` | bottom-start | +| fetch-suggestions | a method to fetch input suggestions. When suggestions are ready, invoke `callback(data:[])` to return them to Autocomplete | ^[Array] / ^[Function]`(queryString: string, callback: callbackfn) => void` | — | +| trigger-on-focus | whether show suggestions when input focus | ^[boolean] | true | +| select-when-unmatched | whether to emit a `select` event on enter when there is no autocomplete match | ^[boolean] | false | +| name | same as `name` in native input | ^[string] | — | +| aria-label ^(a11y) ^(2.7.2) | native `aria-label` attribute | ^[string] | — | +| hide-loading | whether to hide the loading icon in remote search | ^[boolean] | false | +| popper-class | custom class name for autocomplete's dropdown | ^[string] / ^[object] | '' | +| popper-style ^(2.11.4) | custom style for autocomplete's dropdown | ^[string] / ^[object] | — | +| teleported | whether select dropdown is teleported to the body | ^[boolean] | true | +| append-to ^(2.9.9) | which select dropdown appends to | ^[CSSSelector] / ^[HTMLElement] | — | +| highlight-first-item | whether to highlight first item in remote search suggestions by default | ^[boolean] | false | +| fit-input-width | whether the width of the dropdown is the same as the input | ^[boolean] | false | +| popper-append-to-body ^(deprecated) | whether to append the dropdown to body. If the positioning of the dropdown is wrong, you can try to set this prop to false | ^[boolean] | false | +| loop-navigation ^(2.11.4) | whether keyboard navigation loops from end to start | ^[boolean] | true | +| [input props](./input.md#attributes) | — | — | — | ### Events