This commit is contained in:
Teo
2025-08-15 03:09:20 +08:00
parent 70d829af6c
commit 26386882f0
8 changed files with 96 additions and 93 deletions

View File

@ -20,6 +20,7 @@
:auto-upload="autoUpload"
:on-change="handleChange"
:on-remove="handleRemove"
:method="method"
>
<slot>
<div>
@ -120,6 +121,9 @@ const props = defineProps({
type: Function as PropType<(files: any[], res: any) => void>,
default: undefined
},
// 上传方法
method: propTypes.string.def('post'),
// 失败回调
onUploadError: {
type: Function as PropType<(err: any, file: any, fileList: any) => void>,