[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
@@ -47,8 +47,9 @@ setTimeout(() => {
### Arguments
| Attribute | Description | Type |
|-----------|-----------|-----------|
| images | Images URL list | `Array` |
| startPosition | Start position | `Number` |
| onClose | Close callback | `Function` |
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-----------|
| images | Images URL list | `Array` | `[]` |
| startPosition | Start position | `Number` | `0` |
| showIndex | Whether to show index | `Boolean` | `true` |
| onClose | Close callback | `Function` | - |