@hw-component/form 1.9.34 → 1.9.35

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.
@@ -193,7 +193,7 @@ var useHForm = (function () {
193
193
  var oldFormVal = form.getFieldsValue(true);
194
194
  var formatVal = formatValuesFn(oldFormVal, "outputValue");
195
195
  var newValue = formatValuesFn(values);
196
- var clearData = clearObj(formatVal);
196
+ var clearData = clearObj(_objectSpread(_objectSpread({}, formatVal), oldFormVal));
197
197
  form.setFieldsValue(_objectSpread(_objectSpread({}, clearData), newValue));
198
198
  },
199
199
  validateFields: function validateFields(nameList) {
@@ -196,7 +196,7 @@ var useHForm = (function () {
196
196
  var oldFormVal = form.getFieldsValue(true);
197
197
  var formatVal = formatValuesFn(oldFormVal, "outputValue");
198
198
  var newValue = formatValuesFn(values);
199
- var clearData = clearObj(formatVal);
199
+ var clearData = clearObj(_objectSpread(_objectSpread({}, formatVal), oldFormVal));
200
200
  form.setFieldsValue(_objectSpread(_objectSpread({}, clearData), newValue));
201
201
  },
202
202
  validateFields: function validateFields(nameList) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.9.34",
3
+ "version": "1.9.35",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -176,7 +176,10 @@ export default () => {
176
176
  const oldFormVal=form.getFieldsValue(true);
177
177
  const formatVal=formatValuesFn(oldFormVal, "outputValue")
178
178
  const newValue = formatValuesFn(values);
179
- const clearData=clearObj(formatVal);
179
+ const clearData=clearObj({
180
+ ...formatVal,
181
+ ...oldFormVal
182
+ });
180
183
  form.setFieldsValue({
181
184
  ...clearData,
182
185
  ...newValue