mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 20:38:45 +08:00
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
|
import 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;
|
||
|
return <Upload {...props} type="drag" style={{ height: props.height }}/>;
|
||
|
}
|
||
|
}
|