@hw-component/form 1.10.36 → 1.10.38

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,9 +193,7 @@ var useHForm = (function () {
193
193
  resetFieldsInitValue: function resetFieldsInitValue() {
194
194
  var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
195
195
  var oldValue = form.getFieldsValue(true);
196
- var outputOldValue = formatValuesFn(oldValue, "outputValue");
197
- var changeVal = _objectSpread(_objectSpread({}, oldValue), outputOldValue);
198
- var keys = Object.keys(changeVal);
196
+ var keys = Object.keys(oldValue);
199
197
  var newVale = {};
200
198
  keys.forEach(function (key) {
201
199
  newVale[key] = undefined;
@@ -72,7 +72,6 @@ var useOptionsRequest = function useOptionsRequest(_ref) {
72
72
  }
73
73
  return params;
74
74
  };
75
- console.log(dispatchManual, "dispatchManual");
76
75
  var _useRequest = useRequest(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
77
76
  var requestParams,
78
77
  type,
@@ -196,9 +196,7 @@ var useHForm = (function () {
196
196
  resetFieldsInitValue: function resetFieldsInitValue() {
197
197
  var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
198
198
  var oldValue = form.getFieldsValue(true);
199
- var outputOldValue = formatValuesFn(oldValue, "outputValue");
200
- var changeVal = _objectSpread(_objectSpread({}, oldValue), outputOldValue);
201
- var keys = Object.keys(changeVal);
199
+ var keys = Object.keys(oldValue);
202
200
  var newVale = {};
203
201
  keys.forEach(function (key) {
204
202
  newVale[key] = undefined;
@@ -73,7 +73,6 @@ var useOptionsRequest = function useOptionsRequest(_ref) {
73
73
  }
74
74
  return params;
75
75
  };
76
- console.log(dispatchManual, "dispatchManual");
77
76
  var _useRequest = ahooks.useRequest(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
78
77
  var requestParams,
79
78
  type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.10.36",
3
+ "version": "1.10.38",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -178,9 +178,7 @@ export default () => {
178
178
  },
179
179
  resetFieldsInitValue: (values = {}) => {
180
180
  const oldValue = form.getFieldsValue(true);
181
- const outputOldValue=formatValuesFn(oldValue,"outputValue");
182
- const changeVal={...oldValue,...outputOldValue};
183
- const keys = Object.keys(changeVal);
181
+ const keys = Object.keys(oldValue);
184
182
  const newVale = {};
185
183
  keys.forEach((key) => {
186
184
  newVale[key] = undefined;
@@ -62,7 +62,6 @@ const useOptionsRequest = ({
62
62
  }
63
63
  return params;
64
64
  };
65
- console.log(dispatchManual,"dispatchManual")
66
65
  const {
67
66
  run: listRun,
68
67
  loading,
@@ -122,6 +122,18 @@ export default () => {
122
122
  {
123
123
  name:'time',
124
124
  label:"time",
125
+ type:'rangePicker',
126
+ itemProps:{
127
+ valueMap:{
128
+ start:"timeStart",
129
+ end:"timeEnd"
130
+ }
131
+ }
132
+ },
133
+ {
134
+ name:'time1',
135
+ label:"time1",
136
+ type:'rangePicker',
125
137
  render:()=>{
126
138
  return <TestItem/>
127
139
  }
@@ -131,22 +143,15 @@ export default () => {
131
143
  labelWidth={88}
132
144
  form={form}
133
145
  initialValues={{
134
- richEditor: "1312312",
135
- select:"1",
136
- deviceType:"1"
146
+ deviceType:1
137
147
  }}
138
148
  labelAlign={"left"}
139
149
  onValuesChange={(val) => {
140
150
  console.log(val, "onValuesChange");
141
151
  }}
142
152
  requiredMode
143
- request={(params) => {
144
- console.log(params, "ppppp");
145
- return new Promise<any>((resolve) => {
146
- setTimeout(() => {
147
- resolve(params);
148
- }, 3000);
149
- });
153
+ onFinish={(val)=>{
154
+ console.log(val);
150
155
  }}
151
156
  />
152
157
  </div>