UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

28 lines (27 loc) 961 B
import { FunctionComponent } from 'react'; import { DraggableProvided } from 'react-beautiful-dnd'; import AttachmentFile from '../data-set/AttachmentFile'; import { AttachmentListType } from './Attachment'; export interface ItemProps { attachment: AttachmentFile; onUpload: (attachment: AttachmentFile, attachmentUUID: string) => void; onHistory?: (attachment: AttachmentFile, attachmentUUID: string) => void; onPreview?: () => void; onRemove: (attachment: AttachmentFile) => Promise<any> | undefined; readOnly?: boolean; isCard?: boolean; prefixCls?: string; pictureWidth?: number; restCount?: number; index?: number; listType?: AttachmentListType; bucketName?: string; bucketDirectory?: string; storageCode?: string; attachmentUUID: string; provided: DraggableProvided; draggable?: boolean; hidden?: boolean; } declare const Item: FunctionComponent<ItemProps>; export default Item;