mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 06:49:32 +08:00
ac5a06027e
This reverts commit ea8ed28209
.
16 lines
466 B
TypeScript
16 lines
466 B
TypeScript
import * as React from 'react';
|
|
import type { UploadProps } from './interface';
|
|
import Upload from './Upload';
|
|
|
|
export type DraggerProps = UploadProps & { height?: number };
|
|
|
|
const Dragger = React.forwardRef<unknown, DraggerProps>(({ style, height, ...restProps }, ref) => (
|
|
<Upload ref={ref} {...restProps} type="drag" style={{ ...style, height }} />
|
|
));
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
Dragger.displayName = 'Dragger';
|
|
}
|
|
|
|
export default Dragger;
|