[Doc] detailed Array typing
This commit is contained in:
@@ -89,7 +89,7 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| images | Images URL list | `Array` | `[]` |
|
||||
| images | Images URL list | `string[]` | `[]` |
|
||||
| startPosition | Start position | `number` | `0` |
|
||||
| showIndex | Whether to show index | `boolean` | `true` |
|
||||
| showIndicators | Whether to show indicators | `boolean` | `false` |
|
||||
@@ -98,7 +98,7 @@ export default {
|
||||
| onChange | Triggered when current image change | `Function` | - |
|
||||
| closeOnPopstate | Whether to close when popstate | `boolean` | `false` |
|
||||
| asyncClose | Whether to enable async close | `boolean` | `false` |
|
||||
| className | Custom className | `string | Array | object` | - |
|
||||
| className | Custom className | `any` | - |
|
||||
| lazyLoad | Whether to enable thumb lazy load,should register [Lazyload](#/en-US/lazyload) component | `boolean` | `false` |
|
||||
| maxZoom | Max zoom | `number` | `3` |
|
||||
| minZoom | Min zoom | `number` | `1/3` |
|
||||
@@ -107,14 +107,14 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| images | Images URL list | `Array` | `[]` |
|
||||
| images | Images URL list | `string[]` | `[]` |
|
||||
| start-position | Start position | `number` | `0` |
|
||||
| show-index | Whether to show index | `boolean` | `true` |
|
||||
| show-indicators | Whether to show indicators | `boolean` | `false` |
|
||||
| loop | Whether to enable loop | `boolean` | `true` |
|
||||
| async-close | Whether to enable async close | `boolean` | `false` |
|
||||
| close-on-popstate | Whether to close when popstate | `boolean` | `false` |
|
||||
| class-name | Custom className | `string | Array | object` | - |
|
||||
| class-name | Custom className | `any` | - |
|
||||
| lazy-load | Whether to enable thumb lazy load,should register [Lazyload](#/en-US/lazyload) component | `boolean` | `false` |
|
||||
| max-zoom | Max zoom | `number` | `3` |
|
||||
| min-zoom | Min zoom | `number` | `1/3` |
|
||||
|
||||
Reference in New Issue
Block a user