UNPKG

tdesign-react

Version:
26 lines (25 loc) 908 B
import React, { MouseEvent } from 'react'; import { CommonDisplayFileProps } from '../interface'; import { UploadFile, TdUploadProps } from '../type'; import { UploadDragEvents } from '../hooks/useDrag'; export interface ImageFlowListProps extends CommonDisplayFileProps { uploadFiles?: (toFiles?: UploadFile[]) => void; cancelUpload?: (context: { e: MouseEvent<HTMLElement>; file?: UploadFile; }) => void; dragEvents: UploadDragEvents; disabled?: boolean; isBatchUpload?: boolean; draggable?: boolean; showThumbnail?: boolean; onPreview?: TdUploadProps['onPreview']; uploadButton?: TdUploadProps['uploadButton']; cancelUploadButton?: TdUploadProps['cancelUploadButton']; showImageFileName?: boolean; } declare const ImageFlowList: { (props: ImageFlowListProps): React.JSX.Element; displayName: string; }; export default ImageFlowList;