x-ui-design 0.2.17 → 0.2.18
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties, DragEvent, ReactNode } from 'react';
|
|
1
2
|
import { DefaultProps, RuleType } from '.';
|
|
2
3
|
export interface RcFile extends File {
|
|
3
4
|
uid: string;
|
|
@@ -32,7 +33,7 @@ export type UploadProps = DefaultProps & {
|
|
|
32
33
|
accept?: string;
|
|
33
34
|
beforeUpload?: (file: RcFile, fileList: File[]) => boolean | Promise<boolean>;
|
|
34
35
|
onChange?: (info: UploadChangeParam) => void;
|
|
35
|
-
onDrop?: (event:
|
|
36
|
+
onDrop?: (event: DragEvent<HTMLDivElement>) => void;
|
|
36
37
|
listType?: string;
|
|
37
38
|
className?: string;
|
|
38
39
|
rootClassName?: string;
|
|
@@ -40,7 +41,7 @@ export type UploadProps = DefaultProps & {
|
|
|
40
41
|
onDownload?: (file: UploadFile<RuleType>) => void;
|
|
41
42
|
onRemove?: (file: UploadFile<RuleType>) => void | boolean | Promise<void | boolean>;
|
|
42
43
|
disabled?: boolean;
|
|
43
|
-
style?:
|
|
44
|
+
style?: CSSProperties;
|
|
44
45
|
customRequest?: (options: {
|
|
45
46
|
file: RcFile;
|
|
46
47
|
onSuccess: (response: RuleType) => void;
|
|
@@ -50,5 +51,5 @@ export type UploadProps = DefaultProps & {
|
|
|
50
51
|
withCredentials?: boolean;
|
|
51
52
|
openFileDialogOnClick?: boolean;
|
|
52
53
|
maxCount?: number;
|
|
53
|
-
children?:
|
|
54
|
+
children?: ReactNode;
|
|
54
55
|
};
|
package/lib/types/form.ts
CHANGED
package/lib/types/upload.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties, DragEvent, ReactNode } from 'react';
|
|
1
2
|
import { DefaultProps, RuleType } from '.';
|
|
2
3
|
|
|
3
4
|
export interface RcFile extends File {
|
|
@@ -43,7 +44,7 @@ export type UploadProps = DefaultProps & {
|
|
|
43
44
|
accept?: string;
|
|
44
45
|
beforeUpload?: (file: RcFile, fileList: File[]) => boolean | Promise<boolean>;
|
|
45
46
|
onChange?: (info: UploadChangeParam) => void;
|
|
46
|
-
onDrop?: (event:
|
|
47
|
+
onDrop?: (event: DragEvent<HTMLDivElement>) => void;
|
|
47
48
|
listType?: string;
|
|
48
49
|
className?: string;
|
|
49
50
|
rootClassName?: string;
|
|
@@ -53,7 +54,7 @@ export type UploadProps = DefaultProps & {
|
|
|
53
54
|
file: UploadFile<RuleType>
|
|
54
55
|
) => void | boolean | Promise<void | boolean>;
|
|
55
56
|
disabled?: boolean;
|
|
56
|
-
style?:
|
|
57
|
+
style?: CSSProperties;
|
|
57
58
|
customRequest?: (options: {
|
|
58
59
|
file: RcFile;
|
|
59
60
|
onSuccess: (response: RuleType) => void;
|
|
@@ -63,5 +64,5 @@ export type UploadProps = DefaultProps & {
|
|
|
63
64
|
withCredentials?: boolean;
|
|
64
65
|
openFileDialogOnClick?: boolean;
|
|
65
66
|
maxCount?: number;
|
|
66
|
-
children?:
|
|
67
|
+
children?: ReactNode;
|
|
67
68
|
};
|