@kmkf-fe-packages/services-components 0.29.1-rc.3 → 0.29.1-rc.5
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.
- package/dist/esm/commonComponents/CopyText/index.d.ts +1 -0
- package/dist/esm/commonComponents/CopyText/index.js +4 -2
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +5 -2
- package/dist/esm/components/CommonTradeId/index.js +3 -1
- package/dist/esm/components/ExpressCode/index.js +3 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +4 -1
- package/dist/esm/components/Payment/PaymentTid.js +3 -1
- package/dist/esm/components/TradeId/index.js +3 -1
- package/package.json +2 -2
|
@@ -3,10 +3,12 @@ import { Typography } from 'antd';
|
|
|
3
3
|
var Paragraph = Typography.Paragraph;
|
|
4
4
|
export default (function (props) {
|
|
5
5
|
var text = props.text,
|
|
6
|
-
showText = props.showText
|
|
6
|
+
showText = props.showText,
|
|
7
|
+
style = props.style;
|
|
7
8
|
return /*#__PURE__*/React.createElement(Paragraph, {
|
|
8
9
|
copyable: {
|
|
9
10
|
text: text
|
|
10
|
-
}
|
|
11
|
+
},
|
|
12
|
+
style: style
|
|
11
13
|
}, showText || text);
|
|
12
14
|
});
|
|
@@ -124,8 +124,11 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
124
124
|
}
|
|
125
125
|
}, /*#__PURE__*/React.createElement("span", {
|
|
126
126
|
onClick: handleQueryLogistics
|
|
127
|
-
}, /*#__PURE__*/React.createElement(CopyText, {
|
|
128
|
-
text: title
|
|
127
|
+
}, title === '查轨迹' ? title : /*#__PURE__*/React.createElement(CopyText, {
|
|
128
|
+
text: title,
|
|
129
|
+
style: {
|
|
130
|
+
color: '#1890ff'
|
|
131
|
+
}
|
|
129
132
|
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
130
133
|
width: modelWidth,
|
|
131
134
|
title: "\u7269\u6D41\u8F68\u8FF9",
|
|
@@ -42,7 +42,9 @@ var CommonTradeId = /*#__PURE__*/_createClass(function CommonTradeId(options) {
|
|
|
42
42
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
43
43
|
id: _this.id,
|
|
44
44
|
label: _this.name,
|
|
45
|
-
value:
|
|
45
|
+
value: /*#__PURE__*/React.createElement(CopyText, {
|
|
46
|
+
text: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
47
|
+
})
|
|
46
48
|
}) : null;
|
|
47
49
|
});
|
|
48
50
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -33,7 +33,9 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
33
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
34
|
id: _this.id,
|
|
35
35
|
label: _this.name,
|
|
36
|
-
value:
|
|
36
|
+
value: /*#__PURE__*/React.createElement(CopyText, {
|
|
37
|
+
text: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
38
|
+
})
|
|
37
39
|
}) : null;
|
|
38
40
|
});
|
|
39
41
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -23,6 +23,7 @@ import InterceptCode from "./interceptCode";
|
|
|
23
23
|
import Express from "./interceptCompany";
|
|
24
24
|
import ColumnHeader from "./columnHeader";
|
|
25
25
|
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
26
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
26
27
|
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
27
28
|
var _this = this,
|
|
28
29
|
_this$componentConfig3;
|
|
@@ -61,7 +62,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
61
62
|
var addressText = (_ref = item.interceptAddress || []) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
|
|
62
63
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
63
64
|
}).join('');
|
|
64
|
-
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : '', item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A",
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : '', item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", /*#__PURE__*/React.createElement(CopyText, {
|
|
66
|
+
text: item.interceptCode
|
|
67
|
+
})) : null, item.interceptAddress.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, ' ', item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
65
68
|
modelWidth: 500,
|
|
66
69
|
interceptCompany: item.interceptCompany,
|
|
67
70
|
interceptCode: item.interceptCode,
|
|
@@ -32,7 +32,9 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
32
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
33
|
id: _this.id,
|
|
34
34
|
label: _this.name,
|
|
35
|
-
value:
|
|
35
|
+
value: /*#__PURE__*/React.createElement(CopyText, {
|
|
36
|
+
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id)]
|
|
37
|
+
})
|
|
36
38
|
}) : null;
|
|
37
39
|
});
|
|
38
40
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -34,7 +34,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
34
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
35
|
id: _this.id,
|
|
36
36
|
label: _this.name,
|
|
37
|
-
value:
|
|
37
|
+
value: /*#__PURE__*/React.createElement(CopyText, {
|
|
38
|
+
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]
|
|
39
|
+
})
|
|
38
40
|
}) : null;
|
|
39
41
|
});
|
|
40
42
|
_defineProperty(this, "renderPc", function (value, record) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.29.1-rc.
|
|
3
|
+
"version": "0.29.1-rc.5",
|
|
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": "
|
|
40
|
+
"gitHead": "14cdcc5dab579a51e4e4d363240c94931f3da498",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|