@kmkf-fe-packages/services-components 0.6.3-alpha.6 → 0.6.3-alpha.60
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 +2 -0
- package/dist/esm/commonComponents/ItemView/index.d.ts +3 -3
- package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +2 -2
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +2 -2
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
- package/dist/esm/commonComponents/ShopList/index.d.ts +2 -2
- package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
- package/dist/esm/components/ActualPayment/index.d.ts +7 -5
- package/dist/esm/components/ActualPayment/index.js +9 -4
- package/dist/esm/components/Address/index.d.ts +6 -5
- package/dist/esm/components/Address/index.js +8 -4
- package/dist/esm/components/Alipay/index.d.ts +9 -4
- package/dist/esm/components/Alipay/index.js +9 -3
- package/dist/esm/components/AlipayAccount/index.d.ts +7 -5
- package/dist/esm/components/AlipayAccount/index.js +11 -5
- package/dist/esm/components/AlipayName/index.d.ts +7 -5
- package/dist/esm/components/AlipayName/index.js +11 -5
- package/dist/esm/components/BuyerNick/index.d.ts +10 -8
- package/dist/esm/components/BuyerNick/index.js +11 -3
- package/dist/esm/components/Cascader/index.d.ts +9 -7
- package/dist/esm/components/Cascader/index.js +9 -4
- package/dist/esm/components/Checkbox/index.d.ts +10 -5
- package/dist/esm/components/Checkbox/index.js +21 -6
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +7 -5
- package/dist/esm/components/CommonDataTime/index.js +8 -4
- package/dist/esm/components/CompletedUser/index.d.ts +5 -3
- package/dist/esm/components/CompletedUser/index.js +7 -3
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/DataTime/index.d.ts +9 -7
- package/dist/esm/components/DataTime/index.js +8 -3
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +7 -5
- package/dist/esm/components/EItemEnCode/index.js +12 -7
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemId/index.d.ts +7 -5
- package/dist/esm/components/EItemId/index.js +12 -7
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/EItemSelect/index.d.ts +6 -5
- package/dist/esm/components/EItemSelect/index.js +10 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +8 -6
- package/dist/esm/components/ErpTradeId/index.js +10 -5
- package/dist/esm/components/Express/index.d.ts +8 -6
- package/dist/esm/components/Express/index.js +12 -7
- package/dist/esm/components/ExpressCode/index.d.ts +10 -8
- package/dist/esm/components/ExpressCode/index.js +19 -12
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/FlowStatusSelect/index.d.ts +7 -5
- package/dist/esm/components/FlowStatusSelect/index.js +11 -3
- package/dist/esm/components/GetFormItem/index.d.ts +3 -3
- package/dist/esm/components/GetFormItem/index.js +3 -3
- package/dist/esm/components/Grade/index.d.ts +6 -5
- package/dist/esm/components/Grade/index.js +8 -4
- package/dist/esm/components/Handler/index.d.ts +5 -5
- package/dist/esm/components/Handler/index.js +18 -8
- package/dist/esm/components/Input/index.d.ts +7 -5
- package/dist/esm/components/Input/index.js +9 -4
- package/dist/esm/components/JstItemSelect/index.d.ts +8 -6
- package/dist/esm/components/JstItemSelect/index.js +29 -24
- package/dist/esm/components/JstLogistics/index.d.ts +10 -7
- package/dist/esm/components/JstLogistics/index.js +19 -9
- package/dist/esm/components/JstSendGood/index.d.ts +7 -5
- package/dist/esm/components/JstSendGood/index.js +19 -9
- package/dist/esm/components/JstSupply/index.d.ts +7 -5
- package/dist/esm/components/JstSupply/index.js +19 -9
- package/dist/esm/components/Logistics/index.d.ts +12 -6
- package/dist/esm/components/Logistics/index.js +9 -3
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +17 -9
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +72 -27
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +21 -9
- package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
- package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +55 -8
- package/dist/esm/components/LogisticsInterception/index.js +54 -14
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
- package/dist/esm/components/MultSelect/index.d.ts +7 -6
- package/dist/esm/components/MultSelect/index.js +10 -4
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +12 -6
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +11 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.js +12 -6
- package/dist/esm/components/Ordinary/index.d.ts +12 -6
- package/dist/esm/components/Ordinary/index.js +12 -5
- package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
- package/dist/esm/components/Payment/AlipayNick.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayNick.js +13 -6
- package/dist/esm/components/Payment/AlipayNo.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayNo.js +13 -7
- package/dist/esm/components/Payment/AlipayTime.d.ts +8 -6
- package/dist/esm/components/Payment/AlipayTime.js +11 -8
- package/dist/esm/components/Payment/BuyerNick.d.ts +7 -5
- package/dist/esm/components/Payment/BuyerNick.js +12 -6
- package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentAmount.js +10 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentStatus.js +11 -5
- package/dist/esm/components/Payment/PaymentTid.d.ts +8 -6
- package/dist/esm/components/Payment/PaymentTid.js +10 -4
- package/dist/esm/components/Payment/index.d.ts +20 -8
- package/dist/esm/components/Payment/index.js +14 -3
- package/dist/esm/components/Picture/index.d.ts +7 -5
- package/dist/esm/components/Picture/index.js +8 -1
- package/dist/esm/components/PlatForm/index.d.ts +10 -5
- package/dist/esm/components/PlatForm/index.js +8 -3
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/Radio/index.d.ts +11 -5
- package/dist/esm/components/Radio/index.js +11 -0
- package/dist/esm/components/Rate/index.d.ts +7 -5
- package/dist/esm/components/Rate/index.js +11 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +10 -5
- package/dist/esm/components/ReceiverAddress/index.js +13 -3
- package/dist/esm/components/ReceiverMobile/index.d.ts +7 -5
- package/dist/esm/components/ReceiverMobile/index.js +9 -4
- package/dist/esm/components/ReceiverName/index.d.ts +7 -5
- package/dist/esm/components/ReceiverName/index.js +9 -4
- package/dist/esm/components/Remark/index.d.ts +11 -5
- package/dist/esm/components/Remark/index.js +11 -0
- package/dist/esm/components/ReturnLogistics/index.d.ts +14 -8
- package/dist/esm/components/ReturnLogistics/index.js +9 -3
- package/dist/esm/components/Select/index.d.ts +7 -5
- package/dist/esm/components/Select/index.js +8 -3
- package/dist/esm/components/ShopInput/index.d.ts +5 -3
- package/dist/esm/components/ShopInput/index.js +9 -4
- package/dist/esm/components/ShopName/index.d.ts +7 -5
- package/dist/esm/components/ShopName/index.js +10 -5
- package/dist/esm/components/Submitter/index.d.ts +5 -3
- package/dist/esm/components/Submitter/index.js +7 -3
- package/dist/esm/components/SystemOrderNo/index.d.ts +8 -6
- package/dist/esm/components/SystemOrderNo/index.js +9 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +6 -4
- package/dist/esm/components/TemplateSelect/index.js +10 -5
- package/dist/esm/components/TextArea/index.d.ts +7 -5
- package/dist/esm/components/TextArea/index.js +9 -4
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -5
- package/dist/esm/components/ThirdItemSelect/index.js +12 -8
- package/dist/esm/components/TradeDateTime/index.d.ts +10 -6
- package/dist/esm/components/TradeDateTime/index.js +18 -7
- package/dist/esm/components/TradeId/index.d.ts +8 -6
- package/dist/esm/components/TradeId/index.js +9 -4
- package/dist/esm/components/WorkOrderId/index.d.ts +6 -4
- package/dist/esm/components/WorkOrderId/index.js +10 -4
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +20 -14
- package/package.json +10 -5
|
@@ -26,9 +26,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "width", void 0);
|
|
29
|
-
_defineProperty(this, "render", function (value, record) {
|
|
30
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
31
|
-
});
|
|
32
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
31
|
id: _this.id,
|
|
@@ -37,18 +34,26 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
37
34
|
}) : null;
|
|
38
35
|
});
|
|
39
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
+
var _record;
|
|
40
38
|
return /*#__PURE__*/React.createElement("span", {
|
|
41
39
|
className: "pointer",
|
|
42
40
|
onClick: function onClick() {
|
|
43
41
|
var _this$effects, _this$effects2;
|
|
44
42
|
typeof ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
45
43
|
}
|
|
46
|
-
},
|
|
44
|
+
}, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
47
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
48
|
+
return _this.renderPc(undefined, r);
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
51
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
47
52
|
});
|
|
48
53
|
_defineProperty(this, "renderExport", function (value) {
|
|
49
54
|
return value !== null && value !== void 0 ? value : '--';
|
|
50
55
|
});
|
|
51
|
-
_defineProperty(this, "editRender", function (
|
|
56
|
+
_defineProperty(this, "editRender", function () {
|
|
52
57
|
var _this$componentConfig, _this$componentConfig2;
|
|
53
58
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
54
59
|
title: _this.name,
|
|
@@ -60,6 +65,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
60
65
|
});
|
|
61
66
|
_defineProperty(this, "filterConfig", function (item) {
|
|
62
67
|
return {
|
|
68
|
+
type: item.type,
|
|
63
69
|
id: "".concat(item.id, "_alipayName"),
|
|
64
70
|
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
|
|
65
71
|
filterComponentType: 'Input',
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
|
-
|
|
4
|
-
buyerNick?: string;
|
|
5
|
-
};
|
|
2
|
+
import React from 'react';
|
|
6
3
|
declare class EBuyerNick implements ComponentInterface {
|
|
7
4
|
name: string;
|
|
8
5
|
id: string;
|
|
@@ -13,12 +10,17 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
13
10
|
isCombinationComponent: boolean;
|
|
14
11
|
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
14
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => {
|
|
17
|
+
buyerNick: any;
|
|
18
|
+
buyerOpenUid: any;
|
|
19
|
+
};
|
|
19
20
|
renderExport: (value: any, record: any) => any;
|
|
20
|
-
editRender: (value: any) => JSX.Element;
|
|
21
|
+
editRender: (value: any) => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
type: string;
|
|
22
24
|
id: string;
|
|
23
25
|
name: string;
|
|
24
26
|
filterComponentType: "Input";
|
|
@@ -25,9 +25,6 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
25
25
|
_defineProperty(this, "effects", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "render", function (value) {
|
|
29
|
-
return /*#__PURE__*/React.createElement("span", null, value === null || value === void 0 ? void 0 : value.buyerNick);
|
|
30
|
-
});
|
|
31
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
29
|
var _record$_this$id;
|
|
33
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -50,6 +47,16 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
50
47
|
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
51
48
|
}));
|
|
52
49
|
});
|
|
50
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
51
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerOpenUid")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerNick")])) return null;
|
|
52
|
+
return _this.renderPc(undefined, r);
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
55
|
+
return {
|
|
56
|
+
buyerNick: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerNick")],
|
|
57
|
+
buyerOpenUid: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerOpenUid")]
|
|
58
|
+
};
|
|
59
|
+
});
|
|
53
60
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
61
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
55
62
|
});
|
|
@@ -69,6 +76,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
69
76
|
});
|
|
70
77
|
_defineProperty(this, "filterConfig", function (item) {
|
|
71
78
|
return {
|
|
79
|
+
type: item.type,
|
|
72
80
|
id: "".concat(item.id, "_buyerNick"),
|
|
73
81
|
// 过滤组件id
|
|
74
82
|
name: item.name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BasicCascader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -14,13 +14,15 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
14
14
|
* @param value
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
getValue: (value: any) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
getValue: (value: any) => string;
|
|
18
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
22
|
+
renderExport: (value: any, record: Record) => string;
|
|
23
|
+
editRender: () => React.JSX.Element;
|
|
23
24
|
filterConfig: (item: ColumnConfig) => {
|
|
25
|
+
type: string;
|
|
24
26
|
id: string;
|
|
25
27
|
name: string;
|
|
26
28
|
filterComponentType: "Cascader";
|
|
@@ -29,9 +29,6 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
29
29
|
return i.label;
|
|
30
30
|
})) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(',');
|
|
31
31
|
});
|
|
32
|
-
_defineProperty(this, "render", function (value) {
|
|
33
|
-
return /*#__PURE__*/React.createElement("span", null, _this.getValue(value));
|
|
34
|
-
});
|
|
35
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
36
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
37
34
|
id: _this.id,
|
|
@@ -50,6 +47,13 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
50
47
|
return i.label;
|
|
51
48
|
})) === null || _findLabelBySelectVal4 === void 0 ? void 0 : _findLabelBySelectVal4.join(','));
|
|
52
49
|
});
|
|
50
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
51
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_multSelect")])) return null;
|
|
52
|
+
return _this.renderPc(undefined, r);
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
55
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_multSelect")];
|
|
56
|
+
});
|
|
53
57
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
58
|
var _findLabelBySelectVal5, _findLabelBySelectVal6, _ref2, _this$componentConfig3;
|
|
55
59
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
|
|
@@ -61,7 +65,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
61
65
|
return i.label;
|
|
62
66
|
})) === null || _findLabelBySelectVal6 === void 0 ? void 0 : _findLabelBySelectVal6.join(',');
|
|
63
67
|
});
|
|
64
|
-
_defineProperty(this, "editRender", function (
|
|
68
|
+
_defineProperty(this, "editRender", function () {
|
|
65
69
|
var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
|
|
66
70
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
71
|
title: _this.name,
|
|
@@ -83,6 +87,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
83
87
|
_defineProperty(this, "filterConfig", function (item) {
|
|
84
88
|
var _item$config;
|
|
85
89
|
return {
|
|
90
|
+
type: item.type,
|
|
86
91
|
id: item.id,
|
|
87
92
|
// 过滤组件id
|
|
88
93
|
name: item.name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
value?: string[];
|
|
5
5
|
other?: string;
|
|
@@ -14,12 +14,17 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
constructor(options: PickOption);
|
|
16
16
|
getValue: (value: Value) => string | null | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
|
+
renderLog: (r: Record) => any;
|
|
19
|
+
getComponentValue: (r: Record) => {
|
|
20
|
+
value: any;
|
|
21
|
+
other: any;
|
|
22
|
+
};
|
|
19
23
|
renderExport: (value: any, record: Record) => string;
|
|
20
|
-
renderClient: (record: any) => JSX.Element | null;
|
|
21
|
-
editRender: () => JSX.Element;
|
|
24
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
25
|
+
editRender: () => React.JSX.Element;
|
|
22
26
|
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
type: string;
|
|
23
28
|
id: string;
|
|
24
29
|
name: string;
|
|
25
30
|
filterComponentType: "MultipleSelect";
|
|
@@ -24,19 +24,16 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
24
24
|
_defineProperty(this, "children", void 0);
|
|
25
25
|
_defineProperty(this, "getValue", function (value) {
|
|
26
26
|
var _value$value, _value$value2, _value$value3;
|
|
27
|
-
if ((value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.length) === 0 &&
|
|
28
|
-
var findIndex =
|
|
27
|
+
if ((value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
|
|
28
|
+
var findIndex = value === null || value === void 0 ? void 0 : (_value$value2 = value.value) === null || _value$value2 === void 0 ? void 0 : _value$value2.findIndex(function (item) {
|
|
29
29
|
return item === '其他';
|
|
30
|
-
})
|
|
30
|
+
});
|
|
31
31
|
if (findIndex > -1 && value !== null && value !== void 0 && value.other) {
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
value.value[findIndex] = "\u5176\u4ED6(".concat(value === null || value === void 0 ? void 0 : value.other, ")");
|
|
34
34
|
}
|
|
35
35
|
return value === null || value === void 0 ? void 0 : (_value$value3 = value.value) === null || _value$value3 === void 0 ? void 0 : _value$value3.join('/');
|
|
36
36
|
});
|
|
37
|
-
_defineProperty(this, "render", function (value) {
|
|
38
|
-
return /*#__PURE__*/React.createElement("span", null, _this.getValue(value));
|
|
39
|
-
});
|
|
40
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
41
38
|
var _record;
|
|
42
39
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkbox")]) === undefined && (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkboxOther")]) === undefined) {
|
|
@@ -44,6 +41,23 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
44
41
|
}
|
|
45
42
|
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_checkbox")]) === null || _record === void 0 ? void 0 : _record.join('/'), (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkbox")]) && /*#__PURE__*/React.createElement("br", null), (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkboxOther")]) || '');
|
|
46
43
|
});
|
|
44
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
45
|
+
var _r;
|
|
46
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkbox")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")])) return null;
|
|
47
|
+
var restOtherOptions = (r === null || r === void 0 ? void 0 : (_r = r["".concat(_this.id, "_checkbox")]) === null || _r === void 0 ? void 0 : _r.filter(function (i) {
|
|
48
|
+
return i !== '其他';
|
|
49
|
+
})) || [];
|
|
50
|
+
if (!isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")])) {
|
|
51
|
+
return (restOtherOptions === null || restOtherOptions === void 0 ? void 0 : restOtherOptions.length) > 0 ? restOtherOptions.join('/').concat("/\u5176\u4ED6(".concat(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")], ")")) : "\u5176\u4ED6(".concat(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")], ")");
|
|
52
|
+
}
|
|
53
|
+
return restOtherOptions.join('/');
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
56
|
+
return {
|
|
57
|
+
value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkbox")],
|
|
58
|
+
other: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")]
|
|
59
|
+
};
|
|
60
|
+
});
|
|
47
61
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
62
|
var _record2;
|
|
49
63
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkbox")]) === undefined) {
|
|
@@ -71,6 +85,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
71
85
|
_defineProperty(this, "filterConfig", function (item) {
|
|
72
86
|
var _item$config, _item$config2, _item$config2$options, _item$config3;
|
|
73
87
|
return {
|
|
88
|
+
type: item.type,
|
|
74
89
|
id: item.id,
|
|
75
90
|
// 过滤组件id
|
|
76
91
|
name: item.name,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare type getFormItemProps = {
|
|
3
3
|
name: string;
|
|
4
4
|
title: string;
|
|
@@ -6,13 +6,13 @@ declare type getFormItemProps = {
|
|
|
6
6
|
required: boolean;
|
|
7
7
|
component: JSX.Element | string | null;
|
|
8
8
|
};
|
|
9
|
-
export declare const getFormItem: ({ name, title, rules, required, component }: getFormItemProps) => JSX.Element;
|
|
9
|
+
export declare const getFormItem: ({ name, title, rules, required, component }: getFormItemProps) => React.JSX.Element;
|
|
10
10
|
export declare const showImage: ({ item, type, index }: {
|
|
11
11
|
item: any;
|
|
12
12
|
type: string;
|
|
13
13
|
index: number;
|
|
14
|
-
}) => JSX.Element;
|
|
15
|
-
export declare const ShowTotalImage: ({ total, allImage, type }: any) => JSX.Element;
|
|
16
|
-
export declare const GoodImage: ({ list, type }: any) => JSX.Element | null;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export declare const ShowTotalImage: ({ total, allImage, type }: any) => React.JSX.Element;
|
|
16
|
+
export declare const GoodImage: ({ list, type }: any) => React.JSX.Element | null;
|
|
17
17
|
export declare const JstGoodImage: ({ list, type }: any) => any;
|
|
18
18
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* 针对完成时间、创建时间、修改时间定义了3中类型
|
|
5
5
|
*/
|
|
@@ -13,16 +13,18 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
constructor(options: PickOption);
|
|
15
15
|
getValue: (value: string) => string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
19
20
|
renderExport: (value: any, record: Record) => string;
|
|
20
21
|
editRender: () => null;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
type: string;
|
|
22
24
|
id: string;
|
|
23
25
|
name: string;
|
|
24
26
|
filterComponentType: "Date";
|
|
25
|
-
filterFn: (value: string[]) => (i: Record) =>
|
|
27
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
export default CommonDataTime;
|
|
@@ -26,10 +26,6 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
26
26
|
_defineProperty(this, "getValue", function (value) {
|
|
27
27
|
return moment(value).format('YYYY-MM-DD HH:mm:ss');
|
|
28
28
|
});
|
|
29
|
-
_defineProperty(this, "render", function (value) {
|
|
30
|
-
if (!value) return null;
|
|
31
|
-
return /*#__PURE__*/React.createElement("span", null, _this.getValue(value));
|
|
32
|
-
});
|
|
33
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
31
|
id: _this.id,
|
|
@@ -43,6 +39,13 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
43
39
|
}
|
|
44
40
|
return /*#__PURE__*/React.createElement("span", null, moment(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]).format('YYYY-MM-DD HH:mm:ss'));
|
|
45
41
|
});
|
|
42
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
43
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
44
|
+
return _this.renderPc(undefined, r);
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
47
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
48
|
+
});
|
|
46
49
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
50
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
48
51
|
return '--';
|
|
@@ -54,6 +57,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
54
57
|
});
|
|
55
58
|
_defineProperty(this, "filterConfig", function (item) {
|
|
56
59
|
return {
|
|
60
|
+
type: item.type,
|
|
57
61
|
id: item.id,
|
|
58
62
|
// 过滤组件id
|
|
59
63
|
name: item.name,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
3
3
|
declare class CompletedUser implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
@@ -9,12 +9,14 @@ declare class CompletedUser implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (value:
|
|
12
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
13
|
+
renderLog: () => null;
|
|
14
|
+
getComponentValue: (r: Record) => any;
|
|
13
15
|
renderExport: (value: any, record: Record) => any;
|
|
14
|
-
render: () => null;
|
|
15
16
|
renderClient: () => null;
|
|
16
17
|
editRender: () => null;
|
|
17
18
|
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
type: string;
|
|
18
20
|
id: string;
|
|
19
21
|
name: string;
|
|
20
22
|
filterComponentType: "MultipleSelect";
|
|
@@ -21,13 +21,16 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
21
21
|
var _record;
|
|
22
22
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
23
23
|
});
|
|
24
|
+
_defineProperty(this, "renderLog", function () {
|
|
25
|
+
return null;
|
|
26
|
+
});
|
|
27
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
28
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
29
|
+
});
|
|
24
30
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
25
31
|
var _record2;
|
|
26
32
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
27
33
|
});
|
|
28
|
-
_defineProperty(this, "render", function () {
|
|
29
|
-
return null;
|
|
30
|
-
});
|
|
31
34
|
_defineProperty(this, "renderClient", function () {
|
|
32
35
|
return null;
|
|
33
36
|
});
|
|
@@ -37,6 +40,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
37
40
|
_defineProperty(this, "filterConfig", function (item) {
|
|
38
41
|
var _this$effects;
|
|
39
42
|
return {
|
|
43
|
+
type: item.type,
|
|
40
44
|
id: item.id,
|
|
41
45
|
// 过滤组件id
|
|
42
46
|
name: item.name,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const DateType: ['DATE', 'DATE_TIME', 'DATE_RANGE', 'DATE_TIME_RANGE'];
|
|
3
3
|
export declare type ButtonType = typeof DateType[number];
|
|
4
4
|
export interface ApaasDate {
|
|
5
5
|
dateType?: ButtonType;
|
|
6
6
|
[propName: string]: any;
|
|
7
7
|
}
|
|
8
|
-
declare const Date: (props: ApaasDate) => JSX.Element;
|
|
8
|
+
declare const Date: (props: ApaasDate) => React.JSX.Element;
|
|
9
9
|
export default Date;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare type Value = string | string[] | undefined;
|
|
4
|
-
export declare const DateTime: ({ value, onChange, ...otherProps }: any) => JSX.Element;
|
|
4
|
+
export declare const DateTime: ({ value, onChange, ...otherProps }: any) => React.JSX.Element;
|
|
5
5
|
declare class BasicDataTime implements ComponentInterface {
|
|
6
6
|
name: string;
|
|
7
7
|
id: string;
|
|
@@ -12,17 +12,19 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
12
12
|
children: ComponentInterface[];
|
|
13
13
|
constructor(options: PickOption);
|
|
14
14
|
getValue: (value: Value) => string | undefined;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
18
19
|
renderExport: (value: any, record: Record) => any;
|
|
19
|
-
editRender: () => JSX.Element;
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "Date";
|
|
24
26
|
options: any[];
|
|
25
|
-
filterFn: (value: string[]) => (i: Record) =>
|
|
27
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
export default BasicDataTime;
|
|
@@ -42,9 +42,6 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
42
42
|
_defineProperty(this, "getValue", function (value) {
|
|
43
43
|
return Array.isArray(value) ? value.join('~') : value;
|
|
44
44
|
});
|
|
45
|
-
_defineProperty(this, "render", function (value) {
|
|
46
|
-
return /*#__PURE__*/React.createElement("span", null, _this.getValue(value));
|
|
47
|
-
});
|
|
48
45
|
_defineProperty(this, "renderClient", function (record) {
|
|
49
46
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
50
47
|
id: _this.id,
|
|
@@ -58,6 +55,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
58
55
|
}
|
|
59
56
|
return /*#__PURE__*/React.createElement("span", null, Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) ? record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")].join('~') : /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]));
|
|
60
57
|
});
|
|
58
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
59
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_dateTime")])) return null;
|
|
60
|
+
return _this.renderPc(undefined, r);
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
63
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_dateTime")];
|
|
64
|
+
});
|
|
61
65
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
62
66
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) === undefined) {
|
|
63
67
|
return '--';
|
|
@@ -77,6 +81,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
77
81
|
_defineProperty(this, "filterConfig", function (item) {
|
|
78
82
|
var _item$config;
|
|
79
83
|
return {
|
|
84
|
+
type: item.type,
|
|
80
85
|
id: item.id,
|
|
81
86
|
// 过滤组件id
|
|
82
87
|
name: item.name,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => React.JSX.Element;
|
|
3
3
|
export default ItemEncode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class EItemEncode implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,12 +10,14 @@ declare class EItemEncode implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
14
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
16
17
|
renderExport: (value: unknown, record: Record) => any;
|
|
17
|
-
editRender: () => JSX.Element;
|
|
18
|
+
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
19
21
|
id: string;
|
|
20
22
|
name: string;
|
|
21
23
|
filterComponentType: "Input";
|
|
@@ -24,17 +24,14 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
24
24
|
_defineProperty(this, "effects", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "render", function (value) {
|
|
28
|
-
return /*#__PURE__*/React.createElement(GoodImage, {
|
|
29
|
-
list: value,
|
|
30
|
-
type: "itemCode"
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
29
|
id: _this.id,
|
|
36
30
|
label: _this.name,
|
|
37
|
-
value:
|
|
31
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
32
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
33
|
+
type: "itemCode"
|
|
34
|
+
})
|
|
38
35
|
}) : null;
|
|
39
36
|
});
|
|
40
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -47,6 +44,13 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
47
44
|
type: "itemCode"
|
|
48
45
|
});
|
|
49
46
|
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
49
|
+
return _this.renderPc(undefined, r);
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
52
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
53
|
+
});
|
|
50
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
55
|
var _ref;
|
|
52
56
|
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
|
|
@@ -69,6 +73,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
69
73
|
});
|
|
70
74
|
_defineProperty(this, "filterConfig", function (item) {
|
|
71
75
|
return {
|
|
76
|
+
type: item.type,
|
|
72
77
|
id: item.id,
|
|
73
78
|
// 过滤组件id
|
|
74
79
|
name: item.name,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
3
|
+
declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
|
|
4
4
|
export default ItemId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class EItemId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,12 +10,14 @@ declare class EItemId implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
14
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
16
17
|
renderExport: (value: any, record: any) => any;
|
|
17
|
-
editRender: () => JSX.Element;
|
|
18
|
+
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
19
21
|
id: string;
|
|
20
22
|
name: string;
|
|
21
23
|
filterComponentType: "Input";
|