Skip to content

Commit ab84573

Browse files
authored
fix(upload): inheritAttrs, close #5714
1 parent 168626b commit ab84573

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/upload/Upload.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,13 @@ export default defineComponent({
342342
};
343343
return () => {
344344
const { listType, disabled, type } = props;
345+
const { class: className, style: styleName, ...transAttrs } = attrs;
345346
const rcUploadProps = {
346347
onBatchStart,
347348
onError,
348349
onProgress,
349350
onSuccess,
351+
...transAttrs,
350352
...(props as RcUploadProps),
351353
id: props.id ?? formItemContext.id.value,
352354
prefixCls: prefixCls.value,

0 commit comments

Comments
 (0)