手续
This commit is contained in:
@ -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>,
|
||||
|
Reference in New Issue
Block a user