@kmkf-fe-packages/services-components 0.6.3-alpha.23 → 0.6.3-alpha.24

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.
@@ -30,7 +30,7 @@ declare class InterceptStatus implements ComponentInterface {
30
30
  label: string;
31
31
  value: string;
32
32
  }[];
33
- filterFn: (value: string) => (i: Record) => boolean;
33
+ filterFn: (value: string[]) => (i: Record) => boolean;
34
34
  };
35
35
  }
36
36
  export default InterceptStatus;
@@ -54,13 +54,16 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
54
54
  _defineProperty(this, "filterConfig", function (item) {
55
55
  return {
56
56
  type: item.type,
57
- id: item.id,
57
+ id: "".concat(item.id, "_interceptStatus"),
58
58
  name: "".concat(item.name, "-\u62E6\u622A\u72B6\u6001"),
59
59
  filterComponentType: 'MultipleSelect',
60
60
  options: _this.expressInterceptInstance.getStatusOptions() || [],
61
61
  filterFn: function filterFn(value) {
62
62
  return function (i) {
63
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id));
63
+ var _value$map, _value$map$flat;
64
+ return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
65
+ return v === null || v === void 0 ? void 0 : v.split(',');
66
+ })) === null || _value$map === void 0 ? void 0 : (_value$map$flat = _value$map.flat()) === null || _value$map$flat === void 0 ? void 0 : _value$map$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'interceptStatus'));
64
67
  };
65
68
  }
66
69
  };
@@ -30,7 +30,7 @@ declare class InterceptType implements ComponentInterface {
30
30
  label: string;
31
31
  value: string;
32
32
  }[];
33
- filterFn: (value: string) => (i: Record) => boolean;
33
+ filterFn: (value: string[]) => (i: Record) => boolean;
34
34
  };
35
35
  }
36
36
  export default InterceptType;
@@ -54,13 +54,16 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
54
54
  _defineProperty(this, "filterConfig", function (item) {
55
55
  return {
56
56
  type: item.type,
57
- id: item.id,
57
+ id: "".concat(item.id, "_interceptType"),
58
58
  name: "".concat(item.name, "-\u62E6\u622A\u7C7B\u578B"),
59
59
  filterComponentType: 'MultipleSelect',
60
60
  options: _this.expressInterceptInstance.getTypeOptions() || [],
61
61
  filterFn: function filterFn(value) {
62
62
  return function (i) {
63
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id));
63
+ var _value$map, _value$map$flat;
64
+ return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
65
+ return v === null || v === void 0 ? void 0 : v.split(',');
66
+ })) === null || _value$map === void 0 ? void 0 : (_value$map$flat = _value$map.flat()) === null || _value$map$flat === void 0 ? void 0 : _value$map$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'interceptType'));
64
67
  };
65
68
  }
66
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.6.3-alpha.23",
3
+ "version": "0.6.3-alpha.24",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "6b7dbc678e62a4fcd3c5359cff1bd72fdf75be37"
43
+ "gitHead": "c8704b7ead2b58f4c5295bd5927b35fa87f35415"
44
44
  }