ImagePreview
Install
Usage
Basic Usage
Custom config
Async Close
Arguments
| Attribute |
Description |
Type |
Default |
| images |
Images URL list |
Array |
[] |
| startPosition |
Start position |
Number |
0 |
| showIndex |
Whether to show index |
Boolean |
true |
| showIndicators |
Whether to show indicators |
Boolean |
false |
| loop |
Whether to enable loop |
Boolean |
true |
| onClose |
Close callback |
Function |
- |
| asyncClose |
Whether to enable async close |
Boolean |
false |
| className |
Custom className |
`String |
Array |
| lazyLoad |
Whether to enable thumb lazy load,should register Lazyload component |
Boolean |
false |
onClose Parematers
| Attribute |
Description |
Type |
| url |
Url of current image |
Number |
| index |
Index of current image |
String |