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
|
2020-02-07 23:40:07 +08:00
|
|
|
|名称|类型|默认值|说明|
|
2020-02-04 10:44:04 +08:00
|
|
|
|-|-|-|-|
|
|
|
|
|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-07 23:40:07 +08:00
|
|
|
|名称|参数|说明|
|
2020-02-04 10:44:04 +08:00
|
|
|
|-|-|-|
|
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
|
2020-02-07 23:40:07 +08:00
|
|
|
|名称|参数|说明|
|
2020-02-04 10:44:04 +08:00
|
|
|
|-|-|-|
|
|
|
|
|input|`(value: string \| null)`||
|
|
|
|
|select|`(value: string)`||
|