2020-02-04 10:44:04 +08:00
|
|
|
# 自动填充 Auto Complete
|
|
|
|
用来当搜索提示或者类似的东西。
|
|
|
|
## 演示
|
2020-01-12 00:54:50 +08:00
|
|
|
```demo
|
|
|
|
basic
|
|
|
|
custom-input
|
|
|
|
after-select
|
|
|
|
```
|
2020-02-04 10:44:04 +08:00
|
|
|
|
|
|
|
## V-model
|
|
|
|
|Prop|Event|
|
|
|
|
|-|-|
|
|
|
|
|value|input|
|
|
|
|
|
|
|
|
## Props
|
|
|
|
|名称|类型|默认值|介绍|
|
|
|
|
|-|-|-|-|
|
|
|
|
|size|`'small' \| 'medium' \| 'large'`|`'medium'`||
|
|
|
|
|value|`string`|`null`||
|
|
|
|
|options|`Array`|`[]`||
|
2020-02-04 10:45:22 +08:00
|
|
|
|placeholder|`string`|`null`||
|
2020-02-04 10:44:04 +08:00
|
|
|
|blur-after-select|`boolean`|`false`||
|
|
|
|
|clear-after-select|`boolean`|`false`||
|
|
|
|
|
|
|
|
## Slots
|
|
|
|
|名称|参数|介绍|
|
|
|
|
|-|-|-|
|
2020-02-05 12:21:18 +08:00
|
|
|
|default|`({ handleInput: (value: string) => any, handleFocus: function, handleBlur: function, value: string })`||
|
2020-02-04 10:44:04 +08:00
|
|
|
|
|
|
|
## Events
|
|
|
|
|名称|参数|介绍|
|
|
|
|
|-|-|-|
|
|
|
|
|input|`(value: string \| null)`||
|
|
|
|
|select|`(value: string)`||
|