ant-design/components/upload/Dragger.tsx

13 lines
386 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 };
export default class Dragger extends React.Component<DraggerProps, any> {
render() {
const { props } = this;
2018-12-07 16:17:45 +08:00
return <Upload {...props} type="drag" style={{ ...props.style, height: props.height }} />;
}
}