@kmkf-fe-packages/services-components 0.7.3-alpha.10 → 0.7.3-alpha.11

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.
@@ -24,7 +24,7 @@ declare class Alipay implements ComponentInterface {
24
24
  renderExport: () => null;
25
25
  editRender: (value: any) => React.JSX.Element;
26
26
  filterConfig: (item: ColumnConfig) => {
27
- searchDefaultConditions: "in";
27
+ searchDefaultConditions: "eq";
28
28
  type: string;
29
29
  id: string;
30
30
  name: string;
@@ -36,7 +36,7 @@ declare class Logistics implements ComponentInterface {
36
36
  };
37
37
  filterFn: (value: string) => (i: Record) => boolean;
38
38
  } | {
39
- searchDefaultConditions: "in";
39
+ searchDefaultConditions: "like";
40
40
  type: string;
41
41
  id: string;
42
42
  name: string;
@@ -59,7 +59,7 @@ declare class Logistics implements ComponentInterface {
59
59
  };
60
60
  filterFn: (value: string) => (i: Record) => boolean;
61
61
  } | {
62
- searchDefaultConditions: "in";
62
+ searchDefaultConditions: "like";
63
63
  type: string;
64
64
  id: string;
65
65
  name: string;
@@ -39,7 +39,7 @@ declare class Ordinary implements ComponentInterface {
39
39
  filterComponentType: "Rate";
40
40
  filterFn: (value: string) => (i: Record) => boolean;
41
41
  } | {
42
- searchDefaultConditions: "in";
42
+ searchDefaultConditions: "like";
43
43
  type: string;
44
44
  id: string;
45
45
  name: string;
@@ -39,7 +39,7 @@ declare class Logistics implements ComponentInterface {
39
39
  renderExport: () => null;
40
40
  editRender: (value: any) => React.JSX.Element;
41
41
  filterConfig: (item: ColumnConfig) => ({
42
- searchDefaultConditions: "in";
42
+ searchDefaultConditions: "eq";
43
43
  type: string;
44
44
  id: string;
45
45
  name: string;
@@ -52,6 +52,21 @@ declare class Logistics implements ComponentInterface {
52
52
  name: string;
53
53
  filterComponentType: "Rate";
54
54
  filterFn: (value: string) => (i: Record) => boolean;
55
+ } | {
56
+ searchDefaultConditions: "like";
57
+ type: string;
58
+ id: string;
59
+ name: string;
60
+ filterComponentType: "Input";
61
+ filterFn: (value: string) => (i: Record) => boolean;
62
+ } | {
63
+ searchDefaultConditions: "in";
64
+ type: string;
65
+ id: string;
66
+ name: string;
67
+ filterComponentType: "Input";
68
+ filterFn: (value: string) => (i: Record) => boolean;
69
+ formatFilterValue: (input: string) => string[];
55
70
  } | {
56
71
  searchDefaultConditions: "in";
57
72
  type: string;
@@ -72,6 +87,7 @@ declare class Logistics implements ComponentInterface {
72
87
  name: string;
73
88
  filterComponentType: "Date";
74
89
  filterFn: (value: string[]) => (i: Record) => boolean;
90
+ formatFilterValue: (val: any[]) => number[] | undefined;
75
91
  })[];
76
92
  }
77
93
  export default Logistics;
@@ -41,7 +41,7 @@ declare class ReturnLogistics implements ComponentInterface {
41
41
  };
42
42
  filterFn: (value: string) => (i: Record) => boolean;
43
43
  } | {
44
- searchDefaultConditions: "in";
44
+ searchDefaultConditions: "like";
45
45
  type: string;
46
46
  id: string;
47
47
  name: string;
@@ -28,6 +28,7 @@ declare class Submitter implements ComponentInterface {
28
28
  value: string;
29
29
  }[] | undefined;
30
30
  };
31
+ formatFilterValue: (val: Array<string>) => (string | undefined)[];
31
32
  filterFn: (value: string) => (i: Record) => boolean;
32
33
  };
33
34
  }
@@ -52,6 +52,14 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
52
52
  props: {
53
53
  options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList
54
54
  },
55
+ formatFilterValue: function formatFilterValue(val) {
56
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
57
+ var _this$effects2, _this$effects2$userLi, _this$effects2$userLi2;
58
+ return (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : (_this$effects2$userLi = _this$effects2.userList) === null || _this$effects2$userLi === void 0 ? void 0 : (_this$effects2$userLi2 = _this$effects2$userLi.find(function (u) {
59
+ return u.value === v;
60
+ })) === null || _this$effects2$userLi2 === void 0 ? void 0 : _this$effects2$userLi2.label;
61
+ });
62
+ },
55
63
  filterFn: function filterFn(value) {
56
64
  return function (i) {
57
65
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.3-alpha.10",
3
+ "version": "0.7.3-alpha.11",
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": "9cea615899fe576d73a86cf1872fcde20441b245"
43
+ "gitHead": "6e10cd973edb4b9161bc8b0016c8211c211a05e0"
44
44
  }