@kmkf-fe-packages/services-components 0.7.12-alpha.9 → 0.7.14-alpha.2
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 +3 -1
- package/dist/esm/components/ActualPayment/index.js +6 -1
- package/dist/esm/components/Address/index.d.ts +3 -1
- package/dist/esm/components/Address/index.js +6 -1
- package/dist/esm/components/Alipay/index.d.ts +3 -1
- package/dist/esm/components/Alipay/index.js +7 -2
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -1
- package/dist/esm/components/AlipayAccount/index.js +6 -1
- package/dist/esm/components/AlipayName/index.d.ts +3 -1
- package/dist/esm/components/AlipayName/index.js +6 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -1
- package/dist/esm/components/BuyerNick/index.js +7 -2
- package/dist/esm/components/Cascader/index.d.ts +3 -1
- package/dist/esm/components/Cascader/index.js +6 -1
- package/dist/esm/components/Checkbox/index.d.ts +5 -1
- package/dist/esm/components/Checkbox/index.js +13 -2
- package/dist/esm/components/CommonDataTime/index.d.ts +3 -0
- package/dist/esm/components/CommonDataTime/index.js +6 -0
- package/dist/esm/components/CompletedUser/index.d.ts +3 -0
- package/dist/esm/components/CompletedUser/index.js +8 -1
- package/dist/esm/components/DataTime/index.d.ts +4 -1
- package/dist/esm/components/DataTime/index.js +13 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
- package/dist/esm/components/EItemEnCode/index.js +6 -1
- package/dist/esm/components/EItemId/index.d.ts +3 -1
- package/dist/esm/components/EItemId/index.js +6 -1
- package/dist/esm/components/EItemSelect/index.d.ts +3 -1
- package/dist/esm/components/EItemSelect/index.js +6 -1
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -1
- package/dist/esm/components/ErpTradeId/index.js +6 -1
- package/dist/esm/components/Express/index.d.ts +4 -1
- package/dist/esm/components/Express/index.js +8 -1
- package/dist/esm/components/ExpressCode/index.d.ts +3 -1
- package/dist/esm/components/ExpressCode/index.js +6 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -1
- package/dist/esm/components/FlowStatusSelect/index.js +23 -7
- package/dist/esm/components/GetFormItem/index.d.ts +2 -1
- package/dist/esm/components/GetFormItem/index.js +5 -2
- package/dist/esm/components/Grade/index.d.ts +3 -1
- package/dist/esm/components/Grade/index.js +6 -1
- package/dist/esm/components/Handler/index.d.ts +3 -0
- package/dist/esm/components/Handler/index.js +8 -1
- package/dist/esm/components/Input/index.d.ts +3 -1
- package/dist/esm/components/Input/index.js +8 -2
- package/dist/esm/components/JstItemSelect/index.d.ts +3 -1
- package/dist/esm/components/JstItemSelect/index.js +6 -1
- package/dist/esm/components/JstLogistics/index.d.ts +3 -1
- package/dist/esm/components/JstLogistics/index.js +6 -1
- package/dist/esm/components/JstSendGood/index.d.ts +3 -1
- package/dist/esm/components/JstSendGood/index.js +6 -1
- package/dist/esm/components/JstSupply/index.d.ts +3 -1
- package/dist/esm/components/JstSupply/index.js +6 -1
- package/dist/esm/components/Logistics/index.d.ts +3 -1
- package/dist/esm/components/Logistics/index.js +7 -2
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +6 -1
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +6 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +6 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/index.js +6 -1
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +6 -0
- package/dist/esm/components/MultSelect/index.d.ts +4 -1
- package/dist/esm/components/MultSelect/index.js +10 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +6 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +6 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -6
- package/dist/esm/components/Ordinary/OrdinarySerial.js +5 -8
- package/dist/esm/components/Ordinary/index.d.ts +4 -6
- package/dist/esm/components/Ordinary/index.js +6 -9
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNick.js +6 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNo.js +6 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +4 -1
- package/dist/esm/components/Payment/AlipayTime.js +8 -1
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
- package/dist/esm/components/Payment/BuyerNick.js +6 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +6 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -0
- package/dist/esm/components/Payment/PaymentStatus.js +6 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentTid.js +6 -1
- package/dist/esm/components/Payment/index.d.ts +3 -1
- package/dist/esm/components/Payment/index.js +7 -2
- package/dist/esm/components/Picture/index.d.ts +3 -1
- package/dist/esm/components/Picture/index.js +6 -1
- package/dist/esm/components/PlatForm/index.d.ts +3 -0
- package/dist/esm/components/PlatForm/index.js +6 -0
- package/dist/esm/components/Radio/index.d.ts +5 -1
- package/dist/esm/components/Radio/index.js +13 -2
- package/dist/esm/components/Rate/index.d.ts +3 -1
- package/dist/esm/components/Rate/index.js +6 -1
- package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
- package/dist/esm/components/ReceiverAddress/index.js +6 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -1
- package/dist/esm/components/ReceiverMobile/index.js +7 -2
- package/dist/esm/components/ReceiverName/index.d.ts +3 -1
- package/dist/esm/components/ReceiverName/index.js +6 -1
- package/dist/esm/components/Remark/index.d.ts +3 -1
- package/dist/esm/components/Remark/index.js +6 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +4 -6
- package/dist/esm/components/ReturnLogistics/index.js +7 -9
- package/dist/esm/components/Select/index.d.ts +4 -1
- package/dist/esm/components/Select/index.js +10 -2
- package/dist/esm/components/ShopInput/index.d.ts +3 -0
- package/dist/esm/components/ShopInput/index.js +8 -1
- package/dist/esm/components/ShopName/index.d.ts +3 -1
- package/dist/esm/components/ShopName/index.js +6 -1
- package/dist/esm/components/Submitter/index.d.ts +3 -0
- package/dist/esm/components/Submitter/index.js +8 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -1
- package/dist/esm/components/SystemOrderNo/index.js +6 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
- package/dist/esm/components/TemplateSelect/index.js +8 -1
- package/dist/esm/components/TextArea/index.d.ts +3 -1
- package/dist/esm/components/TextArea/index.js +6 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -1
- package/dist/esm/components/ThirdItemSelect/index.js +6 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -6
- package/dist/esm/components/TradeDateTime/index.js +8 -9
- package/dist/esm/components/TradeId/index.d.ts +4 -6
- package/dist/esm/components/TradeId/index.js +8 -11
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -1
- package/dist/esm/components/WorkOrderId/index.js +6 -1
- package/dist/esm/type.d.ts +6 -0
- package/package.json +4 -4
|
@@ -26,8 +26,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
26
26
|
_defineProperty(this, "align", void 0);
|
|
27
27
|
_defineProperty(this, "width", void 0);
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
29
30
|
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
35
|
id: _this.id,
|
|
@@ -49,12 +51,13 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
49
51
|
_defineProperty(this, "renderExport", function (value) {
|
|
50
52
|
return value !== null && value !== void 0 ? value : '--';
|
|
51
53
|
});
|
|
52
|
-
_defineProperty(this, "editRender", function () {
|
|
54
|
+
_defineProperty(this, "editRender", function (p) {
|
|
53
55
|
var _this$componentConfig, _this$componentConfig2;
|
|
54
56
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
55
57
|
title: _this.name,
|
|
56
58
|
name: _this.id,
|
|
57
59
|
rules: _this.rules,
|
|
60
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
58
61
|
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,
|
|
59
62
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
60
63
|
});
|
|
@@ -130,11 +133,13 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
130
133
|
this.name = '打款金额';
|
|
131
134
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
132
135
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
136
|
+
this.formField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
133
137
|
this.type = options.type;
|
|
134
138
|
this.componentConfig = options.componentConfig;
|
|
135
139
|
this.isCombinationComponent = false;
|
|
136
140
|
this.canSort = true;
|
|
137
141
|
this.children = [];
|
|
142
|
+
this.dataType = 'number';
|
|
138
143
|
this.rules = [{
|
|
139
144
|
validator: function validator(_, value) {
|
|
140
145
|
if (/^(\d+)(\.\d{0,2})?$/.test(value)) {
|
|
@@ -17,8 +17,11 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
17
17
|
value: string;
|
|
18
18
|
}[];
|
|
19
19
|
isCombinationComponent: boolean;
|
|
20
|
+
formField: string;
|
|
20
21
|
canSort: boolean;
|
|
21
22
|
children: ComponentInterface[];
|
|
23
|
+
dataType: ComponentInterface['dataType'];
|
|
24
|
+
options: ComponentInterface['options'];
|
|
22
25
|
constructor(options: PickOption);
|
|
23
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
27
|
renderPc: (value: unknown, record: any) => any;
|
|
@@ -23,8 +23,11 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
23
23
|
_defineProperty(this, "paymentStatus", void 0);
|
|
24
24
|
_defineProperty(this, "paymentStatusOptions", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
|
+
_defineProperty(this, "options", void 0);
|
|
28
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
33
|
id: _this.id,
|
|
@@ -69,11 +72,13 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
69
72
|
this.name = '打款状态';
|
|
70
73
|
this.id = "".concat(options.id, "_enterprisePaymentStatus");
|
|
71
74
|
this.sortField = "".concat(options.id, "_enterprisePaymentStatus");
|
|
75
|
+
this.formField = "".concat(options.id, "_enterprisePaymentStatus");
|
|
72
76
|
this.type = options.type;
|
|
73
77
|
this.componentConfig = options.componentConfig;
|
|
74
78
|
this.rules = [];
|
|
75
79
|
this.align = 'left';
|
|
76
80
|
this.width = 200;
|
|
81
|
+
this.dataType = 'string';
|
|
77
82
|
this.paymentStatus = {
|
|
78
83
|
WAITING_EXAMINE: '未打款',
|
|
79
84
|
EXAMINED: '审核通过',
|
|
@@ -105,6 +110,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
105
110
|
label: '支付宝打款关闭',
|
|
106
111
|
value: '支付宝打款关闭'
|
|
107
112
|
}];
|
|
113
|
+
this.options = this.paymentStatusOptions;
|
|
108
114
|
this.isCombinationComponent = false;
|
|
109
115
|
this.canSort = true;
|
|
110
116
|
this.children = [];
|
|
@@ -10,15 +10,17 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
10
10
|
align: ALignType;
|
|
11
11
|
width: number;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
15
17
|
constructor(options: PickOption);
|
|
16
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
19
|
renderPc: (value: unknown, record: any) => React.JSX.Element;
|
|
18
20
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
21
|
getComponentValue: (r: Record) => any;
|
|
20
22
|
renderExport: (value: string) => string;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
23
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
24
|
filterConfig: (item: ColumnConfig) => {
|
|
23
25
|
searchDefaultConditions: "in";
|
|
24
26
|
type: string;
|
|
@@ -23,8 +23,10 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
23
23
|
_defineProperty(this, "align", void 0);
|
|
24
24
|
_defineProperty(this, "width", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
32
|
id: _this.id,
|
|
@@ -46,12 +48,13 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
46
48
|
_defineProperty(this, "renderExport", function (value) {
|
|
47
49
|
return value !== null && value !== void 0 ? value : '--';
|
|
48
50
|
});
|
|
49
|
-
_defineProperty(this, "editRender", function () {
|
|
51
|
+
_defineProperty(this, "editRender", function (p) {
|
|
50
52
|
var _this$componentConfig, _this$componentConfig2;
|
|
51
53
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
52
54
|
title: _this.name,
|
|
53
55
|
name: _this.id,
|
|
54
56
|
rules: _this.rules,
|
|
57
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
55
58
|
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,
|
|
56
59
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
57
60
|
});
|
|
@@ -76,6 +79,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
76
79
|
this.name = '订单编号';
|
|
77
80
|
this.id = "".concat(options.id, "_enterprisePaymentTid");
|
|
78
81
|
this.sortField = "".concat(options.id, "_enterprisePaymentTid");
|
|
82
|
+
this.formField = "".concat(options.id, "_enterprisePaymentTid");
|
|
79
83
|
this.type = options.type;
|
|
80
84
|
this.componentConfig = options.componentConfig;
|
|
81
85
|
this.rules = [];
|
|
@@ -84,5 +88,6 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
84
88
|
this.isCombinationComponent = false;
|
|
85
89
|
this.canSort = true;
|
|
86
90
|
this.children = [];
|
|
91
|
+
this.dataType = 'string';
|
|
87
92
|
});
|
|
88
93
|
export default PaymentTid;
|
|
@@ -22,8 +22,10 @@ declare class Logistics implements ComponentInterface {
|
|
|
22
22
|
alipayNo: AlipayNo;
|
|
23
23
|
payTime: AlipayTime;
|
|
24
24
|
isCombinationComponent: boolean;
|
|
25
|
+
formField: string;
|
|
25
26
|
canSort: boolean;
|
|
26
27
|
children: ComponentInterface[];
|
|
28
|
+
dataType: ComponentInterface['dataType'];
|
|
27
29
|
constructor(options: PickOption);
|
|
28
30
|
renderClient: (record: any, params: any) => React.JSX.Element;
|
|
29
31
|
renderPc: () => null;
|
|
@@ -38,7 +40,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
38
40
|
enterprisePaymentTime: any;
|
|
39
41
|
};
|
|
40
42
|
renderExport: () => null;
|
|
41
|
-
editRender: (
|
|
43
|
+
editRender: (p: any) => React.JSX.Element;
|
|
42
44
|
filterConfig: (item: ColumnConfig) => ({
|
|
43
45
|
searchDefaultConditions: "eq";
|
|
44
46
|
type: string;
|
|
@@ -35,8 +35,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
35
35
|
_defineProperty(this, "alipayNo", void 0);
|
|
36
36
|
_defineProperty(this, "payTime", void 0);
|
|
37
37
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
38
|
+
_defineProperty(this, "formField", void 0);
|
|
38
39
|
_defineProperty(this, "canSort", void 0);
|
|
39
40
|
_defineProperty(this, "children", void 0);
|
|
41
|
+
_defineProperty(this, "dataType", void 0);
|
|
40
42
|
_defineProperty(this, "renderClient", function (record, params) {
|
|
41
43
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record, params), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
|
|
42
44
|
});
|
|
@@ -60,15 +62,16 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
60
62
|
_defineProperty(this, "renderExport", function () {
|
|
61
63
|
return null;
|
|
62
64
|
});
|
|
63
|
-
_defineProperty(this, "editRender", function (
|
|
65
|
+
_defineProperty(this, "editRender", function (p) {
|
|
64
66
|
var _this$componentConfig, _this$componentConfig2;
|
|
65
67
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
66
68
|
title: _this.name,
|
|
67
69
|
name: _this.id,
|
|
68
70
|
rules: _this.rules,
|
|
71
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
69
72
|
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,
|
|
70
73
|
component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
|
|
71
|
-
onBlur:
|
|
74
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
72
75
|
}))
|
|
73
76
|
});
|
|
74
77
|
});
|
|
@@ -78,6 +81,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
78
81
|
this.name = options.name;
|
|
79
82
|
this.id = options.id;
|
|
80
83
|
this.sortField = options.id;
|
|
84
|
+
this.formField = options.id;
|
|
81
85
|
this.type = options.type;
|
|
82
86
|
this.componentConfig = options.componentConfig;
|
|
83
87
|
this.paymentTid = new PaymentTid(options);
|
|
@@ -120,5 +124,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
120
124
|
return Promise.resolve();
|
|
121
125
|
}
|
|
122
126
|
}];
|
|
127
|
+
this.dataType = 'object';
|
|
123
128
|
});
|
|
124
129
|
export default Logistics;
|
|
@@ -9,8 +9,10 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
9
9
|
rules: any[];
|
|
10
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
formatPictures: (pictures: string) => string[];
|
|
16
18
|
render: (value: Value) => React.JSX.Element | null;
|
|
@@ -18,7 +20,7 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
18
20
|
renderLog: (r: Record) => React.JSX.Element | React.JSX.Element[] | null;
|
|
19
21
|
getComponentValue: (r: Record) => any;
|
|
20
22
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
23
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
24
|
/**
|
|
23
25
|
*
|
|
24
26
|
* @returns 图片类型的导出需要在导出时单独处理
|
|
@@ -23,8 +23,10 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
23
23
|
_defineProperty(this, "rules", void 0);
|
|
24
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
30
|
_defineProperty(this, "formatPictures", function (pictures) {
|
|
29
31
|
pictures = pictures.replace(/[\[\]]/g, '');
|
|
30
32
|
pictures = pictures.replace(/\s/g, '');
|
|
@@ -85,12 +87,13 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
85
87
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
86
88
|
}) : null;
|
|
87
89
|
});
|
|
88
|
-
_defineProperty(this, "editRender", function () {
|
|
90
|
+
_defineProperty(this, "editRender", function (p) {
|
|
89
91
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
|
|
90
92
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
91
93
|
title: _this.name,
|
|
92
94
|
name: _this.id,
|
|
93
95
|
rules: _this.rules,
|
|
96
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
94
97
|
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,
|
|
95
98
|
component: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingleShop ? /*#__PURE__*/React.createElement(ApaasUpload, _this.componentConfig) : /*#__PURE__*/React.createElement(ApaasUploadAsync, _extends({}, _this.componentConfig, {
|
|
96
99
|
uniqueKey: _this.id,
|
|
@@ -107,11 +110,13 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
107
110
|
this.name = options.name;
|
|
108
111
|
this.id = options.id;
|
|
109
112
|
this.sortField = "".concat(options.id, "_picture");
|
|
113
|
+
this.formField = "".concat(options.id, "_picture");
|
|
110
114
|
this.type = options.type;
|
|
111
115
|
this.componentConfig = options.componentConfig;
|
|
112
116
|
this.rules = [];
|
|
113
117
|
this.isCombinationComponent = false;
|
|
114
118
|
this.canSort = true;
|
|
115
119
|
this.children = [];
|
|
120
|
+
this.dataType = 'string';
|
|
116
121
|
});
|
|
117
122
|
export default BasicPicture;
|
|
@@ -8,9 +8,12 @@ declare class PlatForm implements ComponentInterface {
|
|
|
8
8
|
type: string;
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
11
12
|
canSort: boolean;
|
|
12
13
|
children: ComponentInterface[];
|
|
13
14
|
platInstance: InstanceType<typeof PlatData>;
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
|
+
options: ComponentInterface['options'];
|
|
14
17
|
constructor();
|
|
15
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
19
|
renderExport: (value: any, record: Record) => string;
|
|
@@ -17,9 +17,12 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
17
17
|
_defineProperty(this, "type", void 0);
|
|
18
18
|
_defineProperty(this, "componentConfig", void 0);
|
|
19
19
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
20
|
+
_defineProperty(this, "formField", void 0);
|
|
20
21
|
_defineProperty(this, "canSort", void 0);
|
|
21
22
|
_defineProperty(this, "children", void 0);
|
|
22
23
|
_defineProperty(this, "platInstance", void 0);
|
|
24
|
+
_defineProperty(this, "dataType", void 0);
|
|
25
|
+
_defineProperty(this, "options", void 0);
|
|
23
26
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
24
27
|
var _platMap$record;
|
|
25
28
|
var platMap = _this.platInstance.getPlatMap();
|
|
@@ -65,9 +68,12 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
65
68
|
this.id = "platform";
|
|
66
69
|
this.type = "PLATFORM_INPUT";
|
|
67
70
|
this.sortField = 'platform';
|
|
71
|
+
this.formField = 'platform';
|
|
68
72
|
this.isCombinationComponent = false;
|
|
69
73
|
this.canSort = false;
|
|
70
74
|
this.children = [];
|
|
71
75
|
this.platInstance = PlatData.getInstance();
|
|
76
|
+
this.dataType = 'string';
|
|
77
|
+
this.options = this.platInstance.getPlatSelectList();
|
|
72
78
|
});
|
|
73
79
|
export default PlatForm;
|
|
@@ -12,8 +12,11 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
12
12
|
rules: any[];
|
|
13
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
15
16
|
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
18
|
+
dataType: ComponentInterface['dataType'];
|
|
19
|
+
options: ComponentInterface['options'];
|
|
17
20
|
constructor(options: PickOption);
|
|
18
21
|
render: (value: Value) => React.JSX.Element;
|
|
19
22
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -24,7 +27,7 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
24
27
|
};
|
|
25
28
|
renderExport: (value: any, record: Record) => string;
|
|
26
29
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
27
|
-
editRender: () => React.JSX.Element;
|
|
30
|
+
editRender: (p: any) => React.JSX.Element;
|
|
28
31
|
filterConfig: (item: ColumnConfig) => {
|
|
29
32
|
searchDefaultConditions: "in";
|
|
30
33
|
type: string;
|
|
@@ -36,5 +39,6 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
36
39
|
};
|
|
37
40
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
41
|
};
|
|
42
|
+
formDataTransform: (v: Value) => string | undefined;
|
|
39
43
|
}
|
|
40
44
|
export default BasicRadio;
|
|
@@ -14,7 +14,8 @@ import get from 'lodash/get';
|
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
16
16
|
var _this = this,
|
|
17
|
-
_this$componentConfig3
|
|
17
|
+
_this$componentConfig3,
|
|
18
|
+
_this$componentConfig4;
|
|
18
19
|
_classCallCheck(this, BasicRadio);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
@@ -23,8 +24,11 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
26
28
|
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "options", void 0);
|
|
28
32
|
_defineProperty(this, "render", function (value) {
|
|
29
33
|
var _value$value;
|
|
30
34
|
return /*#__PURE__*/React.createElement("span", null, value === null || value === void 0 ? void 0 : value.value, (value === null || value === void 0 ? void 0 : value.value) && (value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.indexOf('其他')) > -1 && (value === null || value === void 0 ? void 0 : value.other) && "(".concat(value === null || value === void 0 ? void 0 : value.other, ")"));
|
|
@@ -58,12 +62,13 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
58
62
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
59
63
|
}) : null;
|
|
60
64
|
});
|
|
61
|
-
_defineProperty(this, "editRender", function () {
|
|
65
|
+
_defineProperty(this, "editRender", function (p) {
|
|
62
66
|
var _this$componentConfig, _this$componentConfig2;
|
|
63
67
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
64
68
|
title: _this.name,
|
|
65
69
|
name: _this.id,
|
|
66
70
|
rules: _this.rules,
|
|
71
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
67
72
|
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,
|
|
68
73
|
component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
|
|
69
74
|
});
|
|
@@ -91,12 +96,16 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
91
96
|
} // 第一个为选中值,第二个参数为表格行记录值
|
|
92
97
|
};
|
|
93
98
|
});
|
|
99
|
+
_defineProperty(this, "formDataTransform", function (v) {
|
|
100
|
+
return v === null || v === void 0 ? void 0 : v.value;
|
|
101
|
+
});
|
|
94
102
|
this.name = options.name;
|
|
95
103
|
this.id = options.id;
|
|
96
104
|
this.type = options.type;
|
|
97
105
|
this.isCombinationComponent = false;
|
|
98
106
|
this.canSort = true;
|
|
99
107
|
this.sortField = "".concat(options.id, "_radio");
|
|
108
|
+
this.formField = "".concat(options.id, "_radio");
|
|
100
109
|
this.children = [];
|
|
101
110
|
this.componentConfig = options.componentConfig;
|
|
102
111
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
@@ -107,5 +116,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
107
116
|
return Promise.resolve();
|
|
108
117
|
}
|
|
109
118
|
}] : [];
|
|
119
|
+
this.dataType = 'string';
|
|
120
|
+
this.options = ((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.options) || [];
|
|
110
121
|
});
|
|
111
122
|
export default BasicRadio;
|
|
@@ -16,8 +16,10 @@ declare class BasicRate implements ComponentInterface {
|
|
|
16
16
|
[prop in number]: string;
|
|
17
17
|
};
|
|
18
18
|
isCombinationComponent: boolean;
|
|
19
|
+
formField: string;
|
|
19
20
|
canSort: boolean;
|
|
20
21
|
children: ComponentInterface[];
|
|
22
|
+
dataType: ComponentInterface['dataType'];
|
|
21
23
|
constructor(options: PickOption);
|
|
22
24
|
render: (value: Value) => React.JSX.Element;
|
|
23
25
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -25,7 +27,7 @@ declare class BasicRate implements ComponentInterface {
|
|
|
25
27
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
26
28
|
getComponentValue: (r: Record) => any;
|
|
27
29
|
renderExport: (value: any, record: any) => any;
|
|
28
|
-
editRender: () => React.JSX.Element;
|
|
30
|
+
editRender: (p: any) => React.JSX.Element;
|
|
29
31
|
filterConfig: () => never[];
|
|
30
32
|
}
|
|
31
33
|
export default BasicRate;
|
|
@@ -23,8 +23,10 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
23
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
24
|
_defineProperty(this, "rateMap", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
30
|
_defineProperty(this, "render", function (value) {
|
|
29
31
|
return /*#__PURE__*/React.createElement("div", null, value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
30
32
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -100,12 +102,13 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
100
102
|
}, [])) || [];
|
|
101
103
|
return textArr === null || textArr === void 0 ? void 0 : textArr.join(';');
|
|
102
104
|
});
|
|
103
|
-
_defineProperty(this, "editRender", function () {
|
|
105
|
+
_defineProperty(this, "editRender", function (p) {
|
|
104
106
|
var _this$componentConfig, _this$componentConfig2;
|
|
105
107
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
106
108
|
title: _this.name,
|
|
107
109
|
name: _this.id,
|
|
108
110
|
rules: _this.rules,
|
|
111
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
109
112
|
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,
|
|
110
113
|
component: /*#__PURE__*/React.createElement(ApaasRate, _extends({}, _this.componentConfig, {
|
|
111
114
|
allowClear: false,
|
|
@@ -124,12 +127,14 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
124
127
|
this.name = options.name;
|
|
125
128
|
this.id = options.id;
|
|
126
129
|
this.sortField = "".concat(options.id, "_rate");
|
|
130
|
+
this.formField = "".concat(options.id, "_rate");
|
|
127
131
|
this.type = options.type;
|
|
128
132
|
this.componentConfig = options.componentConfig;
|
|
129
133
|
this.isCombinationComponent = false;
|
|
130
134
|
this.canSort = true;
|
|
131
135
|
this.children = [];
|
|
132
136
|
this.rules = [];
|
|
137
|
+
this.dataType = 'object';
|
|
133
138
|
this.rateMap = {
|
|
134
139
|
0: '',
|
|
135
140
|
0.5: '非常差',
|
|
@@ -14,9 +14,11 @@ declare class BasicInput implements ComponentInterface {
|
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
effects: ComponentInterface["effects"];
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
|
+
formField: string;
|
|
17
18
|
canSort: boolean;
|
|
18
19
|
children: ComponentInterface[];
|
|
19
20
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
21
|
+
dataType: ComponentInterface['dataType'];
|
|
20
22
|
constructor(options: PickOption);
|
|
21
23
|
render: (value: Value) => React.JSX.Element;
|
|
22
24
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
@@ -28,7 +30,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
28
30
|
};
|
|
29
31
|
renderExport: (value: any, record: any) => string;
|
|
30
32
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
31
|
-
editRender: () => React.JSX.Element;
|
|
33
|
+
editRender: (p: any) => React.JSX.Element;
|
|
32
34
|
filterConfig: () => never[];
|
|
33
35
|
}
|
|
34
36
|
export default BasicInput;
|
|
@@ -24,9 +24,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(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, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
32
|
_defineProperty(this, "render", function (value) {
|
|
31
33
|
var _value$address;
|
|
32
34
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -91,12 +93,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
91
93
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
92
94
|
}) : null;
|
|
93
95
|
});
|
|
94
|
-
_defineProperty(this, "editRender", function () {
|
|
96
|
+
_defineProperty(this, "editRender", function (p) {
|
|
95
97
|
var _this$componentConfig, _this$componentConfig2;
|
|
96
98
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
97
99
|
title: _this.name,
|
|
98
100
|
name: _this.id,
|
|
99
101
|
rules: _this.rules,
|
|
102
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
100
103
|
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,
|
|
101
104
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
102
105
|
});
|
|
@@ -107,6 +110,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
107
110
|
this.name = options.name;
|
|
108
111
|
this.id = options.id;
|
|
109
112
|
this.sortField = options.id;
|
|
113
|
+
this.formField = options.id;
|
|
110
114
|
this.type = options.type;
|
|
111
115
|
this.componentConfig = options.componentConfig;
|
|
112
116
|
this.isCombinationComponent = false;
|
|
@@ -126,5 +130,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
126
130
|
}] : [];
|
|
127
131
|
this.effects = options.effects;
|
|
128
132
|
this.addressDateInstance = AddressData.getInstance();
|
|
133
|
+
this.dataType = 'object';
|
|
129
134
|
});
|
|
130
135
|
export default BasicInput;
|
|
@@ -9,15 +9,17 @@ declare class ReceiverMobile implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
20
|
getComponentValue: (r: Record) => any;
|
|
19
21
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: (
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
22
24
|
searchDefaultConditions: "eq";
|
|
23
25
|
type: string;
|
|
@@ -23,8 +23,10 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
23
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
24
|
_defineProperty(this, "effects", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
32
|
id: _this.id,
|
|
@@ -54,17 +56,18 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
54
56
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
57
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")];
|
|
56
58
|
});
|
|
57
|
-
_defineProperty(this, "editRender", function (
|
|
59
|
+
_defineProperty(this, "editRender", function (p) {
|
|
58
60
|
var _this$componentConfig, _this$componentConfig2;
|
|
59
61
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
60
62
|
title: _this.name,
|
|
61
63
|
name: _this.id,
|
|
62
64
|
rules: _this.rules,
|
|
65
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
63
66
|
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,
|
|
64
67
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
65
68
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
66
69
|
onBlur: function onBlur(e) {
|
|
67
|
-
|
|
70
|
+
p === null || p === void 0 ? void 0 : p.onBlur(e.target.value, 'receiveMobile');
|
|
68
71
|
}
|
|
69
72
|
}))
|
|
70
73
|
});
|
|
@@ -88,6 +91,7 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
88
91
|
this.name = options.name;
|
|
89
92
|
this.id = options.id;
|
|
90
93
|
this.sortField = "".concat(options.id, "_receiveMobile");
|
|
94
|
+
this.formField = "".concat(options.id, "_receiveMobile");
|
|
91
95
|
this.type = options.type;
|
|
92
96
|
this.componentConfig = options.componentConfig;
|
|
93
97
|
this.rules = [];
|
|
@@ -95,5 +99,6 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
95
99
|
this.isCombinationComponent = false;
|
|
96
100
|
this.canSort = true;
|
|
97
101
|
this.children = [];
|
|
102
|
+
this.dataType = 'string';
|
|
98
103
|
});
|
|
99
104
|
export default ReceiverMobile;
|
|
@@ -9,15 +9,17 @@ declare class ReceiverName implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
20
|
getComponentValue: (r: Record) => any;
|
|
19
21
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
22
24
|
searchDefaultConditions: "eq";
|
|
23
25
|
type: string;
|