@kmkf-fe-packages/services-components 0.21.3 → 0.21.4-alpha.3
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/README.md
CHANGED
|
@@ -13,7 +13,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
13
13
|
sortField: string;
|
|
14
14
|
type: string;
|
|
15
15
|
rules: any[];
|
|
16
|
-
componentConfig: ComponentInterface[
|
|
16
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
17
17
|
paymentTid: PaymentTid;
|
|
18
18
|
paymentStatus: PaymentStatus;
|
|
19
19
|
paymentAmount: PaymentAmount;
|
|
@@ -26,7 +26,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
26
26
|
canSort: boolean;
|
|
27
27
|
children: ComponentInterface[];
|
|
28
28
|
dataType: ComponentInterface['dataType'];
|
|
29
|
-
effects: ComponentInterface[
|
|
29
|
+
effects: ComponentInterface['effects'];
|
|
30
30
|
constructor(options: PickOption);
|
|
31
31
|
renderClient: (record: any, params: any) => React.JSX.Element;
|
|
32
32
|
renderPc: () => null;
|
|
@@ -73,7 +73,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
73
73
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
74
74
|
component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
|
|
75
75
|
disabled: (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.disabled,
|
|
76
|
-
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
76
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur,
|
|
77
|
+
replaceValueCh: p === null || p === void 0 ? void 0 : p.innerReplaceValueCh
|
|
77
78
|
}))
|
|
78
79
|
});
|
|
79
80
|
});
|
|
@@ -96,6 +97,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
96
97
|
this.isCombinationComponent = true;
|
|
97
98
|
this.canSort = false;
|
|
98
99
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
100
|
+
console.log();
|
|
99
101
|
this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
|
|
100
102
|
this.rules = [{
|
|
101
103
|
validator: function validator(_, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -8,13 +8,13 @@ declare class ETradeId implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
showContains: boolean;
|
|
10
10
|
onlyContainsString: boolean;
|
|
11
|
-
componentConfig: ComponentInterface[
|
|
12
|
-
effects: ComponentInterface[
|
|
11
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
12
|
+
effects: ComponentInterface['effects'];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
formField: string;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
20
|
copyHandle: (text: string) => void;
|
|
@@ -6,14 +6,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import { message } from
|
|
11
|
-
import { TradeId } from
|
|
12
|
-
import { CopyOutlined } from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { message } from 'antd';
|
|
11
|
+
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
12
|
+
import { CopyOutlined } from '@ant-design/icons';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
-
import copy from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import copy from 'copy-to-clipboard';
|
|
17
17
|
import { SYMBOL } from "../../constant";
|
|
18
18
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
19
19
|
var _this = this;
|
|
@@ -41,7 +41,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "copyHandle", function (text) {
|
|
43
43
|
copy(text);
|
|
44
|
-
message.success(
|
|
44
|
+
message.success('复制成功');
|
|
45
45
|
});
|
|
46
46
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
47
47
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) === undefined) {
|
|
@@ -58,8 +58,8 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
58
58
|
}
|
|
59
59
|
}, /*#__PURE__*/React.createElement("span", {
|
|
60
60
|
style: {
|
|
61
|
-
paddingLeft:
|
|
62
|
-
cursor:
|
|
61
|
+
paddingLeft: '4px',
|
|
62
|
+
cursor: 'pointer'
|
|
63
63
|
}
|
|
64
64
|
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
65
65
|
});
|
|
@@ -72,13 +72,13 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
72
72
|
});
|
|
73
73
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
74
74
|
var _record;
|
|
75
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record :
|
|
75
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
|
|
76
76
|
});
|
|
77
77
|
_defineProperty(this, "editRender", function (p) {
|
|
78
78
|
var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
|
|
79
79
|
var onTradeIdBlur = function onTradeIdBlur(e) {
|
|
80
80
|
var _p$onBlur;
|
|
81
|
-
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value,
|
|
81
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, 'tradeId');
|
|
82
82
|
};
|
|
83
83
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
84
84
|
title: _this.name,
|
|
@@ -102,10 +102,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
102
102
|
// 过滤组件id
|
|
103
103
|
name: item.name,
|
|
104
104
|
// 过滤组件名称
|
|
105
|
-
filterComponentType:
|
|
105
|
+
filterComponentType: 'Input',
|
|
106
106
|
filterFn: function filterFn(value) {
|
|
107
107
|
return function (i) {
|
|
108
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
108
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
109
109
|
};
|
|
110
110
|
},
|
|
111
111
|
formatFilterValue: function formatFilterValue(input) {
|
|
@@ -126,6 +126,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
126
126
|
this.isCombinationComponent = false;
|
|
127
127
|
this.canSort = true;
|
|
128
128
|
this.children = [];
|
|
129
|
-
this.dataType =
|
|
129
|
+
this.dataType = 'string';
|
|
130
130
|
});
|
|
131
131
|
export default ETradeId;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BasicAddress | BsExchange | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | BasicDataTime | FlowCreator | FlowTag | BasicInput | JstLogistics | JstSendGood | MsgStatus | NodeDeadLine | BasicPosting | PrevSubmitter | BasicRadio | ReceiverAddress | StatusSelect | Submitter | BasicSelect | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsGoods | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Handler | CompletedUser | FlowWorkOrderId | Calculation | HandlerDeadLine | NodeStayDuration | WlnGoods;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.21.3",
|
|
3
|
+
"version": "0.21.4-alpha.3",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.21.3",
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.21.3"
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.21.4-alpha.3",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.21.4-alpha.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "243e0dd8e70534ca496d8cd4711f3d2c5e0d094a",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|