zent
Version:
一套前端设计语言和基于React的实现
26 lines (19 loc) • 913 B
Markdown
title: PreviewImage
path: component/preview-image
group: Data Display
## previewImage
This component is used to preview images.
### Guide
- It's used to zoom thumbnail.
- Next image and previous image can be selected.
- Images can be rotated.
## API
| Property | Description | Type | Default | Alternative |
|------ |------ |------ |-------- |-------- |
| images | urls for images | array | | |
| index | 显示第几张,从0开始 | number | 0 | |
| showRotateBtn | determines whether display | bool | true | true,false |
| className | Optional. Custom class name | string | `''` | |
| prefix | Optional. Custom prefix. | string | `'zent'` | |