@kmkf-fe-packages/services-components 0.7.5-alpha.16 → 0.7.5-alpha.18

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.
@@ -16,8 +16,8 @@ declare class CommonDataTime implements ComponentInterface {
16
16
  constructor(options: PickOption);
17
17
  getValue: (value: string) => string;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
19
- renderPc: (value: any, record: Record) => React.JSX.Element;
20
- renderLog: (r: Record) => React.JSX.Element | null;
19
+ renderPc: (value: any, record: Record) => any;
20
+ renderLog: (r: Record) => any;
21
21
  getComponentValue: (r: Record) => any;
22
22
  renderExport: (value: any, record: Record) => string;
23
23
  editRender: () => null;
@@ -37,10 +37,16 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
37
37
  }) : null;
38
38
  });
39
39
  _defineProperty(this, "renderPc", function (value, record) {
40
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
41
- return /*#__PURE__*/React.createElement("span", null, "--");
42
- }
43
- return /*#__PURE__*/React.createElement("span", null, moment(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]).format('YYYY-MM-DD HH:mm:ss'));
40
+ var _record;
41
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
42
+ // if (record?.[`${this.id}`] === undefined) {
43
+ // return <span>--</span>;
44
+ // }
45
+ // return (
46
+ // <span>
47
+ // {moment(record?.[`${this.id}`]).format('YYYY-MM-DD HH:mm:ss')}
48
+ // </span>
49
+ // );
44
50
  });
45
51
  _defineProperty(this, "renderLog", function (r) {
46
52
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
@@ -37,6 +37,7 @@ declare class InterceptStatus implements ComponentInterface {
37
37
  value: string;
38
38
  }[];
39
39
  };
40
+ formatFilterValue: (value: string[]) => string[];
40
41
  filterFn: (value: string[]) => (i: Record) => boolean;
41
42
  };
42
43
  }
@@ -77,12 +77,18 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
77
77
  props: {
78
78
  options: _this.expressInterceptInstance.getStatusOptions() || []
79
79
  },
80
+ formatFilterValue: function formatFilterValue(value) {
81
+ var _value$map;
82
+ return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
83
+ return v === null || v === void 0 ? void 0 : v.split(",");
84
+ })) === null || _value$map === void 0 ? void 0 : _value$map.flat();
85
+ },
80
86
  filterFn: function filterFn(value) {
81
87
  return function (i) {
82
- var _value$map, _value$map$flat;
83
- return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
88
+ var _value$map2, _value$map2$flat;
89
+ return value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (v) {
84
90
  return v === null || v === void 0 ? void 0 : v.split(",");
85
- })) === 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, "interceptLogisticsStatus"));
91
+ })) === null || _value$map2 === void 0 ? void 0 : (_value$map2$flat = _value$map2.flat()) === null || _value$map2$flat === void 0 ? void 0 : _value$map2$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsStatus"));
86
92
  };
87
93
  }
88
94
  };
@@ -35,6 +35,7 @@ declare class InterceptType implements ComponentInterface {
35
35
  value: string;
36
36
  }[];
37
37
  };
38
+ formatFilterValue: (value: string[]) => string[];
38
39
  filterFn: (value: string[]) => (i: Record) => boolean;
39
40
  };
40
41
  }
@@ -64,12 +64,18 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
64
64
  props: {
65
65
  options: _this.expressInterceptInstance.getTypeOptions() || []
66
66
  },
67
+ formatFilterValue: function formatFilterValue(value) {
68
+ var _value$map;
69
+ return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
70
+ return v === null || v === void 0 ? void 0 : v.split(",");
71
+ })) === null || _value$map === void 0 ? void 0 : _value$map.flat();
72
+ },
67
73
  filterFn: function filterFn(value) {
68
74
  return function (i) {
69
- var _value$map, _value$map$flat;
70
- return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
75
+ var _value$map2, _value$map2$flat;
76
+ return value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (v) {
71
77
  return v === null || v === void 0 ? void 0 : v.split(",");
72
- })) === 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"));
78
+ })) === null || _value$map2 === void 0 ? void 0 : (_value$map2$flat = _value$map2.flat()) === null || _value$map2$flat === void 0 ? void 0 : _value$map2$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptType"));
73
79
  };
74
80
  }
75
81
  };
@@ -14,8 +14,8 @@ declare class AlipayTime implements ComponentInterface {
14
14
  children: ComponentInterface[];
15
15
  constructor(options: PickOption);
16
16
  renderClient: (record: Record) => React.JSX.Element | null;
17
- renderPc: (value: unknown, record: Record) => React.JSX.Element;
18
- renderLog: (r: Record) => React.JSX.Element | null;
17
+ renderPc: (value: unknown, record: Record) => any;
18
+ renderLog: (r: Record) => any;
19
19
  getComponentValue: (r: Record) => any;
20
20
  renderExport: (value: string) => string | null;
21
21
  editRender: () => React.JSX.Element;
@@ -34,12 +34,16 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
34
34
  }) : null;
35
35
  });
36
36
  _defineProperty(this, "renderPc", function (value, record) {
37
- if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
38
- return /*#__PURE__*/React.createElement("span", null, "--");
39
- }
40
- return /*#__PURE__*/React.createElement("span", {
41
- className: "pointer"
42
- }, record !== null && record !== void 0 && record[_this.id] ? moment(+(record === null || record === void 0 ? void 0 : record[_this.id])).format('YYYY-MM-DD HH:mm:ss') : '--');
37
+ var _record;
38
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
39
+ // if (record?.[this.id] === undefined) {
40
+ // return <span>--</span>;
41
+ // }
42
+ // return (
43
+ // <span className="pointer">
44
+ // {record?.[this.id] ? moment(+record?.[this.id]).format('YYYY-MM-DD HH:mm:ss') : '--'}
45
+ // </span>
46
+ // );
43
47
  });
44
48
  _defineProperty(this, "renderLog", function (r) {
45
49
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.5-alpha.16",
3
+ "version": "0.7.5-alpha.18",
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": "797ab05bd66793c2571502f49983950d262dbc58"
43
+ "gitHead": "d3068f8affe3de33da088cc82d385e90cc9084c6"
44
44
  }