@kmkf-fe-packages/services-components 0.7.3-alpha.5 → 0.7.3-alpha.7
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/components/ActualPayment/index.d.ts +1 -0
- package/dist/esm/components/ActualPayment/index.js +2 -0
- package/dist/esm/components/Address/index.d.ts +3 -0
- package/dist/esm/components/Address/index.js +8 -0
- package/dist/esm/components/Alipay/index.d.ts +1 -0
- package/dist/esm/components/Alipay/index.js +2 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +2 -1
- package/dist/esm/components/AlipayAccount/index.js +3 -1
- package/dist/esm/components/AlipayName/index.d.ts +2 -1
- package/dist/esm/components/AlipayName/index.js +3 -1
- package/dist/esm/components/BuyerNick/index.d.ts +2 -1
- package/dist/esm/components/BuyerNick/index.js +3 -1
- package/dist/esm/components/Cascader/index.d.ts +3 -1
- package/dist/esm/components/Cascader/index.js +8 -1
- package/dist/esm/components/Checkbox/index.d.ts +1 -0
- package/dist/esm/components/Checkbox/index.js +2 -0
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
- package/dist/esm/components/CommonDataTime/index.js +9 -0
- package/dist/esm/components/CompletedUser/index.d.ts +1 -0
- package/dist/esm/components/CompletedUser/index.js +2 -0
- package/dist/esm/components/DataTime/index.d.ts +2 -0
- package/dist/esm/components/DataTime/index.js +9 -0
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
- package/dist/esm/components/EItemEnCode/index.js +3 -1
- package/dist/esm/components/EItemId/index.d.ts +2 -1
- package/dist/esm/components/EItemId/index.js +3 -1
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +2 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -0
- package/dist/esm/components/ErpTradeId/index.js +5 -0
- package/dist/esm/components/Express/index.d.ts +1 -0
- package/dist/esm/components/Express/index.js +2 -0
- package/dist/esm/components/ExpressCode/index.d.ts +1 -0
- package/dist/esm/components/ExpressCode/index.js +2 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +1 -0
- package/dist/esm/components/FlowStatusSelect/index.js +2 -0
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +2 -0
- package/dist/esm/components/Handler/index.d.ts +1 -0
- package/dist/esm/components/Handler/index.js +2 -0
- package/dist/esm/components/Input/index.d.ts +2 -1
- package/dist/esm/components/Input/index.js +3 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -1
- package/dist/esm/components/JstItemSelect/index.js +4 -2
- package/dist/esm/components/JstLogistics/index.d.ts +2 -1
- package/dist/esm/components/JstLogistics/index.js +3 -1
- package/dist/esm/components/JstSendGood/index.d.ts +2 -1
- package/dist/esm/components/JstSendGood/index.js +4 -2
- package/dist/esm/components/JstSupply/index.d.ts +2 -1
- package/dist/esm/components/JstSupply/index.js +4 -2
- package/dist/esm/components/Logistics/index.d.ts +4 -1
- package/dist/esm/components/Logistics/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +2 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +10 -5
- package/dist/esm/components/LogisticsInterception/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -1
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -1
- package/dist/esm/components/MultSelect/index.d.ts +1 -0
- package/dist/esm/components/MultSelect/index.js +2 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -0
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +2 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +3 -1
- package/dist/esm/components/Ordinary/index.d.ts +1 -0
- package/dist/esm/components/Ordinary/index.js +2 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayNick.js +3 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +3 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +2 -0
- package/dist/esm/components/Payment/AlipayTime.js +9 -0
- package/dist/esm/components/Payment/BuyerNick.d.ts +2 -1
- package/dist/esm/components/Payment/BuyerNick.js +3 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +2 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentStatus.js +2 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -0
- package/dist/esm/components/Payment/PaymentTid.js +5 -0
- package/dist/esm/components/Payment/index.d.ts +8 -5
- package/dist/esm/components/Payment/index.js +2 -0
- package/dist/esm/components/Picture/index.d.ts +1 -0
- package/dist/esm/components/Picture/index.js +2 -0
- package/dist/esm/components/PlatForm/index.d.ts +1 -0
- package/dist/esm/components/PlatForm/index.js +2 -0
- package/dist/esm/components/Radio/index.d.ts +1 -0
- package/dist/esm/components/Radio/index.js +2 -0
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +2 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -0
- package/dist/esm/components/ReceiverAddress/index.js +2 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +2 -1
- package/dist/esm/components/ReceiverMobile/index.js +3 -1
- package/dist/esm/components/ReceiverName/index.d.ts +2 -1
- package/dist/esm/components/ReceiverName/index.js +3 -1
- package/dist/esm/components/Remark/index.d.ts +2 -1
- package/dist/esm/components/Remark/index.js +3 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +4 -1
- package/dist/esm/components/ReturnLogistics/index.js +2 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +2 -0
- package/dist/esm/components/ShopInput/index.d.ts +1 -0
- package/dist/esm/components/ShopInput/index.js +2 -0
- package/dist/esm/components/ShopName/index.d.ts +2 -1
- package/dist/esm/components/ShopName/index.js +3 -1
- package/dist/esm/components/Submitter/index.d.ts +1 -0
- package/dist/esm/components/Submitter/index.js +2 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +2 -0
- package/dist/esm/components/SystemOrderNo/index.js +5 -0
- package/dist/esm/components/TemplateSelect/index.d.ts +1 -0
- package/dist/esm/components/TemplateSelect/index.js +2 -0
- package/dist/esm/components/TextArea/index.d.ts +2 -1
- package/dist/esm/components/TextArea/index.js +3 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -1
- package/dist/esm/components/ThirdItemSelect/index.js +3 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +2 -0
- package/dist/esm/components/TradeDateTime/index.js +10 -0
- package/dist/esm/components/TradeId/index.d.ts +2 -0
- package/dist/esm/components/TradeId/index.js +5 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -1
- package/dist/esm/components/WorkOrderId/index.js +3 -1
- package/dist/esm/type.d.ts +3 -0
- package/package.json +2 -2
|
@@ -30,6 +30,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
30
30
|
_defineProperty(this, "imgList", void 0);
|
|
31
31
|
_defineProperty(this, "flagColors", void 0);
|
|
32
32
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
33
|
+
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "render", function (value) {
|
|
35
36
|
var index = get(value, 'flag');
|
|
@@ -85,7 +86,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
85
86
|
});
|
|
86
87
|
_defineProperty(this, "filterConfig", function (item) {
|
|
87
88
|
return {
|
|
88
|
-
searchDefaultConditions: SYMBOL.
|
|
89
|
+
searchDefaultConditions: SYMBOL.like,
|
|
89
90
|
type: item.type,
|
|
90
91
|
id: item.id,
|
|
91
92
|
// 过滤组件id
|
|
@@ -118,6 +119,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
118
119
|
this.imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
119
120
|
this.flagColors = ['gray', 'red', 'yellow', 'green', 'blue', 'purple'];
|
|
120
121
|
this.isCombinationComponent = false;
|
|
122
|
+
this.canSort = true;
|
|
121
123
|
this.children = [];
|
|
122
124
|
});
|
|
123
125
|
export default ERemark;
|
|
@@ -18,6 +18,7 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
18
18
|
express: Express;
|
|
19
19
|
expressCode: ExpressCode;
|
|
20
20
|
isCombinationComponent: boolean;
|
|
21
|
+
canSort: boolean;
|
|
21
22
|
children: ComponentInterface[];
|
|
22
23
|
constructor(options: PickOption);
|
|
23
24
|
renderClient: (record: any) => React.JSX.Element;
|
|
@@ -35,7 +36,9 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
35
36
|
id: string;
|
|
36
37
|
name: string;
|
|
37
38
|
filterComponentType: "MultipleSelect";
|
|
38
|
-
|
|
39
|
+
props: {
|
|
40
|
+
options: any[];
|
|
41
|
+
};
|
|
39
42
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
40
43
|
} | {
|
|
41
44
|
searchDefaultConditions: "in";
|
|
@@ -32,6 +32,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
32
32
|
_defineProperty(this, "express", void 0);
|
|
33
33
|
_defineProperty(this, "expressCode", void 0);
|
|
34
34
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
35
|
+
_defineProperty(this, "canSort", void 0);
|
|
35
36
|
_defineProperty(this, "children", void 0);
|
|
36
37
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
38
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
|
|
@@ -90,6 +91,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
90
91
|
id: "".concat(options.id, "_returnLogisticsCode")
|
|
91
92
|
}));
|
|
92
93
|
this.isCombinationComponent = true;
|
|
94
|
+
this.canSort = false;
|
|
93
95
|
this.children = [this.express, this.expressCode];
|
|
94
96
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
95
97
|
validator: function validator(_, value) {
|
|
@@ -7,6 +7,7 @@ declare class BasicSelect implements ComponentInterface {
|
|
|
7
7
|
rules: any[];
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
editRender: () => React.JSX.Element;
|
|
@@ -21,6 +21,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
21
21
|
_defineProperty(this, "rules", void 0);
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
25
26
|
_defineProperty(this, "editRender", function () {
|
|
26
27
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -83,6 +84,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
83
84
|
this.componentConfig = options.componentConfig;
|
|
84
85
|
this.rules = [];
|
|
85
86
|
this.isCombinationComponent = false;
|
|
87
|
+
this.canSort = true;
|
|
86
88
|
this.children = [];
|
|
87
89
|
});
|
|
88
90
|
export default BasicSelect;
|
|
@@ -7,6 +7,7 @@ declare class ShopInput implements ComponentInterface {
|
|
|
7
7
|
componentConfig: ComponentInterface["componentConfig"];
|
|
8
8
|
effects: ComponentInterface["effects"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderPc: (shopName: unknown, record: any) => React.JSX.Element;
|
|
@@ -18,6 +18,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
18
18
|
_defineProperty(this, "componentConfig", void 0);
|
|
19
19
|
_defineProperty(this, "effects", void 0);
|
|
20
20
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
21
|
+
_defineProperty(this, "canSort", void 0);
|
|
21
22
|
_defineProperty(this, "children", void 0);
|
|
22
23
|
_defineProperty(this, "renderPc", function (shopName, record) {
|
|
23
24
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
@@ -75,6 +76,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
75
76
|
this.type = "SHOP_INPUT";
|
|
76
77
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
77
78
|
this.isCombinationComponent = false;
|
|
79
|
+
this.canSort = true;
|
|
78
80
|
this.children = [];
|
|
79
81
|
});
|
|
80
82
|
export default ShopInput;
|
|
@@ -7,6 +7,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
7
7
|
rules: any[];
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -16,7 +17,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
16
17
|
renderExport: (value: any, record: Record) => any;
|
|
17
18
|
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
19
|
-
searchDefaultConditions: "
|
|
20
|
+
searchDefaultConditions: "like";
|
|
20
21
|
type: string;
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
@@ -21,6 +21,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
21
21
|
_defineProperty(this, "rules", void 0);
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
25
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
26
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -58,7 +59,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
58
59
|
});
|
|
59
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
60
61
|
return {
|
|
61
|
-
searchDefaultConditions: SYMBOL.
|
|
62
|
+
searchDefaultConditions: SYMBOL.like,
|
|
62
63
|
type: item.type,
|
|
63
64
|
id: item.id,
|
|
64
65
|
// 过滤组件id
|
|
@@ -78,6 +79,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
78
79
|
this.componentConfig = options.componentConfig;
|
|
79
80
|
this.rules = [];
|
|
80
81
|
this.isCombinationComponent = false;
|
|
82
|
+
this.canSort = true;
|
|
81
83
|
this.children = [];
|
|
82
84
|
});
|
|
83
85
|
export default BasicInput;
|
|
@@ -7,6 +7,7 @@ declare class Submitter implements ComponentInterface {
|
|
|
7
7
|
componentConfig: ComponentInterface["componentConfig"];
|
|
8
8
|
effects: ComponentInterface["effects"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
17
17
|
_defineProperty(this, "componentConfig", void 0);
|
|
18
18
|
_defineProperty(this, "effects", void 0);
|
|
19
19
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
20
|
+
_defineProperty(this, "canSort", void 0);
|
|
20
21
|
_defineProperty(this, "children", void 0);
|
|
21
22
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
22
23
|
var _record;
|
|
@@ -63,6 +64,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
63
64
|
this.type = "OPERATOR_INPUT";
|
|
64
65
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
65
66
|
this.isCombinationComponent = false;
|
|
67
|
+
this.canSort = true;
|
|
66
68
|
this.children = [];
|
|
67
69
|
});
|
|
68
70
|
export default Submitter;
|
|
@@ -8,6 +8,7 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -23,6 +24,7 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
23
24
|
name: string;
|
|
24
25
|
filterComponentType: "Input";
|
|
25
26
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
27
|
+
formatFilterValue: (input: string) => string[];
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
export default SystemOrderNo;
|
|
@@ -22,6 +22,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "effects", void 0);
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
26
|
_defineProperty(this, "children", void 0);
|
|
26
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
27
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -70,6 +71,9 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
70
71
|
return function (i) {
|
|
71
72
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'systemOrderNo'), value);
|
|
72
73
|
};
|
|
74
|
+
},
|
|
75
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
76
|
+
return input.split(/[,|,]/);
|
|
73
77
|
}
|
|
74
78
|
};
|
|
75
79
|
});
|
|
@@ -80,6 +84,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
80
84
|
this.componentConfig = options.componentConfig;
|
|
81
85
|
this.rules = [];
|
|
82
86
|
this.isCombinationComponent = false;
|
|
87
|
+
this.canSort = true;
|
|
83
88
|
this.children = [];
|
|
84
89
|
});
|
|
85
90
|
export default SystemOrderNo;
|
|
@@ -8,6 +8,7 @@ declare class TemplateSelect implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -20,6 +20,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
20
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
21
|
_defineProperty(this, "effects", void 0);
|
|
22
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "canSort", void 0);
|
|
23
24
|
_defineProperty(this, "children", void 0);
|
|
24
25
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
25
26
|
var _this$effects;
|
|
@@ -81,6 +82,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
81
82
|
this.rules = [];
|
|
82
83
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
83
84
|
this.isCombinationComponent = false;
|
|
85
|
+
this.canSort = true;
|
|
84
86
|
this.children = [];
|
|
85
87
|
});
|
|
86
88
|
export default TemplateSelect;
|
|
@@ -7,6 +7,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
7
7
|
rules: any[];
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -16,7 +17,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
16
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
18
|
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
19
|
-
searchDefaultConditions: "
|
|
20
|
+
searchDefaultConditions: "like";
|
|
20
21
|
type: string;
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
@@ -21,6 +21,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
21
21
|
_defineProperty(this, "rules", void 0);
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
25
26
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
26
27
|
var _record;
|
|
@@ -58,7 +59,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
58
59
|
});
|
|
59
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
60
61
|
return {
|
|
61
|
-
searchDefaultConditions: SYMBOL.
|
|
62
|
+
searchDefaultConditions: SYMBOL.like,
|
|
62
63
|
type: item.type,
|
|
63
64
|
id: item.id,
|
|
64
65
|
// 过滤组件id
|
|
@@ -78,6 +79,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
78
79
|
this.componentConfig = options.componentConfig;
|
|
79
80
|
this.rules = [];
|
|
80
81
|
this.isCombinationComponent = false;
|
|
82
|
+
this.canSort = true;
|
|
81
83
|
this.children = [];
|
|
82
84
|
});
|
|
83
85
|
export default BasicInput;
|
|
@@ -8,6 +8,7 @@ declare class ThirdItemSelect implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -17,7 +18,7 @@ declare class ThirdItemSelect implements ComponentInterface {
|
|
|
17
18
|
renderExport: (value: any, record: Record) => any;
|
|
18
19
|
editRender: () => React.JSX.Element;
|
|
19
20
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
-
searchDefaultConditions: "
|
|
21
|
+
searchDefaultConditions: "like";
|
|
21
22
|
type: string;
|
|
22
23
|
id: string;
|
|
23
24
|
name: string;
|
|
@@ -24,6 +24,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
24
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
25
|
_defineProperty(this, "effects", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
28
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -77,7 +78,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
77
78
|
});
|
|
78
79
|
_defineProperty(this, "filterConfig", function (item) {
|
|
79
80
|
return {
|
|
80
|
-
searchDefaultConditions: SYMBOL.
|
|
81
|
+
searchDefaultConditions: SYMBOL.like,
|
|
81
82
|
type: item.type,
|
|
82
83
|
id: item.id,
|
|
83
84
|
// 过滤组件id
|
|
@@ -103,6 +104,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
103
104
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
104
105
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
105
106
|
this.isCombinationComponent = false;
|
|
107
|
+
this.canSort = true;
|
|
106
108
|
this.children = [];
|
|
107
109
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
108
110
|
required: true,
|
|
@@ -13,6 +13,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
13
13
|
showContains: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
isCombinationComponent: boolean;
|
|
16
|
+
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
17
18
|
dataMap: Record;
|
|
18
19
|
constructor(options: PickOption);
|
|
@@ -31,6 +32,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
31
32
|
name: string;
|
|
32
33
|
filterComponentType: "Date";
|
|
33
34
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
35
|
+
formatFilterValue: (val: Array<any>) => number[] | undefined;
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
export default BasicDataTime;
|
|
@@ -7,6 +7,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
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
9
|
import React from 'react';
|
|
10
|
+
import moment from 'moment';
|
|
10
11
|
import { DateTime } from "../DataTime";
|
|
11
12
|
import GetFormItem from "../GetFormItem";
|
|
12
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
@@ -26,6 +27,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
26
27
|
_defineProperty(this, "showContains", void 0);
|
|
27
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
29
31
|
_defineProperty(this, "children", void 0);
|
|
30
32
|
_defineProperty(this, "dataMap", void 0);
|
|
31
33
|
_defineProperty(this, "render", function (value) {
|
|
@@ -104,6 +106,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
104
106
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
|
|
105
107
|
return _filterFn.filterDateFn(value, recordDateTime);
|
|
106
108
|
};
|
|
109
|
+
},
|
|
110
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
111
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
112
|
+
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
113
|
+
return moment(v).valueOf();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
107
116
|
}
|
|
108
117
|
};
|
|
109
118
|
});
|
|
@@ -118,6 +127,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
118
127
|
this.componentConfig = options.componentConfig;
|
|
119
128
|
this.rules = [];
|
|
120
129
|
this.isCombinationComponent = false;
|
|
130
|
+
this.canSort = true;
|
|
121
131
|
this.children = [];
|
|
122
132
|
this.dataMap = {
|
|
123
133
|
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
@@ -14,6 +14,7 @@ declare class ETradeId implements ComponentInterface {
|
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
effects: ComponentInterface["effects"];
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
|
+
canSort: boolean;
|
|
17
18
|
children: ComponentInterface[];
|
|
18
19
|
constructor(options: PickOption);
|
|
19
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -29,6 +30,7 @@ declare class ETradeId implements ComponentInterface {
|
|
|
29
30
|
name: string;
|
|
30
31
|
filterComponentType: "Input";
|
|
31
32
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
formatFilterValue: (input: string) => string[];
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
export default ETradeId;
|
|
@@ -28,6 +28,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
28
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
29
|
_defineProperty(this, "effects", void 0);
|
|
30
30
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
+
_defineProperty(this, "canSort", void 0);
|
|
31
32
|
_defineProperty(this, "children", void 0);
|
|
32
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -83,6 +84,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
83
84
|
return function (i) {
|
|
84
85
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
85
86
|
};
|
|
87
|
+
},
|
|
88
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
89
|
+
return input.split(/[,|,]/);
|
|
86
90
|
}
|
|
87
91
|
};
|
|
88
92
|
});
|
|
@@ -99,6 +103,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
99
103
|
this.effects = options.effects;
|
|
100
104
|
this.rules = [];
|
|
101
105
|
this.isCombinationComponent = false;
|
|
106
|
+
this.canSort = true;
|
|
102
107
|
this.children = [];
|
|
103
108
|
});
|
|
104
109
|
export default ETradeId;
|
|
@@ -8,6 +8,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
copyHandle: (text: string) => void;
|
|
@@ -18,7 +19,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
18
19
|
renderClient: () => null;
|
|
19
20
|
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
-
searchDefaultConditions: "
|
|
22
|
+
searchDefaultConditions: "like";
|
|
22
23
|
type: string;
|
|
23
24
|
id: string;
|
|
24
25
|
name: string;
|
|
@@ -25,6 +25,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "effects", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "copyHandle", function (text) {
|
|
30
31
|
copy(text);
|
|
@@ -90,7 +91,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
90
91
|
});
|
|
91
92
|
_defineProperty(this, "filterConfig", function (item) {
|
|
92
93
|
return {
|
|
93
|
-
searchDefaultConditions: SYMBOL.
|
|
94
|
+
searchDefaultConditions: SYMBOL.like,
|
|
94
95
|
type: item.type,
|
|
95
96
|
id: item.id,
|
|
96
97
|
// 过滤组件id
|
|
@@ -111,6 +112,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
111
112
|
this.effects = options.effects;
|
|
112
113
|
this.rules = [];
|
|
113
114
|
this.isCombinationComponent = false;
|
|
115
|
+
this.canSort = true;
|
|
114
116
|
this.children = [];
|
|
115
117
|
});
|
|
116
118
|
export default WorkOrderId;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export declare type FilterConfigType = {
|
|
|
15
15
|
filterComponentType: FilterComponentType;
|
|
16
16
|
props?: Record;
|
|
17
17
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
18
|
+
formatFilterValue?: (p: any) => any;
|
|
19
|
+
filterKey?: string;
|
|
18
20
|
};
|
|
19
21
|
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate";
|
|
20
22
|
export interface ComponentInterface {
|
|
@@ -23,6 +25,7 @@ export interface ComponentInterface {
|
|
|
23
25
|
columnHeader?: string | JSX.Element;
|
|
24
26
|
type: string;
|
|
25
27
|
isCombinationComponent: boolean;
|
|
28
|
+
canSort: boolean;
|
|
26
29
|
children: ComponentInterface[];
|
|
27
30
|
rules?: any[];
|
|
28
31
|
width?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.3-alpha.
|
|
3
|
+
"version": "0.7.3-alpha.7",
|
|
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": "
|
|
43
|
+
"gitHead": "e8cf9f0eecbcdcfcb23cc53d7af2b2fd3ff6c8be"
|
|
44
44
|
}
|