nsc-react-component 2.13.2 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base/upload/Upload.d.ts +7 -3
- package/lib/base/upload/Upload.js +87 -49
- package/lib/base/upload/Upload.js.map +1 -1
- package/lib/base/upload/index.d.ts +2 -45
- package/lib/base/upload/index.js +379 -362
- package/lib/base/upload/index.js.map +1 -1
- package/lib/page/BasePage/index.module.less +1 -1
- package/package.json +1 -1
- package/lib/base/upload/index copy.d.ts +0 -18
- package/lib/base/upload/index copy.js +0 -351
- package/lib/base/upload/index copy.js.map +0 -1
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import NscUploadDragger from "./Dragger";
|
|
4
|
-
interface IUploadProps extends UploadProps {
|
|
5
|
-
sliceSize?: number;
|
|
6
|
-
maxSize?: number | boolean;
|
|
7
|
-
onProcess?: (process: any) => void;
|
|
8
|
-
onComplete?: ({ file, fileId, status }: {
|
|
9
|
-
file: any;
|
|
10
|
-
fileId: any;
|
|
11
|
-
status: any;
|
|
12
|
-
}) => void;
|
|
13
|
-
allowFileSuffix?: Array<String>;
|
|
14
|
-
useDefaultList?: boolean;
|
|
15
|
-
fileCard?: boolean;
|
|
16
|
-
onListChange?: any;
|
|
17
|
-
checkSameFile?: boolean;
|
|
18
|
-
requestConfig?: any;
|
|
19
|
-
newVersion?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export default class NscUpload extends React.PureComponent<IUploadProps, any> {
|
|
22
|
-
static Dragger: typeof NscUploadDragger;
|
|
23
|
-
state: {
|
|
24
|
-
fileList: any[];
|
|
25
|
-
viewId: string;
|
|
26
|
-
fileListStore: any[];
|
|
27
|
-
fileNames: any[];
|
|
28
|
-
};
|
|
29
|
-
uploadIngSize: number;
|
|
30
|
-
uploadSize: number;
|
|
31
|
-
uploadIngList: any[];
|
|
32
|
-
componentDidMount(): void;
|
|
33
|
-
convertFileList(list?: Array<Object>): void;
|
|
34
|
-
componentDidUpdate(preProps: any, preState: any): void;
|
|
35
|
-
getFileList(): any[];
|
|
36
|
-
setFileList(fileList: Array<Object>): void;
|
|
37
|
-
beforeUpload(file: any, ofileList: any): Promise<boolean>;
|
|
38
|
-
checkFileType(file: any): boolean;
|
|
39
|
-
onProcess({ percent, file }: any): void;
|
|
40
|
-
onComplete(files: any): Promise<void>;
|
|
41
|
-
customRequest: (options: any) => Promise<void>;
|
|
42
|
-
onDelete(file: any): void;
|
|
43
|
-
render(): React.ReactNode;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
1
|
+
declare const NscUpload: any;
|
|
2
|
+
export default NscUpload;
|