@hw-component/form 0.0.6-beta-v6 → 0.0.6-beta-v7
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/ModalForm.js +1 -1
- package/es/DialogForm/hooks.js +1 -1
- package/es/Form/hooks/useHForm.js +1 -1
- package/es/Form/modal.d.ts +1 -0
- package/lib/DialogForm/ModalForm.js +1 -1
- package/lib/DialogForm/hooks.js +1 -1
- package/lib/Form/hooks/useHForm.js +1 -1
- package/lib/Form/modal.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/DialogForm/ModalForm.tsx +1 -1
- package/src/components/DialogForm/hooks.ts +1 -1
- package/src/components/Form/hooks/useHForm.ts +1 -1
- package/src/components/Form/modal.ts +1 -0
|
@@ -69,7 +69,7 @@ var ModalForm = (function (_ref) {
|
|
|
69
69
|
onCancel: cancel,
|
|
70
70
|
confirmLoading: loading,
|
|
71
71
|
afterClose: function afterClose() {
|
|
72
|
-
currentForm.
|
|
72
|
+
currentForm.clear();
|
|
73
73
|
_afterClose === null || _afterClose === void 0 || _afterClose();
|
|
74
74
|
}
|
|
75
75
|
}, props), {}, {
|
package/es/DialogForm/hooks.js
CHANGED
|
@@ -46,7 +46,7 @@ var useModifyProps = function useModifyProps(_ref) {
|
|
|
46
46
|
setModalTitle = _useState10[1];
|
|
47
47
|
var onAfterClose = function onAfterClose() {
|
|
48
48
|
setTimeout(function () {
|
|
49
|
-
dialogForm.
|
|
49
|
+
dialogForm.clear();
|
|
50
50
|
afterClose === null || afterClose === void 0 || afterClose();
|
|
51
51
|
}, 100);
|
|
52
52
|
};
|
package/es/Form/modal.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export interface HFormInstance extends FormInstance {
|
|
|
99
99
|
addDispatchListener: AddDispatchListenerFn;
|
|
100
100
|
removeDispatchListener: (action?: ActionModal, fn?: argsFn) => void;
|
|
101
101
|
reload: PromiseFnResult;
|
|
102
|
+
clear: VoidFunction;
|
|
102
103
|
}
|
|
103
104
|
export interface ConnectConfigModal {
|
|
104
105
|
format?: Record<string, addFormatItemModal>;
|
|
@@ -72,7 +72,7 @@ var ModalForm = (function (_ref) {
|
|
|
72
72
|
onCancel: cancel,
|
|
73
73
|
confirmLoading: loading,
|
|
74
74
|
afterClose: function afterClose() {
|
|
75
|
-
currentForm.
|
|
75
|
+
currentForm.clear();
|
|
76
76
|
_afterClose === null || _afterClose === void 0 || _afterClose();
|
|
77
77
|
}
|
|
78
78
|
}, props), {}, {
|
package/lib/DialogForm/hooks.js
CHANGED
|
@@ -47,7 +47,7 @@ var useModifyProps = function useModifyProps(_ref) {
|
|
|
47
47
|
setModalTitle = _useState10[1];
|
|
48
48
|
var onAfterClose = function onAfterClose() {
|
|
49
49
|
setTimeout(function () {
|
|
50
|
-
dialogForm.
|
|
50
|
+
dialogForm.clear();
|
|
51
51
|
afterClose === null || afterClose === void 0 || afterClose();
|
|
52
52
|
}, 100);
|
|
53
53
|
};
|
package/lib/Form/modal.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export interface HFormInstance extends FormInstance {
|
|
|
99
99
|
addDispatchListener: AddDispatchListenerFn;
|
|
100
100
|
removeDispatchListener: (action?: ActionModal, fn?: argsFn) => void;
|
|
101
101
|
reload: PromiseFnResult;
|
|
102
|
+
clear: VoidFunction;
|
|
102
103
|
}
|
|
103
104
|
export interface ConnectConfigModal {
|
|
104
105
|
format?: Record<string, addFormatItemModal>;
|
package/package.json
CHANGED
|
@@ -147,6 +147,7 @@ export interface HFormInstance extends FormInstance {
|
|
|
147
147
|
addDispatchListener: AddDispatchListenerFn;
|
|
148
148
|
removeDispatchListener: (action?: ActionModal, fn?: argsFn) => void;
|
|
149
149
|
reload: PromiseFnResult;
|
|
150
|
+
clear:VoidFunction;
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
export interface ConnectConfigModal {
|