ygd
Version:
An enterprise-class UI design language and React-based implementation
21 lines (20 loc) • 820 B
TypeScript
import * as React from 'react';
import { UploadListProps, UploadFile, UploadListType } from './interface';
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;
showPreviewIcon: boolean;
};
handleClose: (file: UploadFile) => void;
handlePreview: (file: UploadFile, e: React.SyntheticEvent<HTMLElement, Event>) => void;
previewFile: (file: Blob | File, callback: Function) => any;
componentDidUpdate(): void;
renderUploadList: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}