@pisell/materials 1.0.224 → 1.0.225

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.
@@ -19,5 +19,4 @@
19
19
 
20
20
  .materials-grid-table-wrap {
21
21
  flex: 1;
22
- overflow: auto;
23
22
  }
@@ -194,9 +194,19 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
194
194
  return wrapRef.current;
195
195
  });
196
196
  useEffect(function () {
197
+ // 当前视图变更时重置form
197
198
  form.resetFields();
198
199
  form.setFieldsValue(initialValuesRef.current);
199
- }, [currentViewMode, JSON.stringify(columns)]);
200
+ }, [currentViewMode]);
201
+
202
+ // useEffect(() => {
203
+ // // 如果是编辑态修改columns时重置form
204
+ // if (props.__designMode === "design") {
205
+ // form.resetFields();
206
+ // form.setFieldsValue(initialValuesRef.current);
207
+ // }
208
+ // }, [JSON.stringify(columns), props.__designMode]);
209
+
200
210
  useEffect(function () {
201
211
  form.setFieldsValue(initialValuesRef.current);
202
212
  }, [propsFilter]);
@@ -19,5 +19,4 @@
19
19
 
20
20
  .materials-grid-table-wrap {
21
21
  flex: 1;
22
- overflow: auto;
23
22
  }
@@ -215,7 +215,7 @@ var GridView = (0, import_model.Provider)(
215
215
  (0, import_react.useEffect)(() => {
216
216
  form.resetFields();
217
217
  form.setFieldsValue(initialValuesRef.current);
218
- }, [currentViewMode, JSON.stringify(columns)]);
218
+ }, [currentViewMode]);
219
219
  (0, import_react.useEffect)(() => {
220
220
  form.setFieldsValue(initialValuesRef.current);
221
221
  }, [propsFilter]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.224",
3
+ "version": "1.0.225",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",