@kmkf-fe-packages/services-components 0.13.0-beta.1 → 0.13.0-beta.3

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.
@@ -21,11 +21,18 @@ declare class CommonMultiStatus implements ComponentInterface {
21
21
  renderExport: (value: any, record: any) => any;
22
22
  editRender: (p: any) => React.JSX.Element;
23
23
  filterConfig: (item: ColumnConfig) => {
24
- searchDefaultConditions: "like";
24
+ searchDefaultConditions: "like" | "in";
25
25
  type: string;
26
26
  id: string;
27
27
  name: string;
28
- filterComponentType: "Input";
28
+ filterComponentType: "MultipleSelect" | "Input";
29
+ props: {
30
+ options: any[] | undefined;
31
+ fieldNames: {
32
+ label: string;
33
+ value: string;
34
+ };
35
+ };
29
36
  filterFn: (value: string) => (i: Record) => boolean;
30
37
  };
31
38
  }
@@ -162,13 +162,20 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
162
162
  });
163
163
  });
164
164
  _defineProperty(this, "filterConfig", function (item) {
165
- var _typeMap$_this$type18;
165
+ var _typeMap$_this$type18, _item$templateConfig;
166
166
  return {
167
- searchDefaultConditions: SYMBOL.like,
167
+ searchDefaultConditions: _this.type === 'WAREHOUSING_STATUS' ? SYMBOL.in : SYMBOL.like,
168
168
  type: item.type,
169
169
  id: "".concat(item.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.code),
170
170
  name: "".concat(_this.name),
171
- filterComponentType: 'Input',
171
+ filterComponentType: _this.type === 'WAREHOUSING_STATUS' ? 'MultipleSelect' : "Input",
172
+ props: {
173
+ options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
174
+ fieldNames: {
175
+ label: "label",
176
+ value: "value"
177
+ }
178
+ },
172
179
  filterFn: function filterFn(value) {
173
180
  return function (i) {
174
181
  var _typeMap$_this$type19;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.13.0-beta.1",
3
+ "version": "0.13.0-beta.3",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,7 +26,7 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.13.0-beta.1",
29
+ "@kmkf-fe-packages/basic-components": "^0.13.0-beta.2",
30
30
  "@kmkf-fe-packages/kmkf-utils": "^0.13.0-beta.1"
31
31
  },
32
32
  "peerDependencies": {
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "7c987839411d1247558e6d245d82c8a38e0608db"
43
+ "gitHead": "0d16dc5e928090661f25e7c110fd49527b6f66d9"
44
44
  }