Skip to content

Commit 0e4a935

Browse files
committed
fix: fix
1 parent 3488cac commit 0e4a935

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/AjaxUploader.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable react-hooks/exhaustive-deps */
2-
/* eslint react/no-is-mounted:0,react/sort-comp:0,react/prop-types:0 */
32
import classnames from 'classnames';
43
import pickAttrs from '@rc-component/util/lib/pickAttrs';
54
import React from 'react';

src/Upload.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const Upload: React.FC<Readonly<UploadProps>> = props => {
2020
withCredentials = false,
2121
openFileDialogOnClick = true,
2222
hasControlInside = false,
23-
...rest
23+
children,
24+
...otherProps
2425
} = props;
2526
return (
2627
<AjaxUpload
@@ -38,8 +39,10 @@ const Upload: React.FC<Readonly<UploadProps>> = props => {
3839
withCredentials={withCredentials}
3940
openFileDialogOnClick={openFileDialogOnClick}
4041
hasControlInside={hasControlInside}
41-
{...rest}
42-
/>
42+
{...otherProps}
43+
>
44+
{children}
45+
</AjaxUpload>
4346
);
4447
};
4548

0 commit comments

Comments
 (0)