mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
doc(slider)
This commit is contained in:
parent
a15789d21c
commit
3a7962793d
@ -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)`||
|
||||
|
||||
|
@ -19,4 +19,4 @@ event
|
||||
## Events
|
||||
|Name|Parameters|Description|
|
||||
|-|-|-|
|
||||
|change|(value)||
|
||||
|change|`(value)`||
|
Loading…
Reference in New Issue
Block a user