UNPKG

choerodon-ui

Version:

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

40 lines (39 loc) 1.29 kB
import React, { ReactNode } from 'react'; import AttachmentFile from '../data-set/AttachmentFile'; import Record from '../data-set/Record'; import { AttachmentListType } from './Attachment'; export interface AttachmentListProps { prefixCls: string; attachments?: AttachmentFile[]; listType?: AttachmentListType; pictureWidth: number; limit?: number; onUpload: (attachment: AttachmentFile) => 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; isPublic?: boolean; }) => void; onPreview: () => void; previewTarget?: string; bucketName?: string; bucketDirectory?: string; storageCode?: string; attachmentUUID?: string; uploadButton?: ReactNode; sortable?: boolean; readOnly?: boolean; showHistory?: boolean; showSize?: boolean; isPublic?: boolean; record?: Record; } declare const _default: React.FunctionComponent<AttachmentListProps>; export default _default;