Skip to content

Commit

Permalink
fix(upload): Fixed the issue that the upload component took effect be…
Browse files Browse the repository at this point in the history
…cause the attrs were not transparently transmitted, and eliminated the impact of the style being transparently transmitted again. Thanks @tangjinzhou for the reminder. Runs all unit tests that pass. vueComponent#5714
  • Loading branch information
techbirds committed Jun 18, 2022
1 parent 168626b commit 26379e9
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 26379e9

Please sign in to comment.