@kmkf-fe-packages/services-components 0.5.2-alpha.7 → 0.5.2-alpha.8

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.
@@ -22,6 +22,7 @@ declare class Express implements ComponentInterface {
22
22
  id: string;
23
23
  name: string;
24
24
  filterComponentType: "MultipleSelect";
25
+ options: any[];
25
26
  filterFn: (value: string) => (i: Record) => boolean;
26
27
  };
27
28
  }
@@ -61,6 +61,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
61
61
  id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
62
62
  name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
63
63
  filterComponentType: 'MultipleSelect',
64
+ options: _this.expressDateInstance.getExpressData() || [],
64
65
  filterFn: function filterFn(value) {
65
66
  return function (i) {
66
67
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
@@ -27,10 +27,7 @@ declare class JstLogistics implements ComponentInterface {
27
27
  id: string;
28
28
  name: string;
29
29
  filterComponentType: "MultipleSelect";
30
- options: {
31
- label: string | number;
32
- value: string | number;
33
- }[] | undefined;
30
+ options: any[];
34
31
  filterFn: (value: string) => (i: Record) => any;
35
32
  })[];
36
33
  }
@@ -68,7 +68,6 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
68
68
  });
69
69
  });
70
70
  _defineProperty(this, "filterConfig", function (item) {
71
- var _this$expressDateInst;
72
71
  return [{
73
72
  id: "".concat(item.id, "_logisticsCode"),
74
73
  name: "jst\u7269\u6D41\u5355\u53F7",
@@ -82,12 +81,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
82
81
  id: "".concat(item.id, "_logisticsCompany"),
83
82
  name: "jst\u7269\u6D41\u516C\u53F8",
84
83
  filterComponentType: 'MultipleSelect',
85
- options: (_this$expressDateInst = _this.expressDateInstance.getExpressData()) === null || _this$expressDateInst === void 0 ? void 0 : _this$expressDateInst.map(function (item) {
86
- return {
87
- label: item.label,
88
- value: item.value
89
- };
90
- }),
84
+ options: _this.expressDateInstance.getExpressData() || [],
91
85
  filterFn: function filterFn(value) {
92
86
  return function (i) {
93
87
  var _ref;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.5.2-alpha.7",
3
+ "version": "0.5.2-alpha.8",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@kmkf-fe-packages/basic-components": "^0.5.2-alpha.0",
25
- "@kmkf-fe-packages/kmkf-utils": "^0.5.2-alpha.5"
25
+ "@kmkf-fe-packages/kmkf-utils": "^0.5.2-alpha.8"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@ant-design/icons": "^4.7.0",
@@ -35,5 +35,5 @@
35
35
  "gitHooks": {
36
36
  "pre-commit": "lint-staged"
37
37
  },
38
- "gitHead": "b744d4a75a02e842de968d4aff71cdec71908147"
38
+ "gitHead": "cf25f40d0d3240c1569c6969c78c1f555b17f378"
39
39
  }