@hw-component/form 1.9.81 → 1.9.83

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.
@@ -46,7 +46,8 @@ var useModifyProps = function useModifyProps(_ref) {
46
46
  };
47
47
  }, []);
48
48
  var saveOldParams = function saveOldParams() {
49
- saveOldParamsObj.old = dialogForm.getFieldsValue(true);
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
  };
@@ -68,6 +68,7 @@ var HRangePicker = function HRangePicker(_ref) {
68
68
  }
69
69
  });
70
70
  var hasKeys = Object.keys(resultObj).length !== 0;
71
+ console.log(initValue, dateMapKeys, valueName, resultObj, "resultObjresultObjresultObj");
71
72
  return _defineProperty({}, valueName, hasKeys ? resultObj : null);
72
73
  },
73
74
  outputValue: function outputValue(item, _outputValue) {
@@ -47,7 +47,8 @@ var useModifyProps = function useModifyProps(_ref) {
47
47
  };
48
48
  }, []);
49
49
  var saveOldParams = function saveOldParams() {
50
- saveOldParamsObj.old = dialogForm.getFieldsValue(true);
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
  };
@@ -71,6 +71,7 @@ var HRangePicker = function HRangePicker(_ref) {
71
71
  }
72
72
  });
73
73
  var hasKeys = Object.keys(resultObj).length !== 0;
74
+ console.log(initValue, dateMapKeys, valueName, resultObj, "resultObjresultObjresultObj");
74
75
  return _defineProperty({}, valueName, hasKeys ? resultObj : null);
75
76
  },
76
77
  outputValue: function outputValue(item, _outputValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.9.81",
3
+ "version": "1.9.83",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,8 @@ export const useModifyProps = ({
29
29
  };
30
30
  }, []);
31
31
  const saveOldParams = () => {
32
- saveOldParamsObj.old = dialogForm.getFieldsValue(true);
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
  };
@@ -61,6 +61,7 @@ const HRangePicker: React.FC<HRangePickerProps> = ({
61
61
  }
62
62
  });
63
63
  const hasKeys = Object.keys(resultObj).length !== 0;
64
+ console.log(initValue,dateMapKeys,valueName,resultObj,"resultObjresultObjresultObj")
64
65
  return {
65
66
  [valueName as string]: hasKeys ? resultObj : null,
66
67
  };