Update README.md

This commit is contained in:
infeng 2018-04-24 16:14:56 +08:00
parent 524fb3ba65
commit eaf2cbf074

View File

@ -67,6 +67,7 @@ class App extends React.Component<any, any> {
| noImgDetails | boolean | false | to not render image detail (WxH) | false |
| noFooter | boolean | false | to not render the entire footer | false |
| changeable | boolean | true | wheather to show change button | false |
| customToolbar | (defaultToolbarConfigs: [ToolbarConfig](#ToolbarConfig)[]) => ToolbarConfig[] | - | customer toolbar | false |
### ImageDecorator
@ -76,6 +77,14 @@ class App extends React.Component<any, any> {
| alt | string | - | image description | false |
| downloadUrl | string | - | image downlaod url | false |
### ToolbarConfig
| props | type | default | description | required |
|-------------|--------------|---------|-----------------------------|----------|
| key | string | - | tool key | true |
| render | React.ReactNode | - | tool render | false |
| onClick | string | - | callback function when action is clicked | false |
## Keyboard support
- `Esc`: Close viewer.