File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable react-hooks/exhaustive-deps */
2- /* eslint react/no-is-mounted:0,react/sort-comp:0,react/prop-types:0 */
32import classnames from 'classnames' ;
43import pickAttrs from '@rc-component/util/lib/pickAttrs' ;
54import React from 'react' ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments