[Doc] props title

This commit is contained in:
陈嘉涵
2019-05-03 09:37:24 +08:00
parent 921f8a88fb
commit e3cb465dc2
101 changed files with 279 additions and 283 deletions
+2 -2
View File
@@ -114,14 +114,14 @@ export default {
| max-zoom | Max zoom | `Number` | `3` |
| min-zoom | Min zoom | `Number` | `1/3` |
### Event
### Events
| Event | Description | Parameters |
|------|------|------|
| close | Triggered when close | { index, url } |
| change | Triggered when current image change | index: index of current image |
### Slot
### Slots
| Name | Description |
|------|------|
+4 -4
View File
@@ -111,9 +111,9 @@ export default {
| maxZoom | 手势缩放时,最大缩放比例 | `Number` | `3` | 1.6.14 |
| minZoom | 手势缩放时,最小缩放比例 | `Number` | `1/3` | 1.6.14 |
### API
### Props
通过组件调用 `ImagePreview` 时,支持以下 API
通过组件调用 `ImagePreview` 时,支持以下 Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
@@ -128,7 +128,7 @@ export default {
| max-zoom | 手势缩放时,最大缩放比例 | `Number` | `3` | 1.6.14 |
| min-zoom | 手势缩放时,最小缩放比例 | `Number` | `1/3` | 1.6.14 |
### Event
### Events
通过组件调用 `ImagePreview` 时,支持以下事件:
@@ -137,7 +137,7 @@ export default {
| close | 关闭时触发 | { index: 索引, url: 图片链接 } |
| change | 切换当前图片时触发 | index, 当前图片的索引 |
### Slot
### Slots
通过组件调用 `ImagePreview` 时,支持以下插槽: