mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
1719748a29
* chore: eslint add consistent-type-imports * fix avatar * Update Item.tsx
17 lines
518 B
TypeScript
17 lines
518 B
TypeScript
import * as React from 'react';
|
|
import Upload from './Upload';
|
|
import type { UploadProps } from './interface';
|
|
|
|
export type DraggerProps = UploadProps & { height?: number };
|
|
|
|
const InternalDragger: React.ForwardRefRenderFunction<unknown, DraggerProps> = (
|
|
{ style, height, ...restProps },
|
|
ref,
|
|
) => <Upload ref={ref} {...restProps} type="drag" style={{ ...style, height }} />;
|
|
|
|
const Dragger = React.forwardRef(InternalDragger) as React.FC<DraggerProps>;
|
|
|
|
Dragger.displayName = 'Dragger';
|
|
|
|
export default Dragger;
|