@kmkf-fe-packages/services-components 0.4.0 → 0.5.1
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/PlatBuyer/index.js +8 -5
- package/dist/esm/components/Alipay/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.d.ts +2 -0
- package/dist/esm/components/Ordinary/index.d.ts +3 -1
- package/dist/esm/components/Payment/index.d.ts +5 -0
- package/dist/esm/components/ReturnLogistics/index.d.ts +2 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +1 -0
- package/dist/esm/components/WorkOrderId/index.js +8 -5
- package/package.json +4 -4
|
@@ -7,7 +7,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
7
7
|
import React, { useMemo } from 'react';
|
|
8
8
|
import { CopyOutlined } from '@ant-design/icons';
|
|
9
9
|
import { message } from 'antd';
|
|
10
|
-
import
|
|
10
|
+
import copy from 'copy-to-clipboard';
|
|
11
11
|
import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
12
|
import Wangwang from "../Wangwang";
|
|
13
13
|
var PlatBuyer = function PlatBuyer(_ref) {
|
|
@@ -17,6 +17,10 @@ var PlatBuyer = function PlatBuyer(_ref) {
|
|
|
17
17
|
buyerOpenUid = _ref.buyerOpenUid,
|
|
18
18
|
shopList = _ref.shopList;
|
|
19
19
|
var platList = PlatData.getInstance().getPlatData();
|
|
20
|
+
var copyHandle = function copyHandle(text) {
|
|
21
|
+
copy(text);
|
|
22
|
+
message.success('复制成功');
|
|
23
|
+
};
|
|
20
24
|
var platInfo = useMemo(function () {
|
|
21
25
|
var info = {};
|
|
22
26
|
(shopList || []).forEach(function (item) {
|
|
@@ -30,10 +34,9 @@ var PlatBuyer = function PlatBuyer(_ref) {
|
|
|
30
34
|
return (platInfo === null || platInfo === void 0 ? void 0 : (_platInfo$shopId = platInfo[shopId]) === null || _platInfo$shopId === void 0 ? void 0 : _platInfo$shopId.platformTypeStr) === 'TAOBAO' ? /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Wangwang, {
|
|
31
35
|
nick: buyerNick,
|
|
32
36
|
buyerOpenUid: buyerOpenUid
|
|
33
|
-
})) : /*#__PURE__*/React.createElement(React.Fragment, null, buyerNick, /*#__PURE__*/React.createElement(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
message.success('复制成功');
|
|
37
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, buyerNick, /*#__PURE__*/React.createElement("span", {
|
|
38
|
+
onClick: function onClick() {
|
|
39
|
+
return copyHandle(buyerNick);
|
|
37
40
|
}
|
|
38
41
|
}, /*#__PURE__*/React.createElement("span", {
|
|
39
42
|
style: {
|
|
@@ -28,6 +28,7 @@ declare class Alipay implements ComponentInterface {
|
|
|
28
28
|
title: string;
|
|
29
29
|
componentType: (value: any) => JSX.Element;
|
|
30
30
|
renderExport: (value?: string | undefined) => string;
|
|
31
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
31
32
|
})[];
|
|
32
33
|
canHidden: boolean;
|
|
33
34
|
dataIndex: string;
|
|
@@ -31,11 +31,13 @@ declare class Logistics implements ComponentInterface {
|
|
|
31
31
|
widget: JSX.Element;
|
|
32
32
|
groupFieldPath: string;
|
|
33
33
|
renderExport: (value: string, record: Record) => string | number;
|
|
34
|
+
render: (value: string, record: Record) => JSX.Element;
|
|
34
35
|
}) | (ExpressCode & {
|
|
35
36
|
dataIndex: string;
|
|
36
37
|
title: string;
|
|
37
38
|
groupFieldPath: string;
|
|
38
39
|
renderExport: (value: string, record: Record) => string;
|
|
40
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
39
41
|
}))[];
|
|
40
42
|
canHidden: boolean;
|
|
41
43
|
dataIndex: string;
|
|
@@ -34,10 +34,12 @@ declare class Ordinary implements ComponentInterface {
|
|
|
34
34
|
canFilter: boolean;
|
|
35
35
|
canGroup: boolean;
|
|
36
36
|
type: string;
|
|
37
|
-
render: (value:
|
|
37
|
+
render: (value: any) => any;
|
|
38
|
+
renderPc: (value: any) => any;
|
|
38
39
|
componentType: () => JSX.Element;
|
|
39
40
|
showContains: boolean;
|
|
40
41
|
renderExport: (value: any) => any;
|
|
42
|
+
width: number;
|
|
41
43
|
}[];
|
|
42
44
|
canHidden: boolean;
|
|
43
45
|
dataIndex: string;
|
|
@@ -44,6 +44,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
44
44
|
width: number;
|
|
45
45
|
type: string;
|
|
46
46
|
render: (value: any, record: any) => any;
|
|
47
|
+
renderPc: (value: any, record: any) => any;
|
|
47
48
|
componentType: (value: any) => null;
|
|
48
49
|
showContains: boolean;
|
|
49
50
|
renderExport: (value: any) => any;
|
|
@@ -67,6 +68,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
67
68
|
canGroup: boolean;
|
|
68
69
|
type: string;
|
|
69
70
|
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
71
|
+
renderPc: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
70
72
|
componentType: () => JSX.Element;
|
|
71
73
|
showContains: boolean;
|
|
72
74
|
renderExport: (value: string) => string;
|
|
@@ -81,6 +83,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
81
83
|
type: string;
|
|
82
84
|
width: number;
|
|
83
85
|
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
86
|
+
renderPc: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
84
87
|
componentType: () => JSX.Element;
|
|
85
88
|
showContains: boolean;
|
|
86
89
|
renderExport: (value: any, record: import("../../type").Record) => any;
|
|
@@ -95,6 +98,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
95
98
|
canGroup: boolean;
|
|
96
99
|
type: string;
|
|
97
100
|
render: (value: any, record: any) => JSX.Element;
|
|
101
|
+
renderPc: (value: any, record: any) => JSX.Element;
|
|
98
102
|
componentType: () => JSX.Element;
|
|
99
103
|
showContains: boolean;
|
|
100
104
|
} | {
|
|
@@ -108,6 +112,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
108
112
|
canGroup: boolean;
|
|
109
113
|
type: string;
|
|
110
114
|
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
115
|
+
renderPc: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
111
116
|
componentType: () => JSX.Element;
|
|
112
117
|
showContains: boolean;
|
|
113
118
|
renderExport: (value: string) => string | null;
|
|
@@ -31,11 +31,13 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
31
31
|
widget: JSX.Element;
|
|
32
32
|
groupFieldPath: string;
|
|
33
33
|
renderExport: (value: string, record: import("../../type").Record) => string | number;
|
|
34
|
+
render: (value: string, record: import("../../type").Record) => JSX.Element;
|
|
34
35
|
}) | (ExpressCode & {
|
|
35
36
|
dataIndex: string;
|
|
36
37
|
title: string;
|
|
37
38
|
groupFieldPath: string;
|
|
38
39
|
renderExport: (value: string, record: import("../../type").Record) => string;
|
|
40
|
+
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
39
41
|
}))[];
|
|
40
42
|
canHidden: boolean;
|
|
41
43
|
dataIndex: string;
|
|
@@ -13,6 +13,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
13
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
14
|
effects: ComponentInterface["effects"];
|
|
15
15
|
constructor(options: PickOption);
|
|
16
|
+
copyHandle: (text: string) => void;
|
|
16
17
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
17
18
|
renderExport: (value: any, record: any) => any;
|
|
18
19
|
render: () => null;
|
|
@@ -14,7 +14,7 @@ import { CopyOutlined } from '@ant-design/icons';
|
|
|
14
14
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
15
15
|
import GetFormItem from "../GetFormItem";
|
|
16
16
|
import repeatPng from "./img/repeat.png";
|
|
17
|
-
import
|
|
17
|
+
import copy from 'copy-to-clipboard';
|
|
18
18
|
var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
19
19
|
var _this = this;
|
|
20
20
|
_classCallCheck(this, WorkOrderId);
|
|
@@ -29,6 +29,10 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
29
29
|
_defineProperty(this, "showContains", void 0);
|
|
30
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
31
|
_defineProperty(this, "effects", void 0);
|
|
32
|
+
_defineProperty(this, "copyHandle", function (text) {
|
|
33
|
+
copy(text);
|
|
34
|
+
message.success('复制成功');
|
|
35
|
+
});
|
|
32
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
33
37
|
var _record$repeatConfig, _record;
|
|
34
38
|
return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : (_record$repeatConfig = record.repeatConfig) === null || _record$repeatConfig === void 0 ? void 0 : _record$repeatConfig.show) && /*#__PURE__*/React.createElement("img", {
|
|
@@ -41,10 +45,9 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
41
45
|
var _this$effects;
|
|
42
46
|
return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig);
|
|
43
47
|
}
|
|
44
|
-
}), (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--', (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) && /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
message.success('复制成功');
|
|
48
|
+
}), (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--', (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) && /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
49
|
+
onClick: function onClick() {
|
|
50
|
+
return _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
48
51
|
}
|
|
49
52
|
}, /*#__PURE__*/React.createElement("span", {
|
|
50
53
|
style: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"father": "^4.1.7"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "^0.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "^0.5.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.5.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"gitHooks": {
|
|
36
36
|
"pre-commit": "lint-staged"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "539690dbe71a53c524de1b421819b69402a51848"
|
|
39
39
|
}
|