mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
fix(upload): inheritAttrs, close #5714
This commit is contained in:
parent
168626bfeb
commit
ab8457303e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user