mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
35 lines
699 B
Markdown
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)`||
|