naive-ui/demo/documentation/components/autoComplete/zhCN/index.md
2020-02-07 23:40:07 +08:00

35 lines
699 B
Markdown

# 自动填充 Auto Complete
用来当搜索提示或者类似的东西。
## 演示
```demo
basic
custom-input
after-select
```
## V-model
|Prop|Event|
|-|-|
|value|input|
## Props
|名称|类型|默认值|说明|
|-|-|-|-|
|size|`'small' \| 'medium' \| 'large'`|`'medium'`||
|value|`string`|`null`||
|options|`Array`|`[]`||
|placeholder|`string`|`null`||
|blur-after-select|`boolean`|`false`||
|clear-after-select|`boolean`|`false`||
## Slots
|名称|参数|说明|
|-|-|-|
|default|`({ handleInput: (value: string) => any, handleFocus: function, handleBlur: function, value: string })`||
## Events
|名称|参数|说明|
|-|-|-|
|input|`(value: string \| null)`||
|select|`(value: string)`||