Files
icehrm/web/node_modules/antd/lib/upload/UploadList.d.ts
2020-05-20 18:47:29 +02:00

26 lines
1.1 KiB
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;
handleIconRender: (file: UploadFile<any>) => {} | null | undefined;
handleActionIconRender: (customIcon: React.ReactNode, callback: () => void, title?: string | undefined) => JSX.Element;
renderUploadList: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}