[Doc] use ts-style type
This commit is contained in:
+22
-22
@@ -90,34 +90,34 @@ export default {
|
||||
| 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` |
|
||||
| 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 | Triggered when close | `Function` | - |
|
||||
| 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` | - |
|
||||
| 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` |
|
||||
| closeOnPopstate | Whether to close when popstate | `boolean` | `false` |
|
||||
| asyncClose | Whether to enable async close | `boolean` | `false` |
|
||||
| className | Custom className | `string | Array | object` | - |
|
||||
| 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` |
|
||||
|
||||
### Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| images | Images URL list | `Array` | `[]` |
|
||||
| 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` | - |
|
||||
| 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` |
|
||||
| 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` | - |
|
||||
| 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` |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -136,5 +136,5 @@ export default {
|
||||
|
||||
| Attribute | Description | Type |
|
||||
|------|------|------|
|
||||
| url | Url of current image | `Number` |
|
||||
| index | Index of current image | `String` |
|
||||
| url | Url of current image | `number` |
|
||||
| index | Index of current image | `string` |
|
||||
|
||||
@@ -102,18 +102,18 @@ export default {
|
||||
| 参数名 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| images | 需要预览的图片 URL 数组 | `Array` | `[]` | - |
|
||||
| startPosition | 图片预览起始位置索引 | `Number` | `0` | - |
|
||||
| showIndex | 是否显示页码 | `Boolean` | `true` | - |
|
||||
| showIndicators | 是否显示轮播指示器 | `Boolean` | `false` | - |
|
||||
| loop | 是否开启循环播放 | `Boolean` | `true` | - |
|
||||
| startPosition | 图片预览起始位置索引 | `number` | `0` | - |
|
||||
| showIndex | 是否显示页码 | `boolean` | `true` | - |
|
||||
| showIndicators | 是否显示轮播指示器 | `boolean` | `false` | - |
|
||||
| loop | 是否开启循环播放 | `boolean` | `true` | - |
|
||||
| onClose | 关闭时的回调函数 | `Function` | - | - |
|
||||
| onChange | 切换图片时的回调函数,回调参数为当前索引 | `Function` | - | 2.0.3 |
|
||||
| asyncClose | 是否开启异步关闭 | `Boolean` | `false` | - |
|
||||
| closeOnPopstate | 是否在页面回退时自动关闭 | `Boolean` | `false` | 2.0.0 |
|
||||
| className | 自定义类名 | `String | Array | Object` | - | 1.5.2 |
|
||||
| lazyLoad | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | `Boolean` | `false` | 1.5.3 |
|
||||
| maxZoom | 手势缩放时,最大缩放比例 | `Number` | `3` | 1.6.14 |
|
||||
| minZoom | 手势缩放时,最小缩放比例 | `Number` | `1/3` | 1.6.14 |
|
||||
| asyncClose | 是否开启异步关闭 | `boolean` | `false` | - |
|
||||
| closeOnPopstate | 是否在页面回退时自动关闭 | `boolean` | `false` | 2.0.0 |
|
||||
| className | 自定义类名 | `string | Array | object` | - | 1.5.2 |
|
||||
| lazyLoad | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | `boolean` | `false` | 1.5.3 |
|
||||
| maxZoom | 手势缩放时,最大缩放比例 | `number` | `3` | 1.6.14 |
|
||||
| minZoom | 手势缩放时,最小缩放比例 | `number` | `1/3` | 1.6.14 |
|
||||
|
||||
### Props
|
||||
|
||||
@@ -122,16 +122,16 @@ export default {
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| images | 需要预览的图片 URL 数组 | `Array` | `[]` | 1.1.16 |
|
||||
| start-position | 图片预览起始位置索引 | `Number` | `0` | 1.1.16 |
|
||||
| show-index | 是否显示页码 | `Boolean` | `true` | 1.3.4 |
|
||||
| show-indicators | 是否显示轮播指示器 | `Boolean` | `false` | 1.3.10 |
|
||||
| loop | 是否开启循环播放 | `Boolean` | `true` | 1.4.4 |
|
||||
| async-close | 是否开启异步关闭 | `Boolean` | `false` | 1.4.8 |
|
||||
| close-on-popstate | 是否在页面回退时自动关闭 | `Boolean` | `false` |
|
||||
| class-name | 自定义类名 | `String | Array | Object` | - | 1.5.2 |
|
||||
| lazy-load | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | `Boolean` | `false` | 1.5.3 |
|
||||
| max-zoom | 手势缩放时,最大缩放比例 | `Number` | `3` | 1.6.14 |
|
||||
| min-zoom | 手势缩放时,最小缩放比例 | `Number` | `1/3` | 1.6.14 |
|
||||
| start-position | 图片预览起始位置索引 | `number` | `0` | 1.1.16 |
|
||||
| show-index | 是否显示页码 | `boolean` | `true` | 1.3.4 |
|
||||
| show-indicators | 是否显示轮播指示器 | `boolean` | `false` | 1.3.10 |
|
||||
| loop | 是否开启循环播放 | `boolean` | `true` | 1.4.4 |
|
||||
| async-close | 是否开启异步关闭 | `boolean` | `false` | 1.4.8 |
|
||||
| close-on-popstate | 是否在页面回退时自动关闭 | `boolean` | `false` |
|
||||
| class-name | 自定义类名 | `string | Array | object` | - | 1.5.2 |
|
||||
| lazy-load | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | `boolean` | `false` | 1.5.3 |
|
||||
| max-zoom | 手势缩放时,最大缩放比例 | `number` | `3` | 1.6.14 |
|
||||
| min-zoom | 手势缩放时,最小缩放比例 | `number` | `1/3` | 1.6.14 |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -154,5 +154,5 @@ export default {
|
||||
|
||||
| 参数名 | 说明 | 类型 |
|
||||
|------|------|------|
|
||||
| url | 当前图片 URL | `String` |
|
||||
| index | 当前图片的索引值 | `Number` |
|
||||
| url | 当前图片 URL | `string` |
|
||||
| index | 当前图片的索引值 | `number` |
|
||||
|
||||
Reference in New Issue
Block a user