UNPKG

choerodon-ui

Version:

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

34 lines (33 loc) 1.17 kB
import { FunctionComponent, ReactNode } from 'react'; import AttachmentFile from '../data-set/AttachmentFile'; import { AttachmentListType } from './Attachment'; export interface AttachmentListProps { prefixCls: string; attachments?: AttachmentFile[]; listType?: AttachmentListType; pictureWidth: number; limit?: number; onUpload: (attachment: AttachmentFile, attachmentUUID: string) => void; onHistory?: (attachment: AttachmentFile, attachmentUUID: string) => void; onRemove: (attachment: AttachmentFile) => Promise<any> | undefined; onOrderChange: (props: { attachments: AttachmentFile[]; }) => void; onFetchAttachments: (props: { bucketName?: string; bucketDirectory?: string; storageCode?: string; attachmentUUID: string; }) => void; onPreview: () => void; bucketName?: string; bucketDirectory?: string; storageCode?: string; attachmentUUID?: string; uploadButton?: ReactNode; sortable?: boolean; readOnly?: boolean; showHistory?: boolean; } declare const AttachmentList: FunctionComponent<AttachmentListProps>; export default AttachmentList;