@ioca/react 1.2.2 → 1.2.4
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/css/index.css +1 -1
- package/lib/css/index.css.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/index.d.ts +9 -1
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -299,6 +299,7 @@ interface IEditor {
|
|
|
299
299
|
placeholder?: string;
|
|
300
300
|
width?: string | number;
|
|
301
301
|
height?: string | number;
|
|
302
|
+
autosize?: boolean;
|
|
302
303
|
controls?: string[] | "simple" | "all";
|
|
303
304
|
onInput?: (html: string, e: FormEvent<HTMLDivElement>) => void;
|
|
304
305
|
}
|
|
@@ -495,6 +496,7 @@ declare namespace message {
|
|
|
495
496
|
declare function useModal(): {
|
|
496
497
|
open: (props: IModal) => void;
|
|
497
498
|
update: (props: IModal) => void;
|
|
499
|
+
close: () => void;
|
|
498
500
|
};
|
|
499
501
|
|
|
500
502
|
interface IModal extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
@@ -513,6 +515,7 @@ interface IModal extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
|
513
515
|
okButtonProps?: IButton;
|
|
514
516
|
cancelButtonProps?: IButton;
|
|
515
517
|
footerLeft?: ReactNode;
|
|
518
|
+
keepDOM?: boolean;
|
|
516
519
|
disableEsc?: boolean;
|
|
517
520
|
onVisibleChange?: (visible: boolean) => void;
|
|
518
521
|
onOk?: () => void | Promise<any>;
|
|
@@ -598,13 +601,17 @@ interface IProgress extends Omit<BaseInput, "value" | "hideClear" | "onChange">
|
|
|
598
601
|
value?: number;
|
|
599
602
|
precision?: number;
|
|
600
603
|
height?: number;
|
|
604
|
+
circleSize?: number;
|
|
605
|
+
lineWidth?: number;
|
|
601
606
|
size?: number;
|
|
602
607
|
barClass?: string;
|
|
603
608
|
draggable?: boolean;
|
|
609
|
+
vertical?: boolean;
|
|
604
610
|
type?: "line" | "circle";
|
|
605
611
|
className?: string;
|
|
606
612
|
style?: CSSProperties;
|
|
607
613
|
renderCursor?: (value: number) => ReactNode;
|
|
614
|
+
onDraggingChange?: (dragging: boolean) => void;
|
|
608
615
|
onChange?: (value: number) => void;
|
|
609
616
|
}
|
|
610
617
|
|
|
@@ -905,12 +912,13 @@ interface IUpload extends Omit<BaseInput, "ref">, Omit<InputHTMLAttributes<HTMLI
|
|
|
905
912
|
renderItem?: (file: IFile, i: number) => ReactNode;
|
|
906
913
|
onFilesChange?: (files: IFile[], changed: IFile[], e?: ChangeEvent<HTMLInputElement>) => void;
|
|
907
914
|
onRemove?: (file: IFile) => void;
|
|
908
|
-
onUpload?: (
|
|
915
|
+
onUpload?: (result: any) => void | Promise<any>;
|
|
909
916
|
}
|
|
910
917
|
interface IFile extends File {
|
|
911
918
|
id: string;
|
|
912
919
|
instance?: File;
|
|
913
920
|
src?: string;
|
|
921
|
+
url?: string;
|
|
914
922
|
[key: string]: any;
|
|
915
923
|
}
|
|
916
924
|
interface RefUpload {
|