mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
parent
7404a7ea32
commit
d72f825f43
@ -4,8 +4,11 @@ import { UploadProps } from './interface';
|
|||||||
|
|
||||||
export type DraggerProps = UploadProps & { height?: number };
|
export type DraggerProps = UploadProps & { height?: number };
|
||||||
|
|
||||||
const Dragger: React.FC<DraggerProps> = props => (
|
// stick class comoponent to avoid React ref warning inside Form
|
||||||
<Upload {...props} type="drag" style={{ ...props.style, height: props.height }} />
|
// https://github.com/ant-design/ant-design/issues/18707
|
||||||
);
|
export default class Dragger extends React.Component<DraggerProps, any> {
|
||||||
|
render() {
|
||||||
export default Dragger;
|
const { props } = this;
|
||||||
|
return <Upload {...props} type="drag" style={{ ...props.style, height: props.height }} />;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user