UNPKG

antd-meck

Version:

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

43 lines (42 loc) 1.46 kB
/// <reference types="react" /> import * as React from 'react'; import Dragger from './Dragger'; import { UploadProps } from './interface'; export { UploadProps }; export default class Upload extends React.Component<UploadProps, any> { static Dragger: typeof Dragger; static defaultProps: { prefixCls: string; type: string; multiple: boolean; action: string; data: {}; accept: string; beforeUpload: () => boolean; showUploadList: boolean; listType: string; className: string; disabled: boolean; supportServerRender: boolean; }; recentUploadStatus: boolean | PromiseLike<any>; progressTimer: any; private upload; constructor(props: any); componentWillUnmount(): void; onStart: (file: any) => void; autoUpdateProgress(_: any, file: any): void; onSuccess: (response: any, file: any) => void; onProgress: (e: any, file: any) => void; onError: (error: any, response: any, file: any) => void; handleRemove(file: any): void; handleManualRemove: (file: any) => void; onChange: (info: any) => void; componentWillReceiveProps(nextProps: any): void; onFileDrop: (e: any) => void; beforeUpload: (file: any, fileList: any) => boolean | PromiseLike<any>; clearProgressTimer(): void; saveUpload: (node: any) => void; renderUploadList: (locale: any) => JSX.Element; render(): JSX.Element; }