Skip to content

Commit

Permalink
fix(upload): inheritAttrs, close #5714
Browse files Browse the repository at this point in the history
  • Loading branch information
techbirds authored Jun 18, 2022
1 parent 168626b commit ab84573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ab84573

Please sign in to comment.