@hw-component/form 1.9.81 → 1.9.82
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/hooks.js
CHANGED
|
@@ -46,7 +46,8 @@ var useModifyProps = function useModifyProps(_ref) {
|
|
|
46
46
|
};
|
|
47
47
|
}, []);
|
|
48
48
|
var saveOldParams = function saveOldParams() {
|
|
49
|
-
saveOldParamsObj.old = dialogForm.
|
|
49
|
+
saveOldParamsObj.old = dialogForm.outputValues();
|
|
50
|
+
console.log(saveOldParamsObj.old, "saveOldParamsObj.old");
|
|
50
51
|
};
|
|
51
52
|
useEffect(function () {
|
|
52
53
|
setModalVisible(visible);
|
|
@@ -80,6 +81,7 @@ var useModifyProps = function useModifyProps(_ref) {
|
|
|
80
81
|
setModalTitle(changeTitle);
|
|
81
82
|
}
|
|
82
83
|
var relChangeInitVal = autoClear ? changeInitialValues : _objectSpread(_objectSpread({}, saveOldParamsObj.old), changeInitialValues);
|
|
84
|
+
console.log(relChangeInitVal, "relChangeInitVal");
|
|
83
85
|
setInitValue(relChangeInitVal);
|
|
84
86
|
setModalVisible(true);
|
|
85
87
|
};
|
package/lib/DialogForm/hooks.js
CHANGED
|
@@ -47,7 +47,8 @@ var useModifyProps = function useModifyProps(_ref) {
|
|
|
47
47
|
};
|
|
48
48
|
}, []);
|
|
49
49
|
var saveOldParams = function saveOldParams() {
|
|
50
|
-
saveOldParamsObj.old = dialogForm.
|
|
50
|
+
saveOldParamsObj.old = dialogForm.outputValues();
|
|
51
|
+
console.log(saveOldParamsObj.old, "saveOldParamsObj.old");
|
|
51
52
|
};
|
|
52
53
|
React.useEffect(function () {
|
|
53
54
|
setModalVisible(visible);
|
|
@@ -81,6 +82,7 @@ var useModifyProps = function useModifyProps(_ref) {
|
|
|
81
82
|
setModalTitle(changeTitle);
|
|
82
83
|
}
|
|
83
84
|
var relChangeInitVal = autoClear ? changeInitialValues : _objectSpread(_objectSpread({}, saveOldParamsObj.old), changeInitialValues);
|
|
85
|
+
console.log(relChangeInitVal, "relChangeInitVal");
|
|
84
86
|
setInitValue(relChangeInitVal);
|
|
85
87
|
setModalVisible(true);
|
|
86
88
|
};
|
package/package.json
CHANGED
|
@@ -29,7 +29,8 @@ export const useModifyProps = ({
|
|
|
29
29
|
};
|
|
30
30
|
}, []);
|
|
31
31
|
const saveOldParams = () => {
|
|
32
|
-
saveOldParamsObj.old = dialogForm.
|
|
32
|
+
saveOldParamsObj.old = dialogForm.outputValues();
|
|
33
|
+
console.log(saveOldParamsObj.old,"saveOldParamsObj.old")
|
|
33
34
|
};
|
|
34
35
|
useEffect(() => {
|
|
35
36
|
setModalVisible(visible);
|
|
@@ -65,6 +66,7 @@ export const useModifyProps = ({
|
|
|
65
66
|
const relChangeInitVal = autoClear
|
|
66
67
|
? changeInitialValues
|
|
67
68
|
: { ...saveOldParamsObj.old, ...changeInitialValues };
|
|
69
|
+
console.log(relChangeInitVal,"relChangeInitVal")
|
|
68
70
|
setInitValue(relChangeInitVal);
|
|
69
71
|
setModalVisible(true);
|
|
70
72
|
};
|