docs: fix typo in uploader document (#13502)

This commit is contained in:
Yu Zhao
2025-06-12 22:38:15 +08:00
committed by GitHub
parent 06b11e63e2
commit b68dcca7e0
2 changed files with 2 additions and 2 deletions

View File

@@ -341,7 +341,7 @@ export default {
| capture | Capture, can be set to `camera` | _string_ | - |
| 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_ | - |
| before-delete | Hook before delete the file, return false to stop deleting the file, can return Promise | _Function_ | - |
| max-size | Max size of file | _number \| string \| (file: File) => boolean_ | `Infinity` |
| max-count | Max count of image | _number \| string_ | `Infinity` |
| result-type | Type of file read result, can be set to `file` `text` | _string_ | `dataUrl` |

View File

@@ -360,7 +360,7 @@ export default {
| capture | 图片选取模式,可选值为 `camera` (直接调起摄像头) | _string_ | - |
| after-read | 文件读取完成后的回调函数 | _Function_ | - |
| before-read | 文件读取前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise` | _Function_ | - |
| before-delete | 文件删除前的回调函数,返回 `false` 可终止文件读取,<br>支持返回 `Promise` | _Function_ | - |
| before-delete | 文件删除前的回调函数,返回 `false` 可终止文件删除,支持返回 `Promise` | _Function_ | - |
| max-size | 文件大小限制,单位为 `byte` | _number \| string \| (file: File) => boolean_ | `Infinity` |
| max-count | 文件上传数量限制 | _number \| string_ | `Infinity` |
| result-type | 文件读取结果类型,可选值为 `file` `text` | _string_ | `dataUrl` |