@hw-component/form 1.10.9 → 1.10.11
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/es/DialogForm/modal.d.ts +1 -1
- package/es/index.d.ts +1 -5
- package/es/index.js +1 -1
- package/lib/DialogForm/modal.d.ts +1 -1
- package/lib/index.d.ts +1 -5
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/components/DialogForm/modal.ts +1 -1
- package/src/components/index.tsx +1 -1
package/es/DialogForm/modal.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface DialogFormProps<P = any, T = any> extends Omit<RootProps, "onFi
|
|
|
33
33
|
configData?: HFormProps["configData"];
|
|
34
34
|
onFinish?: (values: T, params: P) => Promise<any>;
|
|
35
35
|
onCancel?: VoidFunction;
|
|
36
|
-
onOk?: (data
|
|
36
|
+
onOk?: (data?: T, params?: P) => boolean | void;
|
|
37
37
|
infoRequest?: (params: P) => Promise<T>;
|
|
38
38
|
autoClear?: boolean;
|
|
39
39
|
contentRender?: (dom: React.ReactNode, form: HDialogFormInstance, params: P) => React.ReactNode;
|
package/es/index.d.ts
CHANGED
|
@@ -32,8 +32,4 @@ export declare const HTrimInput: import("react").ForwardRefExoticComponent<impor
|
|
|
32
32
|
export declare const HTrimTextArea: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
|
33
33
|
export declare const HInputNumberGroup: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
|
34
34
|
export declare const HTagSelect: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
|
35
|
-
export declare const HTimeRangePicker:
|
|
36
|
-
Component: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
|
37
|
-
placeholder: ({ label }: import("./Form/modal").HItemProps) => string[];
|
|
38
|
-
requiredErrMsg: ({ label }: import("./Form/modal").HItemProps) => string;
|
|
39
|
-
};
|
|
35
|
+
export declare const HTimeRangePicker: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
package/es/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var HTrimInput = componentConfig.trimInput;
|
|
|
37
37
|
var HTrimTextArea = componentConfig.trimTextArea;
|
|
38
38
|
var HInputNumberGroup = componentConfig.inputNumberGroup.Component;
|
|
39
39
|
var HTagSelect = componentConfig.tagSelect;
|
|
40
|
-
var HTimeRangePicker = componentConfig.timeRangePicker;
|
|
40
|
+
var HTimeRangePicker = componentConfig.timeRangePicker.Component;
|
|
41
41
|
|
|
42
42
|
export { HButtonInput, HCascader, HCheckBox, HCheckboxGroup, HColorInput, HDatePicker, HDrawerForm, HInput, HInputNumber, HInputNumberGroup, HModalForm, HPageHandler, HRadioGroup, HRangePicker, HRichEditor, HSelect, HSelectInput, HSwitch, HTagSelect, HTextArea, HTimePicker, HTimeRangePicker, HTrimInput, HTrimTextArea, HUpload, HUrlUpload, HVerificationCodeInput };
|
|
43
43
|
// powered by hdj
|
|
@@ -33,7 +33,7 @@ export interface DialogFormProps<P = any, T = any> extends Omit<RootProps, "onFi
|
|
|
33
33
|
configData?: HFormProps["configData"];
|
|
34
34
|
onFinish?: (values: T, params: P) => Promise<any>;
|
|
35
35
|
onCancel?: VoidFunction;
|
|
36
|
-
onOk?: (data
|
|
36
|
+
onOk?: (data?: T, params?: P) => boolean | void;
|
|
37
37
|
infoRequest?: (params: P) => Promise<T>;
|
|
38
38
|
autoClear?: boolean;
|
|
39
39
|
contentRender?: (dom: React.ReactNode, form: HDialogFormInstance, params: P) => React.ReactNode;
|
package/lib/index.d.ts
CHANGED
|
@@ -32,8 +32,4 @@ export declare const HTrimInput: import("react").ForwardRefExoticComponent<impor
|
|
|
32
32
|
export declare const HTrimTextArea: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
|
33
33
|
export declare const HInputNumberGroup: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
|
34
34
|
export declare const HTagSelect: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
|
35
|
-
export declare const HTimeRangePicker:
|
|
36
|
-
Component: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
|
37
|
-
placeholder: ({ label }: import("./Form/modal").HItemProps) => string[];
|
|
38
|
-
requiredErrMsg: ({ label }: import("./Form/modal").HItemProps) => string;
|
|
39
|
-
};
|
|
35
|
+
export declare const HTimeRangePicker: import("react").ForwardRefExoticComponent<import("./Form/modal").HFormItemProps & import("react").RefAttributes<any>>;
|
package/lib/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var HTrimInput = config.default.trimInput;
|
|
|
38
38
|
var HTrimTextArea = config.default.trimTextArea;
|
|
39
39
|
var HInputNumberGroup = config.default.inputNumberGroup.Component;
|
|
40
40
|
var HTagSelect = config.default.tagSelect;
|
|
41
|
-
var HTimeRangePicker = config.default.timeRangePicker;
|
|
41
|
+
var HTimeRangePicker = config.default.timeRangePicker.Component;
|
|
42
42
|
|
|
43
43
|
exports.HForm = index.default;
|
|
44
44
|
exports.useHForm = useHForm.default;
|
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@ export interface DialogFormProps<P = any, T = any>
|
|
|
50
50
|
configData?: HFormProps["configData"];
|
|
51
51
|
onFinish?: (values: T, params: P) => Promise<any>;
|
|
52
52
|
onCancel?: VoidFunction;
|
|
53
|
-
onOk?: (data
|
|
53
|
+
onOk?: (data?: T, params?: P) => boolean | void;
|
|
54
54
|
infoRequest?: (params: P) => Promise<T>;
|
|
55
55
|
autoClear?: boolean;
|
|
56
56
|
contentRender?: (
|
package/src/components/index.tsx
CHANGED