@kmkf-fe-packages/services-components 0.28.2-rc.12 → 0.28.2-rc.14

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.
@@ -4,9 +4,9 @@ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
4
  import TrajectoryCompany from "./trajectoryCompany";
5
5
  import TrajectoryCode from "./trajectoryCode";
6
6
  import TrajectorySnapshot from "./trajectorySnapshot";
7
- import TrajectoryStatus from '../LogisticsTrajectory/trajectoryStatus';
8
- import TrajectoryLastLogisticsInfo from '../LogisticsTrajectory/trajectoryLastLogisticsInfo';
9
- import TrajectoryLastUpdateTime from '../LogisticsTrajectory/trajectoryLastUpdateTime';
7
+ import TrajectoryStatus from './trajectoryStatus';
8
+ import TrajectoryLastLogisticsInfo from './trajectoryLastLogisticsInfo';
9
+ import TrajectoryLastUpdateTime from './trajectoryLastUpdateTime';
10
10
  import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
11
11
  declare class LogisticsMoreTrajectory implements ComponentInterface {
12
12
  name: string;
@@ -13,9 +13,9 @@ import { LogisticsMoreTrajectory as MoreTrajectory } from "@kmkf-fe-packages/bas
13
13
  import TrajectoryCompany from "./trajectoryCompany";
14
14
  import TrajectoryCode from "./trajectoryCode";
15
15
  import TrajectorySnapshot from "./trajectorySnapshot";
16
- import TrajectoryStatus from "../LogisticsTrajectory/trajectoryStatus";
17
- import TrajectoryLastLogisticsInfo from "../LogisticsTrajectory/trajectoryLastLogisticsInfo";
18
- import TrajectoryLastUpdateTime from "../LogisticsTrajectory/trajectoryLastUpdateTime";
16
+ import TrajectoryStatus from "./trajectoryStatus";
17
+ import TrajectoryLastLogisticsInfo from "./trajectoryLastLogisticsInfo";
18
+ import TrajectoryLastUpdateTime from "./trajectoryLastUpdateTime";
19
19
  import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
20
20
  import GetFormItem from "../GetFormItem";
21
21
  import ItemView from "../../commonComponents/ItemView";
@@ -133,11 +133,13 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
133
133
  }));
134
134
  this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
135
135
  name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
136
- id: "".concat(this.id, "_trajectoryMoreLastLogisticsInfo")
136
+ id: "".concat(this.id, "_trajectoryMoreLastLogisticsInfo"),
137
+ parentId: "".concat(this.id)
137
138
  }));
138
139
  this.trajectoryLastUpdateTime = new TrajectoryLastUpdateTime(_objectSpread(_objectSpread({}, options), {}, {
139
140
  name: "".concat(this.name, "-\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
140
- id: "".concat(this.id, "_trajectoryMoreLastUpdateTime")
141
+ id: "".concat(this.id, "_trajectoryMoreLastUpdateTime"),
142
+ parentId: "".concat(this.id)
141
143
  }));
142
144
  this.isCombinationComponent = true;
143
145
  this.canSort = false;
@@ -0,0 +1,30 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class TrajectoryLastLogisticsInfo implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ parentId: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ align: ALignType;
12
+ width: number;
13
+ isCombinationComponent: boolean;
14
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface["dataType"];
18
+ constructor(options: PickOption & {
19
+ parentId: string;
20
+ });
21
+ renderCode: (record: any, w?: number) => React.JSX.Element;
22
+ renderClient: () => null;
23
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
24
+ renderLog: (r: Record) => React.JSX.Element | null;
25
+ getComponentValue: (r: Record) => any;
26
+ renderExport: (value: string, record: Record) => any;
27
+ editRender: () => null;
28
+ filterConfig: (item: ColumnConfig) => never[];
29
+ }
30
+ export default TrajectoryLastLogisticsInfo;
@@ -0,0 +1,76 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from "react";
9
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
+ var TrajectoryLastLogisticsInfo = /*#__PURE__*/_createClass(function TrajectoryLastLogisticsInfo(options) {
11
+ var _this = this;
12
+ _classCallCheck(this, TrajectoryLastLogisticsInfo);
13
+ _defineProperty(this, "name", void 0);
14
+ _defineProperty(this, "id", void 0);
15
+ _defineProperty(this, "parentId", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "rules", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "align", void 0);
21
+ _defineProperty(this, "width", void 0);
22
+ _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "formField", void 0);
24
+ _defineProperty(this, "canSort", void 0);
25
+ _defineProperty(this, "children", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "renderCode", function (record) {
28
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
29
+ var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ onClick: function onClick(e) {
32
+ return e.stopPropagation();
33
+ }
34
+ }, list.length ? list.map(function (item, index) {
35
+ return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.trajectoryLastLogisticsInfo);
36
+ }) : "--");
37
+ });
38
+ _defineProperty(this, "renderClient", function () {
39
+ return null;
40
+ });
41
+ _defineProperty(this, "renderPc", function (value, record) {
42
+ return _this.renderCode(record || [], 700);
43
+ });
44
+ _defineProperty(this, "renderLog", function (r) {
45
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
46
+ return _this.renderPc(undefined, r);
47
+ });
48
+ _defineProperty(this, "getComponentValue", function (r) {
49
+ return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
50
+ });
51
+ _defineProperty(this, "renderExport", function (value, record) {
52
+ var _this$getComponentVal;
53
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
54
+ });
55
+ _defineProperty(this, "editRender", function () {
56
+ return null;
57
+ });
58
+ _defineProperty(this, "filterConfig", function (item) {
59
+ return [];
60
+ });
61
+ this.name = options.name;
62
+ this.id = options.id;
63
+ this.parentId = options.parentId;
64
+ this.sortField = options.id;
65
+ this.formField = options.id;
66
+ this.type = options.type;
67
+ this.componentConfig = options.componentConfig;
68
+ this.align = "left";
69
+ this.width = 200;
70
+ this.isCombinationComponent = false;
71
+ this.canSort = false;
72
+ this.dataType = "string";
73
+ this.children = [];
74
+ this.rules = [];
75
+ });
76
+ export default TrajectoryLastLogisticsInfo;
@@ -0,0 +1,30 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class TrajectoryLastUpdateTime implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ parentId: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ align: ALignType;
12
+ width: number;
13
+ isCombinationComponent: boolean;
14
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface["dataType"];
18
+ constructor(options: PickOption & {
19
+ parentId: string;
20
+ });
21
+ renderCode: (record: any, w?: number) => React.JSX.Element;
22
+ renderClient: () => null;
23
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
24
+ renderLog: (r: Record) => React.JSX.Element | null;
25
+ getComponentValue: (r: Record) => any;
26
+ renderExport: (value: string, record: Record) => any;
27
+ editRender: () => null;
28
+ filterConfig: (item: ColumnConfig) => never[];
29
+ }
30
+ export default TrajectoryLastUpdateTime;
@@ -0,0 +1,76 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from "react";
9
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
+ var TrajectoryLastUpdateTime = /*#__PURE__*/_createClass(function TrajectoryLastUpdateTime(options) {
11
+ var _this = this;
12
+ _classCallCheck(this, TrajectoryLastUpdateTime);
13
+ _defineProperty(this, "name", void 0);
14
+ _defineProperty(this, "id", void 0);
15
+ _defineProperty(this, "parentId", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "rules", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "align", void 0);
21
+ _defineProperty(this, "width", void 0);
22
+ _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "formField", void 0);
24
+ _defineProperty(this, "canSort", void 0);
25
+ _defineProperty(this, "children", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "renderCode", function (record) {
28
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
29
+ var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ onClick: function onClick(e) {
32
+ return e.stopPropagation();
33
+ }
34
+ }, list.length ? list.map(function (item, index) {
35
+ return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.trajectoryLastUpdateTime);
36
+ }) : "--");
37
+ });
38
+ _defineProperty(this, "renderClient", function () {
39
+ return null;
40
+ });
41
+ _defineProperty(this, "renderPc", function (value, record) {
42
+ return _this.renderCode(record || [], 700);
43
+ });
44
+ _defineProperty(this, "renderLog", function (r) {
45
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
46
+ return _this.renderPc(undefined, r);
47
+ });
48
+ _defineProperty(this, "getComponentValue", function (r) {
49
+ return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
50
+ });
51
+ _defineProperty(this, "renderExport", function (value, record) {
52
+ var _this$getComponentVal;
53
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
54
+ });
55
+ _defineProperty(this, "editRender", function () {
56
+ return null;
57
+ });
58
+ _defineProperty(this, "filterConfig", function (item) {
59
+ return [];
60
+ });
61
+ this.name = options.name;
62
+ this.id = options.id;
63
+ this.parentId = options.parentId;
64
+ this.sortField = options.id;
65
+ this.formField = options.id;
66
+ this.type = options.type;
67
+ this.componentConfig = options.componentConfig;
68
+ this.align = "left";
69
+ this.width = 200;
70
+ this.isCombinationComponent = false;
71
+ this.canSort = false;
72
+ this.dataType = "string";
73
+ this.children = [];
74
+ this.rules = [];
75
+ });
76
+ export default TrajectoryLastUpdateTime;
@@ -0,0 +1,33 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class trajectoryStatus implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ parentId: string;
8
+ sortField: string;
9
+ type: string;
10
+ rules: any[];
11
+ componentConfig: ComponentInterface["componentConfig"];
12
+ align: ALignType;
13
+ width: number;
14
+ isCombinationComponent: boolean;
15
+ formField: string;
16
+ canSort: boolean;
17
+ children: ComponentInterface[];
18
+ dataType: ComponentInterface["dataType"];
19
+ expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
20
+ constructor(options: PickOption & {
21
+ parentId: string;
22
+ });
23
+ renderStatus: (record: any, w?: number) => React.JSX.Element;
24
+ renderCode: (record: any, w?: number) => React.JSX.Element;
25
+ renderClient: () => null;
26
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
27
+ renderLog: (r: Record) => React.JSX.Element | null;
28
+ getComponentValue: (r: Record) => any;
29
+ renderExport: (value: string, record: Record) => any;
30
+ editRender: () => null;
31
+ filterConfig: (item: ColumnConfig) => never[];
32
+ }
33
+ export default trajectoryStatus;
@@ -0,0 +1,94 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from "react";
9
+ import { isNull, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
10
+ import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
11
+ var trajectoryStatus = /*#__PURE__*/_createClass(function trajectoryStatus(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, trajectoryStatus);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "parentId", void 0);
17
+ _defineProperty(this, "sortField", void 0);
18
+ _defineProperty(this, "type", void 0);
19
+ _defineProperty(this, "rules", void 0);
20
+ _defineProperty(this, "componentConfig", void 0);
21
+ _defineProperty(this, "align", void 0);
22
+ _defineProperty(this, "width", void 0);
23
+ _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "formField", void 0);
25
+ _defineProperty(this, "canSort", void 0);
26
+ _defineProperty(this, "children", void 0);
27
+ _defineProperty(this, "dataType", void 0);
28
+ _defineProperty(this, "expressInterceptInstance", void 0);
29
+ _defineProperty(this, "renderStatus", function (record) {
30
+ var _this$expressIntercep;
31
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
32
+ var value = (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record['trajectoryStatus'])];
33
+ return /*#__PURE__*/React.createElement("div", {
34
+ onClick: function onClick(e) {
35
+ return e.stopPropagation();
36
+ }
37
+ }, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
38
+ modelWidth: w,
39
+ interceptCompany: record['trajectoryCompany'],
40
+ interceptCode: record['trajectoryCode'],
41
+ interceptSenderMobile: record['trajectoryPhone']
42
+ }) : null);
43
+ });
44
+ _defineProperty(this, "renderCode", function (record) {
45
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
46
+ var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
47
+ return /*#__PURE__*/React.createElement("div", {
48
+ onClick: function onClick(e) {
49
+ return e.stopPropagation();
50
+ }
51
+ }, list.length ? list.map(function (item, index) {
52
+ return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.renderStatus(item));
53
+ }) : "--");
54
+ });
55
+ _defineProperty(this, "renderClient", function () {
56
+ return null;
57
+ });
58
+ _defineProperty(this, "renderPc", function (value, record) {
59
+ return _this.renderCode(record || [], 700);
60
+ });
61
+ _defineProperty(this, "renderLog", function (r) {
62
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
63
+ return _this.renderPc(undefined, r);
64
+ });
65
+ _defineProperty(this, "getComponentValue", function (r) {
66
+ return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
67
+ });
68
+ _defineProperty(this, "renderExport", function (value, record) {
69
+ var _this$getComponentVal;
70
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
71
+ });
72
+ _defineProperty(this, "editRender", function () {
73
+ return null;
74
+ });
75
+ _defineProperty(this, "filterConfig", function (item) {
76
+ return [];
77
+ });
78
+ this.name = options.name;
79
+ this.id = options.id;
80
+ this.parentId = options.parentId;
81
+ this.sortField = options.id;
82
+ this.formField = options.id;
83
+ this.type = options.type;
84
+ this.componentConfig = options.componentConfig;
85
+ this.align = "left";
86
+ this.width = 200;
87
+ this.isCombinationComponent = false;
88
+ this.canSort = false;
89
+ this.dataType = "string";
90
+ this.children = [];
91
+ this.rules = [];
92
+ this.expressInterceptInstance = ExpressInterceptData.getInstance();
93
+ });
94
+ export default trajectoryStatus;
@@ -16,7 +16,8 @@ declare class PaymentTid implements ComponentInterface {
16
16
  dataType: ComponentInterface['dataType'];
17
17
  constructor(options: PickOption);
18
18
  renderClient: (record: any) => React.JSX.Element | null;
19
- renderPc: (value: unknown, record: any) => React.JSX.Element;
19
+ copyHandle: (text: string) => void;
20
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
20
21
  renderLog: (r: Record) => React.JSX.Element | null;
21
22
  getComponentValue: (r: Record) => any;
22
23
  renderExport: (value: string) => string;
@@ -6,10 +6,13 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
8
  import React from 'react';
9
+ import { message } from 'antd';
9
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
11
+ import { CopyOutlined } from '@ant-design/icons';
10
12
  import GetFormItem from "../GetFormItem";
11
13
  import ItemView from "../../commonComponents/ItemView";
12
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import copy from 'copy-to-clipboard';
13
16
  import { SYMBOL } from "../../constant";
14
17
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
15
18
  var _this = this;
@@ -34,9 +37,29 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
34
37
  value: record === null || record === void 0 ? void 0 : record[_this.id]
35
38
  }) : null;
36
39
  });
40
+ _defineProperty(this, "copyHandle", function (text) {
41
+ copy(text);
42
+ message.success('复制成功');
43
+ });
37
44
  _defineProperty(this, "renderPc", function (value, record) {
38
- var _record$_this$id;
39
- return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
45
+ if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
46
+ return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
47
+ }
48
+ return /*#__PURE__*/React.createElement("span", {
49
+ onClick: function onClick(e) {
50
+ return e.stopPropagation();
51
+ }
52
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
53
+ onClick: function onClick(e) {
54
+ _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
55
+ e.stopPropagation();
56
+ }
57
+ }, /*#__PURE__*/React.createElement("span", {
58
+ style: {
59
+ paddingLeft: '4px',
60
+ cursor: 'pointer'
61
+ }
62
+ }, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
40
63
  });
41
64
  _defineProperty(this, "renderLog", function (r) {
42
65
  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.28.2-rc.12",
3
+ "version": "0.28.2-rc.14",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "94e64aecdfee39a5cad3b8391d11fb8208aa09aa",
40
+ "gitHead": "67e4702764966e9b482d5d47b8baf7803b0462ca",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }