mirror of
https://github.com/infeng/react-viewer.git
synced 2025-12-08 17:36:40 +00:00
Update README.md
Fix type of prop onClose in readme
This commit is contained in:
parent
1b9534d93b
commit
7a54a3490f
@ -49,7 +49,7 @@ class App extends React.Component<any, any> {
|
||||
| props | type | default | description | required |
|
||||
|-------------|--------------|---------|-----------------------------|----------|
|
||||
| visible | string | false | Viewer visible | true |
|
||||
| onClose | string | - | Specify a function that will be called when Visible close | true |
|
||||
| onClose | function | - | Specify a function that will be called when Visible close | true |
|
||||
| images | {src: string, alt: string}[] | [] | image source array | true |
|
||||
| activeIndex | number | 0 | active image index | false |
|
||||
| zIndex | number | 1000 | Viewer css z-index | false |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user