feat(Swipe): some props can be string

This commit is contained in:
陈嘉涵
2020-01-31 10:04:41 +08:00
parent 21a0d4e877
commit e9f96393f9
3 changed files with 24 additions and 24 deletions
+6 -6
View File
@@ -154,17 +154,17 @@ export default {
| 参数 | 说明 | 类型 | 默认值 |
|------|------|------|------|
| autoplay | 自动轮播间隔,单位为 ms | *number* | - |
| duration | 动画时长,单位为 ms | *number* | `500` |
| initial-swipe | 初始位置索引值 | *number* | `0` |
| width | 滑块宽度 | *number* | `auto` |
| height | 滑块高度 | *number* | `auto` |
| autoplay | 自动轮播间隔,单位为 ms | *number \| string* | - |
| duration | 动画时长,单位为 ms | *number \| string* | `500` |
| initial-swipe | 初始位置索引值 | *number \| string* | `0` |
| width | 滑块宽度,单位为`px` | *number \| string* | `auto` |
| height | 滑块高度,单位为`px` | *number \| string* | `auto` |
| loop | 是否开启循环播放 | *boolean* | `true` |
| show-indicators | 是否显示指示器 | *boolean* | `true` |
| indicator-color | 指示器颜色 | *string* | `#1989fa` |
| vertical | 是否为纵向滚动 | *boolean* | `false` |
| touchable | 是否可以通过手势滑动 | *boolean* | `true` |
| stop-propagation `v2.2.13` | 是否阻止滑动事件冒泡 | *boolean* | `true` |
| indicator-color | 指示器颜色 | *string* | `#1989fa` |
### Swipe Events