@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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/table/Table/index.less +0 -1
- package/es/components/table/index.js +11 -1
- package/lib/components/table/Table/index.less +0 -1
- package/lib/components/table/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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]);
|
|
@@ -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
|
|
218
|
+
}, [currentViewMode]);
|
|
219
219
|
(0, import_react.useEffect)(() => {
|
|
220
220
|
form.setFieldsValue(initialValuesRef.current);
|
|
221
221
|
}, [propsFilter]);
|