ant-design/components/upload/Dragger.tsx

12 lines
334 B
TypeScript
Raw Normal View History

import * as React from 'react';
import Upload from './Upload';
import { UploadProps } from './interface';
export type DraggerProps = UploadProps & { height?: number };
2019-08-10 13:06:23 +08:00
const Dragger: React.FC<DraggerProps> = props => (
2019-08-05 18:38:10 +08:00
<Upload {...props} type="drag" style={{ ...props.style, height: props.height }} />
);
export default Dragger;