Latest updates from IceHrmPro
This commit is contained in:
46
web/node_modules/antd/es/upload/Upload.d.ts
generated
vendored
Normal file
46
web/node_modules/antd/es/upload/Upload.d.ts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import * as React from 'react';
|
||||
import Dragger from './Dragger';
|
||||
import { RcFile, UploadProps, UploadState, UploadFile, UploadLocale, UploadChangeParam, UploadType, UploadListType } from './interface';
|
||||
import { T } from './utils';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
export { UploadProps };
|
||||
declare class Upload extends React.Component<UploadProps, UploadState> {
|
||||
static Dragger: typeof Dragger;
|
||||
static defaultProps: {
|
||||
type: UploadType;
|
||||
multiple: boolean;
|
||||
action: string;
|
||||
data: {};
|
||||
accept: string;
|
||||
beforeUpload: typeof T;
|
||||
showUploadList: boolean;
|
||||
listType: UploadListType;
|
||||
className: string;
|
||||
disabled: boolean;
|
||||
supportServerRender: boolean;
|
||||
};
|
||||
static getDerivedStateFromProps(nextProps: UploadProps): {
|
||||
fileList: UploadFile<any>[];
|
||||
} | null;
|
||||
recentUploadStatus: boolean | PromiseLike<any>;
|
||||
progressTimer: any;
|
||||
upload: any;
|
||||
constructor(props: UploadProps);
|
||||
componentWillUnmount(): void;
|
||||
saveUpload: (node: any) => void;
|
||||
onStart: (file: RcFile) => void;
|
||||
onSuccess: (response: any, file: UploadFile<any>, xhr: any) => void;
|
||||
onProgress: (e: {
|
||||
percent: number;
|
||||
}, file: UploadFile<any>) => void;
|
||||
onError: (error: Error, response: any, file: UploadFile<any>) => void;
|
||||
handleRemove: (file: UploadFile<any>) => void;
|
||||
onChange: (info: UploadChangeParam<UploadFile<any>>) => void;
|
||||
onFileDrop: (e: React.DragEvent<HTMLDivElement>) => void;
|
||||
beforeUpload: (file: RcFile, fileList: RcFile[]) => boolean | PromiseLike<void>;
|
||||
clearProgressTimer(): void;
|
||||
renderUploadList: (locale: UploadLocale) => JSX.Element;
|
||||
renderUpload: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export default Upload;
|
||||
Reference in New Issue
Block a user