@pisell/materials 1.0.229 → 1.0.231
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.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/hooks/useGenScroll.js +1 -1
- package/es/components/table/index.js +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/hooks/useGenScroll.js +1 -1
- package/lib/components/table/index.js +0 -1
- package/package.json +1 -1
|
@@ -146,6 +146,6 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
146
146
|
sort?: SortType | undefined;
|
|
147
147
|
mode: "" | "localStorage" | "remote";
|
|
148
148
|
currentViewMode: ModeType;
|
|
149
|
-
}) => ("
|
|
149
|
+
}) => ("column_setting" | "gallery_setting" | "filter_setting" | "view_mode" | "group_by" | "order_by")[];
|
|
150
150
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
151
151
|
export {};
|
|
@@ -8,7 +8,7 @@ var useGenScroll = function useGenScroll(params) {
|
|
|
8
8
|
return {
|
|
9
9
|
x: (propsScroll === null || propsScroll === void 0 ? void 0 : propsScroll.x) || columns.reduce(function (p, c) {
|
|
10
10
|
return p + (c.width || 250);
|
|
11
|
-
}, 0),
|
|
11
|
+
}, 0) || 2000,
|
|
12
12
|
y: (propsScroll === null || propsScroll === void 0 ? void 0 : propsScroll.y) || Math.max(wrapHeight - 48 - 50 - 24, 100),
|
|
13
13
|
scrollToFirstRowOnChange: propsScroll === null || propsScroll === void 0 ? void 0 : propsScroll.scrollToFirstRowOnChange
|
|
14
14
|
};
|
|
@@ -206,7 +206,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
206
206
|
});
|
|
207
207
|
useEffect(function () {
|
|
208
208
|
// 当前视图变更时重置form tableSetting 及 筛选项默认值全部重置
|
|
209
|
-
form.resetFields();
|
|
209
|
+
// form.resetFields();
|
|
210
210
|
form.setFieldsValue(initialValuesRef.current);
|
|
211
211
|
}, [currentViewMode]);
|
|
212
212
|
useEffect(function () {
|
|
@@ -146,6 +146,6 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
146
146
|
sort?: SortType | undefined;
|
|
147
147
|
mode: "" | "localStorage" | "remote";
|
|
148
148
|
currentViewMode: ModeType;
|
|
149
|
-
}) => ("
|
|
149
|
+
}) => ("column_setting" | "gallery_setting" | "filter_setting" | "view_mode" | "group_by" | "order_by")[];
|
|
150
150
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
151
151
|
export {};
|
|
@@ -30,7 +30,7 @@ var useGenScroll = (params) => {
|
|
|
30
30
|
return {
|
|
31
31
|
x: (propsScroll == null ? void 0 : propsScroll.x) || columns.reduce((p, c) => {
|
|
32
32
|
return p + (c.width || 250);
|
|
33
|
-
}, 0),
|
|
33
|
+
}, 0) || 2e3,
|
|
34
34
|
y: (propsScroll == null ? void 0 : propsScroll.y) || Math.max(wrapHeight - 48 - 50 - 24, 100),
|
|
35
35
|
scrollToFirstRowOnChange: propsScroll == null ? void 0 : propsScroll.scrollToFirstRowOnChange
|
|
36
36
|
};
|
|
@@ -224,7 +224,6 @@ var GridView = (0, import_model.Provider)(
|
|
|
224
224
|
return wrapRef.current;
|
|
225
225
|
});
|
|
226
226
|
(0, import_react.useEffect)(() => {
|
|
227
|
-
form.resetFields();
|
|
228
227
|
form.setFieldsValue(initialValuesRef.current);
|
|
229
228
|
}, [currentViewMode]);
|
|
230
229
|
(0, import_react.useEffect)(() => {
|