[new feature] Slider: add vertical prop (#3078)

This commit is contained in:
neverland
2019-04-02 09:18:42 +08:00
committed by GitHub
parent ee5e49bda0
commit 7e9ca167fa
8 changed files with 151 additions and 11 deletions
+9
View File
@@ -74,6 +74,14 @@ export default {
</van-slider>
```
#### Vertical
```html
<div :style="{ height: '100px' }">
<van-slider v-model="value" vertical />
</div>
```
### API
| Attribute | Description | Type | Default |
@@ -86,6 +94,7 @@ export default {
| bar-height | Height of bar | `String` | `2px` |
| active-color | Active color of bar | `String` | `#1989fa` |
| inactive-color | Inactive color of bar | `String` | `#e5e5e5` |
| vertical | Whether to display vertical | `Boolean` | `false` |
### Event