[improvement] Swipe: add indicator color prop (#2110)

This commit is contained in:
neverland
2018-11-20 21:00:09 +08:00
committed by GitHub
parent bf9db97921
commit acac16f4c5
5 changed files with 27 additions and 7 deletions
+3 -2
View File
@@ -13,7 +13,7 @@ Vue.use(Swipe).use(SwipeItem);
Use `autoplay` prop to set autoplay interval
```html
<van-swipe :autoplay="3000">
<van-swipe :autoplay="3000" indicator-color="white">
<van-swipe-item>1</van-swipe-item>
<van-swipe-item>2</van-swipe-item>
<van-swipe-item>3</van-swipe-item>
@@ -128,7 +128,8 @@ export default {
| loop | Whether to enable loop | `Boolean` | `true` |
| vertical | Vertical Scrolling | `Boolean` | `false` |
| touchable | Whether touchable | `Boolean` | `true` |
| show-indicators | Whether to show indocators | `Boolean` | `true` |
| show-indicators | Whether to show indicators | `Boolean` | `true` |
| indicator-color | Indicator color | `String` | `#1989fa` |
| initial-swipe | Index of initial swipe, start from 0 | `Number` | `0` |
| width | Set Swiper Item Width | `Number` | `0` |
| height | Set Swiper Item Height | `Number` | `0` |