doc(slider)

This commit is contained in:
07akioni 2020-01-29 15:15:42 +08:00
parent a15789d21c
commit 3a7962793d
2 changed files with 25 additions and 2 deletions

View File

@ -1,6 +1,29 @@
# Slider
As far as I know, it is awalys used as volumn control.
## Demos
```demo
basic
range
mark
````
```
## V-model
|Prop|Event|
|-|-|
|value|change|
## Props
|Name|Type|Default|Description|
|-|-|-|-|
|marks|`object`||Looks like `{ value: label, ...}`|
|disabled|`boolean`|`false`||
|min|`number`|`0`||
|max|`number`|`100`||
|step|`number`|`1`||
|range|`boolean`|`false`||
|value|`number \| Array<number>`|`null`|
## Events
|Name|Parameters|Description|
|-|-|-|
|change|`(value)`||

View File

@ -19,4 +19,4 @@ event
## Events
|Name|Parameters|Description|
|-|-|-|
|change|(value)||
|change|`(value)`||