[improvement] ImagePreview: add show-index prop (#1889)

This commit is contained in:
neverland
2018-10-02 21:24:25 +08:00
committed by GitHub
parent 8bd447a130
commit a4bebfbb8d
15 changed files with 84 additions and 21 deletions
+6 -5
View File
@@ -55,11 +55,12 @@ setTimeout(() => {
### 配置项
| 参数名 | 说明 | 类型 |
|-----------|-----------|-----------|
| images | 需要预览的图片 URL 数组 | `Array` |
| startPosition | 图片预览起始位置索引 | `Number` |
| onClose | 关闭时的回调函数 | `Function` |
| 参数名 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-----------|
| images | 需要预览的图片 URL 数组 | `Array` | `[]` |
| startPosition | 图片预览起始位置索引 | `Number` | `0` |
| showIndex | 是否显示页码 | `Boolean` | `true` |
| onClose | 关闭时的回调函数 | `Function` | - |
### 更新日志