fix(upload): inheritAttrs, close #5714

This commit is contained in:
WD 2022-06-18 21:48:00 +08:00 committed by GitHub
parent 168626bfeb
commit ab8457303e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,11 +342,13 @@ export default defineComponent({
};
return () => {
const { listType, disabled, type } = props;
const { class: className, style: styleName, ...transAttrs } = attrs;
const rcUploadProps = {
onBatchStart,
onError,
onProgress,
onSuccess,
...transAttrs,
...(props as RcUploadProps),
id: props.id ?? formItemContext.id.value,
prefixCls: prefixCls.value,