Skip to content

Commit

Permalink
docs(upload): fix on-download desc
Browse files Browse the repository at this point in the history
  • Loading branch information
jizai1125 committed Dec 4, 2023
1 parent 98d6fae commit bc2477a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/upload/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ debug.vue
| on-error | `(options: { file: UploadFileInfo, event?: ProgressEvent }) => UploadFileInfo \| void` | `undefined` | 文件上传失败的回调 | 2.24.0 |
| on-finish | `(options: { file: UploadFileInfo, event?: ProgressEvent }) => UploadFileInfo \| undefined` | `({ file }) => file` | 文件上传结束的回调,可以修改传入的 UploadFileInfo 或者返回一个新的 UploadFileInfo。注意:file 将会下一次事件循环中被置为 null | |
| on-before-upload | `(options: { file: UploadFileInfo, fileList: UploadFileInfo[] }) => (Promise<boolean \| void> \| boolean \| void)` | `undefined` | 文件上传之前的回调,返回 `false``Promise resolve false``Promise rejected` 时会取消本次上传 | |
| on-download | `(file: FileInfo) => void` | `undefined` | 点击文件下载按钮的回调函数 | |
| on-download | `(file: FileInfo) => void` | `undefined` | 点击文件下载按钮的回调函数,返回 `false``Promise resolve false``Promise rejected` 时会取消本次下载 | |
| on-preview | `(file: FileInfo) => void` | `undefined` | 点击文件链接或预览按钮的回调函数 | |
| on-remove | `(options: { file: UploadFileInfo, fileList: Array<UploadFileInfo> }) => Promise<boolean> \| boolean \| any` | `() => true` | 文件删除回调,返回 `false``Promise resolve false``Promise rejected` 时会取消本次删除 | |
| on-update:file-list | `(fileList: UploadFileInfo[]) => void` | `undefined` | 当 file-list 改变时触发的回调函数 | |
Expand Down

0 comments on commit bc2477a

Please sign in to comment.