diff --git a/examples/docs/en-US/input.md b/examples/docs/en-US/input.md index 8af0a4534..8198e6d6c 100644 --- a/examples/docs/en-US/input.md +++ b/examples/docs/en-US/input.md @@ -702,6 +702,7 @@ Attribute | Description | Type | Options | Default |icon | icon name | string | — | — | |value | binding value | string | — | — | | debounce | debounce delay when typing, in milliseconds | number | — | 300 | +| placement | placement of the popup menu | string | 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 | Function(queryString, callback) | — | — | | popper-class | custom class name for autocomplete's dropdown | string | — | — | | trigger-on-focus | whether show suggestions when input focus | boolean | — | true | diff --git a/examples/docs/es/input.md b/examples/docs/es/input.md index 99c2d1cad..7762e5439 100644 --- a/examples/docs/es/input.md +++ b/examples/docs/es/input.md @@ -681,6 +681,7 @@ Atributo | Descripción | Tipo | Opciones | Por defecto |icon | nombre del icono | string | — | — | |value | valor enlazado | string | — | — | | debounce | retardo al escribir, en milisegundos | number | — | 300 | +| placement | placement of the popup menu | string | top / top-start / top-end / bottom / bottom-start / bottom-end | bottom-start | |fetch-suggestions | un método para obtener las sugerencias del input. Cuando las sugerencias estén listas, invocar `callback(data:[])` para devolverlas a Autocomplete | Function(queryString, callback) | — | — | | popper-class | nombre personalizado de clase para el dropdown de autocomplete | string | — | — | | trigger-on-focus | si se deben mostrar sugerencias cuando el input obtiene el foco | boolean | — | true | diff --git a/examples/docs/zh-CN/input.md b/examples/docs/zh-CN/input.md index cb4fff514..334032c4d 100644 --- a/examples/docs/zh-CN/input.md +++ b/examples/docs/zh-CN/input.md @@ -854,6 +854,7 @@ export default { | value-key | 输入建议对象中用于显示的键名 | string | — | value | | value | 必填值,输入绑定值 | string | — | — | | debounce | 获取输入建议的去抖延时 | number | — | 300 | +| placement | 菜单弹出位置 | string | top / top-start / top-end / bottom / bottom-start / bottom-end | bottom-start | | fetch-suggestions | 返回输入建议的方法,仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它 | Function(queryString, callback) | — | — | | popper-class | Autocomplete 下拉列表的类名 | string | — | — | | trigger-on-focus | 是否在输入框 focus 时显示建议列表 | boolean | — | true | diff --git a/packages/autocomplete/src/autocomplete.vue b/packages/autocomplete/src/autocomplete.vue index dbe9333cc..68767a5dc 100644 --- a/packages/autocomplete/src/autocomplete.vue +++ b/packages/autocomplete/src/autocomplete.vue @@ -40,7 +40,7 @@ :class="[popperClass ? popperClass : '']" :popper-options="popperOptions" ref="suggestions" - placement="bottom-start" + :placement="placement" :id="id">