|size | size of Input, works when `type` is not 'textarea' | string | large/small/mini | - |
|size | size of Input, works when `type` is not 'textarea' | string | large/small/mini | — |
|icon | icon name | string | - | - |
|icon | icon name | string | — | — |
|rows | number of rows of textarea, only works when `type` is 'textarea' | number | - | 2 |
|rows | number of rows of textarea, only works when `type` is 'textarea' | number | — | 2 |
|autosize | whether textarea has an adaptive height, only works when `type` is 'textarea'. Can accept an object, e.g. { minRows: 2, maxRows: 6 } | boolean/object | - | false |
|autosize | whether textarea has an adaptive height, only works when `type` is 'textarea'. Can accept an object, e.g. { minRows: 2, maxRows: 6 } | boolean/object | — | false |
|auto-complete | same as `auto-complete` in native input | string | on/off | off |
|auto-complete | same as `auto-complete` in native input | string | on/off | off |
|name | same as `name` in native input | string | - | - |
|name | same as `name` in native input | string | — | — |
| readonly | same as `readonly` in native input | boolean | - | false |
| readonly | same as `readonly` in native input | boolean | — | false |
|max | same as `max` in native input | - | - | - |
|max | same as `max` in native input | — | — | — |
|min | same as `min` in native input | - | - | - |
|min | same as `min` in native input | — | — | — |
|step| same as `step` in native input | - | - | - |
|step| same as `step` in native input | — | — | — |
|resize| control the resizability | string | none, both, horizontal, vertical | - |
|resize| control the resizability | string | none, both, horizontal, vertical | — |
|autofocus | same as `autofocus` in native input | boolean | - | false |
|autofocus | same as `autofocus` in native input | boolean | — | false |
|form | same as `form` in native input | string | - | - |
|form | same as `form` in native input | string | — | — |
| on-icon-click | hook function when clicking on the input icon | function | - | - |
| on-icon-click | hook function when clicking on the input icon | function | — | — |
### Input Events
### Input Events
...
@@ -630,23 +630,23 @@ Search data from server-side.
...
@@ -630,23 +630,23 @@ Search data from server-side.
Attribute | Description | Type | Options | Default
Attribute | Description | Type | Options | Default
|----| ----| ----| ---- | -----|
|----| ----| ----| ---- | -----|
|placeholder| the placeholder of Autocomplete| string | - | - |
|placeholder| the placeholder of Autocomplete| string | — | — |
| props | configuration options, see the following table | object | - | - |
| props | configuration options, see the following table | object | — | — |
|icon | icon name | string | - | - |
|icon | icon name | string | — | — |
|value | binding value | string | - | - |
|value | binding value | string | — | — |
|custom-item | component name of your customized suggestion list item | string | - | - |
|custom-item | component name of your customized suggestion list item | string | — | — |
|fetch-suggestions | a method to fetch input suggestions. When suggestions are ready, invoke `callback(data:[])` to return them to Autocomplete | Function(queryString, callback) | - | - |
|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 | - | - |
| popper-class | custom class name for autocomplete's dropdown | string | — | — |
| trigger-on-focus | whether show suggestions when input focus | boolean | - | true |
| trigger-on-focus | whether show suggestions when input focus | boolean | — | true |
| on-icon-click | hook function when clicking on the input icon | function | - | - |
| on-icon-click | hook function when clicking on the input icon | function | — | — |
| select-when-unmatched | whether to emit a `select` event on enter when there is no autocomplete match | boolean | - | false |
| select-when-unmatched | whether to emit a `select` event on enter when there is no autocomplete match | boolean | — | false |