@pisell/materials 1.0.414 → 1.0.415

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.
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
167
167
  sort?: SortType | undefined;
168
168
  mode: "" | "localStorage" | "remote";
169
169
  currentViewMode: ModeType;
170
- }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
170
+ }) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
171
171
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
172
172
  export declare const stringify: (obj: Record<string, any>) => string;
173
173
  export {};
@@ -29,6 +29,13 @@ var formatApiParams = function formatApiParams(params, type) {
29
29
  var _url = (params === null || params === void 0 ? void 0 : params.url) || (defaultUrl === null || defaultUrl === void 0 ? void 0 : defaultUrl[type]);
30
30
  var _params = _objectSpread({}, params);
31
31
  delete _params.url;
32
+
33
+ // 删除无用数据
34
+ if (type !== 'export') {
35
+ _params === null || _params === void 0 ? true : delete _params.shipping_status;
36
+ _params === null || _params === void 0 ? true : delete _params.payment_status;
37
+ _params === null || _params === void 0 ? true : delete _params.status;
38
+ }
32
39
  return {
33
40
  url: _url,
34
41
  params: _objectSpread({}, _params)
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
167
167
  sort?: SortType | undefined;
168
168
  mode: "" | "localStorage" | "remote";
169
169
  currentViewMode: ModeType;
170
- }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
170
+ }) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
171
171
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
172
172
  export declare const stringify: (obj: Record<string, any>) => string;
173
173
  export {};
@@ -38,6 +38,11 @@ var formatApiParams = (params, type) => {
38
38
  const _url = (params == null ? void 0 : params.url) || (defaultUrl == null ? void 0 : defaultUrl[type]);
39
39
  let _params = { ...params };
40
40
  delete _params.url;
41
+ if (type !== "export") {
42
+ _params == null ? true : delete _params.shipping_status;
43
+ _params == null ? true : delete _params.payment_status;
44
+ _params == null ? true : delete _params.status;
45
+ }
41
46
  return {
42
47
  url: _url,
43
48
  params: { ..._params }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.414",
3
+ "version": "1.0.415",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",