[new feature] Uploader: add before-delete prop (#4118)

This commit is contained in:
neverland
2019-08-14 17:17:04 +08:00
committed by GitHub
parent 468fec2d86
commit b06cfabe8c
4 changed files with 86 additions and 11 deletions
+2 -1
View File
@@ -118,8 +118,9 @@ export default {
| multiple | Whether to enable multiple selection pictures | `boolean` | `false` |
| disabled | Whether to disabled the upload | `boolean` | `false` |
| capture | Capturecan be set to `camera` | `string` | - |
| before-read | Hook before reading the file, return false to stop reading the file, can return Promise | `Function` | - |
| after-read | Hook after reading the file | `Function` | - |
| before-read | Hook before reading the file, return false to stop reading the file, can return Promise | `Function` | - |
| before-delete | Hook before delete the file, return false to stop reading the file, can return Promise | `Function` | - |
| max-size | Max size of file | `number` | - |
| max-count | Max count of image | `number` | - |
| result-type | Type of file read result, can be set to `dataUrl` `text` | `string` | `dataUrl` |