fix(upload): inheritAttrs, close #5714
parent
168626bfeb
commit
ab8457303e
|
@ -342,11 +342,13 @@ export default defineComponent({
|
||||||
};
|
};
|
||||||
return () => {
|
return () => {
|
||||||
const { listType, disabled, type } = props;
|
const { listType, disabled, type } = props;
|
||||||
|
const { class: className, style: styleName, ...transAttrs } = attrs;
|
||||||
const rcUploadProps = {
|
const rcUploadProps = {
|
||||||
onBatchStart,
|
onBatchStart,
|
||||||
onError,
|
onError,
|
||||||
onProgress,
|
onProgress,
|
||||||
onSuccess,
|
onSuccess,
|
||||||
|
...transAttrs,
|
||||||
...(props as RcUploadProps),
|
...(props as RcUploadProps),
|
||||||
id: props.id ?? formItemContext.id.value,
|
id: props.id ?? formItemContext.id.value,
|
||||||
prefixCls: prefixCls.value,
|
prefixCls: prefixCls.value,
|
||||||
|
|
Loading…
Reference in New Issue