naive-ui/demo/documentation/components/select/enUS/index.md

52 lines
923 B
Markdown
Raw Normal View History

2019-09-25 12:19:57 +08:00
# Select
Select something!
2019-09-25 12:19:57 +08:00
## Demo
```demo
basic
size
2019-09-25 12:19:57 +08:00
multiple
events
filterable
remote
remote-multiple
2019-11-14 02:18:36 +08:00
clearable
scroll-event
2020-01-21 18:21:19 +08:00
group
many-options
custom-option
action
2019-09-25 12:19:57 +08:00
```
2019-11-14 02:18:36 +08:00
## API
### V-model
|prop|event|
|-|-|
|value|change|
### Props
|Name|Type|Default|Description|
|-|-|-|-|
|loading|`boolean`|`false`||
|clearable|`boolean`|`false`||
|value|`Array \| string \| number`|`false`||
|placeholder||||
|multiple|`boolean`|`false`||
|size|`'small' \| 'medium' \| 'large'`|`'medium'`||
|disabled|`boolean`|`false`||
|options|`Array`|`[]`||
|remote|`boolearn`|`false`|If you want to async get options|
|filter|`(pattern: string, option: Object) => boolean`|`null`||
### Slots
|Name|Description|
|-|-|
|empty||
### Event
|Name|Parameter|Description|
|-|-|-|
|change|`(value: Array \| string \| number \| null)`||
|search|`(value: string)`||
|blur|`()`|When picker of select blur|
|scroll|`(e: Event)`|When select menu scrolls|
2019-11-14 02:18:36 +08:00