antd
Version:
An enterprise-class UI design language and React components implementation
24 lines (23 loc) • 935 B
TypeScript
import * as React from 'react';
import { UploadListProps, UploadFile, UploadListType } from './interface';
import { previewImage } from './utils';
import { ConfigConsumerProps } from '../config-provider';
export default class UploadList extends React.Component<UploadListProps, any> {
static defaultProps: {
listType: UploadListType;
progressAttr: {
strokeWidth: number;
showInfo: boolean;
};
showRemoveIcon: boolean;
showDownloadIcon: boolean;
showPreviewIcon: boolean;
previewFile: typeof previewImage;
};
componentDidUpdate(): void;
handlePreview: (file: UploadFile<any>, e: React.SyntheticEvent<HTMLElement, Event>) => void;
handleDownload: (file: UploadFile<any>) => void;
handleClose: (file: UploadFile<any>) => void;
renderUploadList: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}