2019-09-25 12:19:57 +08:00
|
|
|
# Select
|
2020-01-21 23:44:15 +08:00
|
|
|
Select something!
|
2019-09-25 12:19:57 +08:00
|
|
|
## Demo
|
|
|
|
```demo
|
|
|
|
basic
|
2020-01-21 23:44:15 +08:00
|
|
|
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
|
2020-01-21 23:44:15 +08:00
|
|
|
many-options
|
|
|
|
custom-option
|
|
|
|
action
|
2019-09-25 12:19:57 +08:00
|
|
|
```
|
2019-11-14 02:18:36 +08:00
|
|
|
## API
|
2020-01-21 23:44:15 +08:00
|
|
|
### 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
|
|
|
|