@kmkf-fe-packages/services-components 2.0.79-beta.68 → 2.0.79-beta.70

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,16 +22,12 @@ declare class SkxIdInputSelect implements ComponentInterface {
22
22
  renderExport: (value: any, record: Record) => any;
23
23
  editRender: (p: any) => React.JSX.Element;
24
24
  filterConfig: (item: ColumnConfig) => {
25
- searchDefaultConditions: {
26
- in: "in";
27
- anylike: "anylike";
28
- };
25
+ searchDefaultConditions: "in";
29
26
  type: string;
30
27
  id: string;
31
28
  name: string;
32
- filterComponentType: "SelectInput";
33
- filterFn: (value: string) => (i: Record) => boolean;
34
- formatFilterValue: (value: any) => any;
29
+ filterComponentType: "Input";
30
+ formatFilterValue: (input: string) => string | string[];
35
31
  };
36
32
  }
37
33
  export default SkxIdInputSelect;
@@ -9,7 +9,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
9
9
  import React from "react";
10
10
  import GetFormItem from "../../GetFormItem";
11
11
  import ItemView from "../../../commonComponents/ItemView";
12
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
12
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
13
13
  import { SkxIdInputSelect as IdInputSelect } from "@kmkf-fe-packages/basic-components";
14
14
  import { SYMBOL, batchInput } from "../../../constant";
15
15
  var typeMap = {
@@ -102,30 +102,14 @@ var SkxIdInputSelect = /*#__PURE__*/_createClass(function SkxIdInputSelect(optio
102
102
  });
103
103
  });
104
104
  _defineProperty(this, "filterConfig", function (item) {
105
- var _typeMap$item$type;
106
105
  return {
107
- searchDefaultConditions: {
108
- in: SYMBOL.in,
109
- anylike: SYMBOL.anylike
110
- },
106
+ searchDefaultConditions: SYMBOL.in,
111
107
  type: item.type,
112
- id: "".concat(item.id, "_").concat((_typeMap$item$type = typeMap[item.type]) === null || _typeMap$item$type === void 0 ? void 0 : _typeMap$item$type.key),
113
- // 过滤组件id
108
+ id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
114
109
  name: item.name,
115
- // 过滤组件名称
116
- filterComponentType: "SelectInput",
117
- filterFn: function filterFn(value) {
118
- return function (i) {
119
- var _typeMap$item$type2;
120
- return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$item$type2 = typeMap[item.type]) === null || _typeMap$item$type2 === void 0 ? void 0 : _typeMap$item$type2.key)).includes(value);
121
- };
122
- },
123
- formatFilterValue: function formatFilterValue(value) {
124
- if (["in", "anylike"].includes(value.type)) {
125
- return batchInput(value.keywords);
126
- } else {
127
- return value;
128
- }
110
+ filterComponentType: "Input",
111
+ formatFilterValue: function formatFilterValue(input) {
112
+ return batchInput(input);
129
113
  }
130
114
  };
131
115
  });
@@ -16,6 +16,7 @@ import V from "voca";
16
16
  var typeMap = {};
17
17
  var BasicSelectOption = /*#__PURE__*/_createClass(function BasicSelectOption(options) {
18
18
  var _this = this,
19
+ _options$componentCon,
19
20
  _this$options;
20
21
  _classCallCheck(this, BasicSelectOption);
21
22
  _defineProperty(this, "name", void 0);
@@ -113,7 +114,7 @@ var BasicSelectOption = /*#__PURE__*/_createClass(function BasicSelectOption(opt
113
114
  this.canSort = true;
114
115
  this.children = [];
115
116
  this.dataType = "string";
116
- this.options = componentsOptionsMapping[this.type] || [];
117
+ this.options = ((_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.options) || componentsOptionsMapping[this.type] || [];
117
118
  this.optionsMap = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.reduce(function (prev, next) {
118
119
  prev[next.value] = next.label;
119
120
  return prev;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.79-beta.68",
3
+ "version": "2.0.79-beta.70",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.0.79-beta.66",
25
- "@kmkf-fe-packages/kmkf-utils": "2.0.79-beta.66",
24
+ "@kmkf-fe-packages/basic-components": "2.0.79-beta.70",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.0.79-beta.70",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "a15cd00d9e35ff317a57964f95b41a866df6c51e",
44
+ "gitHead": "8acb05239b19468bafe20be922dcd1b86e58c55f",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }