UNPKG

@aimake/nanod

Version:

## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。

45 lines (44 loc) 1.68 kB
import * as React from 'react'; import Dragger from './Dragger'; import { UploadProps, UploadState, UploadFile, UploadLocale, UploadChangeParam } from './interface'; import { T } from './utils'; export { UploadProps }; export default class Upload extends React.Component<UploadProps, UploadState> { static Dragger: typeof Dragger; static defaultProps: { prefixCls: string; type: string; multiple: boolean; action: string; data: {}; accept: string; beforeUpload: typeof T; showUploadList: boolean; listType: string; className: string; disabled: boolean; supportServerRender: boolean; }; recentUploadStatus: boolean | PromiseLike<any>; progressTimer: any; private upload; constructor(props: UploadProps); componentWillUnmount(): void; onStart: (file: UploadFile) => void; autoUpdateProgress(_: any, file: UploadFile): void; onSuccess: (response: any, file: UploadFile) => void; onProgress: (e: { percent: number; }, file: UploadFile) => void; onError: (error: Error, response: any, file: UploadFile) => void; handleRemove(file: UploadFile): void; handleManualRemove: (file: UploadFile) => void; onChange: (info: UploadChangeParam) => void; componentWillReceiveProps(nextProps: UploadProps): void; onFileDrop: (e: React.DragEvent<HTMLDivElement>) => void; beforeUpload: (file: UploadFile, fileList: UploadFile[]) => boolean | PromiseLike<any>; clearProgressTimer(): void; saveUpload: (node: any) => void; renderUploadList: (locale: UploadLocale) => JSX.Element; render(): JSX.Element; }