choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
31 lines (30 loc) • 1.01 kB
TypeScript
import React 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) => 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;
showSize?: boolean;
attachmentUUID?: string;
provided: DraggableProvided;
draggable?: boolean;
hidden?: boolean;
isPublic?: boolean;
previewTarget?: string;
}
declare const _default: React.FunctionComponent<ItemProps>;
export default _default;