[Doc] Uploader: add description of capture prop

This commit is contained in:
陈嘉涵 2019-05-27 16:31:43 +08:00
parent 1e6f5a2f5f
commit 8e9ffadc28
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export default {
| accept | Accepted file type | `String` | `image/*` |
| disabled | Whether to disabled the upload | `Boolean` | `false` |
| multiple | Whether to enable multiple selection pictures | `Boolean` | `false` |
| capture | Capturecan be set to `camera` | `String` | - |
| before-read | Hook before reading the file, return false to stop reading the file | `Function` | - |
| after-read | Hook after reading the file | `Function` | - |
| max-size | Max size of file | `Number` | - |

View File

@ -57,6 +57,7 @@ export default {
| accept | 接受的文件类型 | `String` | `image/*` | - |
| disabled | 是否禁用图片上传 | `Boolean` | `false` | - |
| multiple | 是否开启图片多选,部分安卓机型不支持 | `Boolean` | `false` | 2.0.0 |
| capture | 捕获模式,可选值为`camera`(直接调起摄像头) | `String` | - | 2.0.0 |
| before-read | 读取前的回调函数,返回 false 可终止文件读取 | `Function` | - | - |
| after-read | 读取完成后的回调函数 | `Function` | - | - |
| max-size | 文件大小限制,单位为 byte | `Number` | - | - |