@kmkf-fe-packages/services-components 0.6.3 → 0.7.1-alpha.0
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 +1 -1
- package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- 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 +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/components/ActualPayment/index.d.ts +12 -13
- package/dist/esm/components/ActualPayment/index.js +28 -26
- package/dist/esm/components/Address/index.d.ts +9 -16
- package/dist/esm/components/Address/index.js +17 -26
- package/dist/esm/components/Alipay/index.d.ts +15 -19
- package/dist/esm/components/Alipay/index.js +15 -20
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -15
- package/dist/esm/components/AlipayAccount/index.js +29 -28
- package/dist/esm/components/AlipayName/index.d.ts +13 -15
- package/dist/esm/components/AlipayName/index.js +29 -28
- package/dist/esm/components/BuyerNick/index.d.ts +14 -15
- package/dist/esm/components/BuyerNick/index.js +41 -28
- package/dist/esm/components/Cascader/index.d.ts +13 -25
- package/dist/esm/components/Cascader/index.js +38 -31
- package/dist/esm/components/Checkbox/index.d.ts +15 -11
- package/dist/esm/components/Checkbox/index.js +45 -26
- package/dist/esm/components/CommonDataTime/index.d.ts +11 -11
- package/dist/esm/components/CommonDataTime/index.js +27 -24
- package/dist/esm/components/CompletedUser/index.d.ts +30 -0
- package/dist/esm/components/CompletedUser/index.js +64 -0
- package/dist/esm/components/DataTime/index.d.ts +12 -11
- package/dist/esm/components/DataTime/index.js +30 -26
- package/dist/esm/components/EItemEnCode/index.d.ts +11 -11
- package/dist/esm/components/EItemEnCode/index.js +34 -27
- package/dist/esm/components/EItemId/index.d.ts +11 -11
- package/dist/esm/components/EItemId/index.js +34 -27
- package/dist/esm/components/EItemSelect/index.d.ts +6 -12
- package/dist/esm/components/EItemSelect/index.js +16 -24
- package/dist/esm/components/ErpTradeId/index.d.ts +12 -13
- package/dist/esm/components/ErpTradeId/index.js +28 -26
- package/dist/esm/components/Express/index.d.ts +15 -17
- package/dist/esm/components/Express/index.js +30 -36
- package/dist/esm/components/ExpressCode/index.d.ts +16 -18
- package/dist/esm/components/ExpressCode/index.js +34 -32
- package/dist/esm/components/FlowStatusSelect/index.d.ts +16 -34
- package/dist/esm/components/FlowStatusSelect/index.js +38 -25
- 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 -12
- package/dist/esm/components/Grade/index.js +14 -23
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +74 -0
- package/dist/esm/components/Input/index.d.ts +11 -12
- package/dist/esm/components/Input/index.js +29 -28
- package/dist/esm/components/JstItemSelect/index.d.ts +13 -13
- package/dist/esm/components/JstItemSelect/index.js +48 -28
- package/dist/esm/components/JstLogistics/index.d.ts +21 -13
- package/dist/esm/components/JstLogistics/index.js +50 -29
- package/dist/esm/components/JstSendGood/index.d.ts +12 -12
- package/dist/esm/components/JstSendGood/index.js +54 -29
- package/dist/esm/components/JstSupply/index.d.ts +12 -12
- package/dist/esm/components/JstSupply/index.js +54 -29
- package/dist/esm/components/Logistics/index.d.ts +23 -27
- package/dist/esm/components/Logistics/index.js +19 -20
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
- 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 +36 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
- 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 +75 -0
- package/dist/esm/components/LogisticsInterception/index.js +136 -0
- 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 +12 -12
- package/dist/esm/components/MultSelect/index.js +31 -24
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +11 -17
- package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
- package/dist/esm/components/Ordinary/index.d.ts +17 -24
- package/dist/esm/components/Ordinary/index.js +20 -12
- package/dist/esm/components/Payment/AlipayNick.d.ts +11 -22
- package/dist/esm/components/Payment/AlipayNick.js +29 -34
- package/dist/esm/components/Payment/AlipayNo.d.ts +11 -21
- package/dist/esm/components/Payment/AlipayNo.js +29 -34
- package/dist/esm/components/Payment/AlipayTime.d.ts +11 -23
- package/dist/esm/components/Payment/AlipayTime.js +26 -35
- package/dist/esm/components/Payment/BuyerNick.d.ts +11 -22
- package/dist/esm/components/Payment/BuyerNick.js +26 -32
- package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentAmount.js +24 -30
- package/dist/esm/components/Payment/PaymentStatus.d.ts +17 -29
- package/dist/esm/components/Payment/PaymentStatus.js +48 -41
- package/dist/esm/components/Payment/PaymentTid.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentTid.js +24 -30
- package/dist/esm/components/Payment/index.d.ts +36 -97
- package/dist/esm/components/Payment/index.js +22 -20
- package/dist/esm/components/Picture/index.d.ts +11 -11
- package/dist/esm/components/Picture/index.js +14 -19
- package/dist/esm/components/PlatForm/index.d.ts +31 -0
- package/dist/esm/components/PlatForm/index.js +67 -0
- package/dist/esm/components/Radio/index.d.ts +15 -10
- package/dist/esm/components/Radio/index.js +34 -20
- package/dist/esm/components/Rate/index.d.ts +6 -11
- package/dist/esm/components/Rate/index.js +17 -30
- package/dist/esm/components/ReceiverAddress/index.d.ts +11 -14
- package/dist/esm/components/ReceiverAddress/index.js +22 -29
- package/dist/esm/components/ReceiverMobile/index.d.ts +11 -12
- package/dist/esm/components/ReceiverMobile/index.js +29 -27
- package/dist/esm/components/ReceiverName/index.d.ts +11 -12
- package/dist/esm/components/ReceiverName/index.js +29 -27
- package/dist/esm/components/Remark/index.d.ts +14 -11
- package/dist/esm/components/Remark/index.js +31 -23
- package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
- package/dist/esm/components/ReturnLogistics/index.js +19 -10
- package/dist/esm/components/Select/index.d.ts +12 -11
- package/dist/esm/components/Select/index.js +28 -23
- package/dist/esm/components/ShopInput/index.d.ts +28 -0
- package/dist/esm/components/ShopInput/index.js +76 -0
- package/dist/esm/components/ShopName/index.d.ts +12 -13
- package/dist/esm/components/ShopName/index.js +28 -25
- package/dist/esm/components/Submitter/index.d.ts +30 -0
- package/dist/esm/components/Submitter/index.js +64 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +13 -14
- package/dist/esm/components/SystemOrderNo/index.js +27 -25
- package/dist/esm/components/TemplateSelect/index.d.ts +13 -13
- package/dist/esm/components/TemplateSelect/index.js +29 -24
- package/dist/esm/components/TextArea/index.d.ts +11 -11
- package/dist/esm/components/TextArea/index.js +27 -24
- package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -11
- package/dist/esm/components/ThirdItemSelect/index.js +36 -28
- package/dist/esm/components/TradeDateTime/index.d.ts +13 -5
- package/dist/esm/components/TradeDateTime/index.js +52 -17
- package/dist/esm/components/TradeId/index.d.ts +11 -6
- package/dist/esm/components/TradeId/index.js +27 -14
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -12
- package/dist/esm/components/WorkOrderId/index.js +36 -29
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +52 -40
- package/dist/esm/index.js +13 -1
- package/dist/esm/type.d.ts +53 -45
- package/package.json +10 -5
|
@@ -7,7 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
7
7
|
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); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
11
|
var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
12
12
|
var _this = this;
|
|
13
13
|
_classCallCheck(this, PaymentStatus);
|
|
@@ -15,18 +15,13 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
15
15
|
_defineProperty(this, "id", void 0);
|
|
16
16
|
_defineProperty(this, "type", void 0);
|
|
17
17
|
_defineProperty(this, "rules", void 0);
|
|
18
|
-
_defineProperty(this, "canFilter", void 0);
|
|
19
|
-
_defineProperty(this, "canGroup", void 0);
|
|
20
|
-
_defineProperty(this, "canHidden", void 0);
|
|
21
|
-
_defineProperty(this, "dataType", void 0);
|
|
22
|
-
_defineProperty(this, "showContains", void 0);
|
|
23
18
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
19
|
_defineProperty(this, "align", void 0);
|
|
25
20
|
_defineProperty(this, "width", void 0);
|
|
26
21
|
_defineProperty(this, "paymentStatus", void 0);
|
|
27
|
-
_defineProperty(this, "
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
_defineProperty(this, "paymentStatusOptions", void 0);
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
30
25
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
26
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
27
|
id: _this.id,
|
|
@@ -35,51 +30,39 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
35
30
|
}) : null;
|
|
36
31
|
});
|
|
37
32
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
|
-
|
|
33
|
+
var _record$_this$id;
|
|
34
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
37
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
38
|
+
return _this.renderPc(undefined, r);
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
41
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
39
42
|
});
|
|
40
43
|
_defineProperty(this, "renderExport", function (value) {
|
|
41
44
|
return value !== null && value !== void 0 ? value : '--';
|
|
42
45
|
});
|
|
43
|
-
_defineProperty(this, "editRender", function (
|
|
46
|
+
_defineProperty(this, "editRender", function () {
|
|
44
47
|
return null;
|
|
45
48
|
});
|
|
46
|
-
_defineProperty(this, "
|
|
49
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
47
50
|
return {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
type: _this.type,
|
|
57
|
-
render: _this.renderPc,
|
|
58
|
-
renderPc: _this.renderPc,
|
|
59
|
-
componentType: _this.editRender,
|
|
60
|
-
showContains: _this.showContains,
|
|
61
|
-
renderExport: _this.renderExport,
|
|
62
|
-
widget: 'selectMultiple',
|
|
63
|
-
'x-options': Object.keys(_this.paymentStatus).map(function (item) {
|
|
64
|
-
return {
|
|
65
|
-
label: _this.paymentStatus[item],
|
|
66
|
-
value: _this.paymentStatus[item]
|
|
51
|
+
type: item.type,
|
|
52
|
+
id: "".concat(item.id, "_enterprisePaymentStatus"),
|
|
53
|
+
name: "".concat(item.name, "-\u6253\u6B3E\u72B6\u6001"),
|
|
54
|
+
filterComponentType: 'MultipleSelect',
|
|
55
|
+
options: _this.paymentStatusOptions,
|
|
56
|
+
filterFn: function filterFn(value) {
|
|
57
|
+
return function (i) {
|
|
58
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentStatus'));
|
|
67
59
|
};
|
|
68
|
-
}
|
|
69
|
-
'x-style': {
|
|
70
|
-
width: '356px'
|
|
71
|
-
},
|
|
72
|
-
'x-placeholder': '请选择内容'
|
|
60
|
+
}
|
|
73
61
|
};
|
|
74
62
|
});
|
|
75
63
|
this.name = '打款状态';
|
|
76
64
|
this.id = "".concat(options.id, "_enterprisePaymentStatus");
|
|
77
65
|
this.type = options.type;
|
|
78
|
-
this.canFilter = true;
|
|
79
|
-
this.canGroup = true;
|
|
80
|
-
this.canHidden = false;
|
|
81
|
-
this.showContains = false;
|
|
82
|
-
this.dataType = 'string';
|
|
83
66
|
this.componentConfig = options.componentConfig;
|
|
84
67
|
this.rules = [];
|
|
85
68
|
this.align = 'left';
|
|
@@ -93,5 +76,29 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
93
76
|
ALI_PAY_FAIL: '支付宝打款失败',
|
|
94
77
|
ALI_PAY_CLOSE: '支付宝打款关闭'
|
|
95
78
|
};
|
|
79
|
+
this.paymentStatusOptions = [{
|
|
80
|
+
label: '未打款',
|
|
81
|
+
value: '未打款'
|
|
82
|
+
}, {
|
|
83
|
+
label: '审核通过',
|
|
84
|
+
value: '审核通过'
|
|
85
|
+
}, {
|
|
86
|
+
label: '标记已打款',
|
|
87
|
+
value: '标记已打款'
|
|
88
|
+
}, {
|
|
89
|
+
label: '支付宝待付款',
|
|
90
|
+
value: '支付宝待付款'
|
|
91
|
+
}, {
|
|
92
|
+
label: '支付宝打款成功',
|
|
93
|
+
value: '支付宝打款成功'
|
|
94
|
+
}, {
|
|
95
|
+
label: '支付宝打款失败',
|
|
96
|
+
value: '支付宝打款失败'
|
|
97
|
+
}, {
|
|
98
|
+
label: '支付宝打款关闭',
|
|
99
|
+
value: '支付宝打款关闭'
|
|
100
|
+
}];
|
|
101
|
+
this.isCombinationComponent = false;
|
|
102
|
+
this.children = [];
|
|
96
103
|
});
|
|
97
104
|
export default PaymentStatus;
|
|
@@ -1,39 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class PaymentTid implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
align: ALignType;
|
|
15
10
|
width: number;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
children: ComponentInterface[];
|
|
16
13
|
constructor(options: PickOption);
|
|
17
|
-
render: (value: string) => JSX.Element;
|
|
18
14
|
renderClient: (record: any) => JSX.Element | null;
|
|
19
|
-
renderPc: (value:
|
|
15
|
+
renderPc: (value: unknown, record: any) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
20
18
|
renderExport: (value: string) => string;
|
|
21
19
|
editRender: () => JSX.Element;
|
|
22
|
-
|
|
23
|
-
title: string;
|
|
24
|
-
align: ALignType;
|
|
25
|
-
dataIndex: string;
|
|
26
|
-
dataType: DataType;
|
|
27
|
-
canHidden: boolean;
|
|
28
|
-
canFilter: boolean;
|
|
29
|
-
canGroup: boolean;
|
|
30
|
-
width: number;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
21
|
type: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
renderExport: (value: string) => string;
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Input";
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
26
|
};
|
|
38
27
|
}
|
|
39
28
|
export default PaymentTid;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, PaymentTid);
|
|
@@ -17,17 +17,11 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
17
17
|
_defineProperty(this, "id", void 0);
|
|
18
18
|
_defineProperty(this, "type", void 0);
|
|
19
19
|
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "canFilter", void 0);
|
|
21
|
-
_defineProperty(this, "canGroup", void 0);
|
|
22
|
-
_defineProperty(this, "canHidden", void 0);
|
|
23
|
-
_defineProperty(this, "dataType", void 0);
|
|
24
|
-
_defineProperty(this, "showContains", void 0);
|
|
25
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
21
|
_defineProperty(this, "align", void 0);
|
|
27
22
|
_defineProperty(this, "width", void 0);
|
|
28
|
-
_defineProperty(this, "
|
|
29
|
-
|
|
30
|
-
});
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
31
25
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
26
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
27
|
id: _this.id,
|
|
@@ -36,7 +30,15 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
36
30
|
}) : null;
|
|
37
31
|
});
|
|
38
32
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
39
|
-
|
|
33
|
+
var _record$_this$id;
|
|
34
|
+
return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
37
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
38
|
+
return _this.renderPc(undefined, r);
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
41
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
40
42
|
});
|
|
41
43
|
_defineProperty(this, "renderExport", function (value) {
|
|
42
44
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -51,35 +53,27 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
51
53
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
52
54
|
});
|
|
53
55
|
});
|
|
54
|
-
_defineProperty(this, "
|
|
56
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
55
57
|
return {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
render: _this.renderPc,
|
|
66
|
-
renderPc: _this.renderPc,
|
|
67
|
-
componentType: _this.editRender,
|
|
68
|
-
showContains: _this.showContains,
|
|
69
|
-
renderExport: _this.renderExport
|
|
58
|
+
type: item.type,
|
|
59
|
+
id: "".concat(item.id, "_enterprisePaymentTid"),
|
|
60
|
+
name: "".concat(item.name, "-\u8BA2\u5355\u7F16\u53F7"),
|
|
61
|
+
filterComponentType: 'Input',
|
|
62
|
+
filterFn: function filterFn(value) {
|
|
63
|
+
return function (i) {
|
|
64
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTid'), value);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
70
67
|
};
|
|
71
68
|
});
|
|
72
69
|
this.name = '订单编号';
|
|
73
70
|
this.id = "".concat(options.id, "_enterprisePaymentTid");
|
|
74
71
|
this.type = options.type;
|
|
75
|
-
this.canFilter = true;
|
|
76
|
-
this.canGroup = true;
|
|
77
|
-
this.canHidden = false;
|
|
78
|
-
this.showContains = false;
|
|
79
|
-
this.dataType = 'string';
|
|
80
72
|
this.componentConfig = options.componentConfig;
|
|
81
73
|
this.rules = [];
|
|
82
74
|
this.align = 'left';
|
|
83
75
|
this.width = 200;
|
|
76
|
+
this.isCombinationComponent = false;
|
|
77
|
+
this.children = [];
|
|
84
78
|
});
|
|
85
79
|
export default PaymentTid;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
import AlipayNick from './AlipayNick';
|
|
4
4
|
import AlipayNo from './AlipayNo';
|
|
5
5
|
import AlipayTime from './AlipayTime';
|
|
@@ -12,11 +12,6 @@ declare class Logistics implements ComponentInterface {
|
|
|
12
12
|
id: string;
|
|
13
13
|
type: string;
|
|
14
14
|
rules: any[];
|
|
15
|
-
canFilter: boolean;
|
|
16
|
-
canGroup: boolean;
|
|
17
|
-
canHidden: boolean;
|
|
18
|
-
dataType: DataType;
|
|
19
|
-
showContains: boolean;
|
|
20
15
|
componentConfig: ComponentInterface["componentConfig"];
|
|
21
16
|
paymentTid: PaymentTid;
|
|
22
17
|
paymentStatus: PaymentStatus;
|
|
@@ -25,101 +20,45 @@ declare class Logistics implements ComponentInterface {
|
|
|
25
20
|
alipayNick: AlipayNick;
|
|
26
21
|
alipayNo: AlipayNo;
|
|
27
22
|
payTime: AlipayTime;
|
|
23
|
+
isCombinationComponent: boolean;
|
|
24
|
+
children: ComponentInterface[];
|
|
28
25
|
constructor(options: PickOption);
|
|
29
|
-
render: () => null;
|
|
30
26
|
renderClient: (record: any) => JSX.Element;
|
|
31
27
|
renderPc: () => null;
|
|
28
|
+
renderLog: (record: Record) => JSX.Element;
|
|
29
|
+
getComponentValue: (r: Record) => {
|
|
30
|
+
enterprisePaymentAlipayNick: any;
|
|
31
|
+
enterprisePaymentAlipayNo: any;
|
|
32
|
+
enterprisePaymentBuyerNick: any;
|
|
33
|
+
enterprisePaymentRefundFee: any;
|
|
34
|
+
enterprisePaymentStatus: any;
|
|
35
|
+
enterprisePaymentTid: any;
|
|
36
|
+
enterprisePaymentTime: any;
|
|
37
|
+
};
|
|
32
38
|
renderExport: () => null;
|
|
33
39
|
editRender: (value: any) => JSX.Element;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
width: string;
|
|
58
|
-
};
|
|
59
|
-
'x-placeholder': string;
|
|
60
|
-
} | {
|
|
61
|
-
title: string;
|
|
62
|
-
align: import("../../type").ALignType;
|
|
63
|
-
dataIndex: string;
|
|
64
|
-
width: number;
|
|
65
|
-
dataType: DataType;
|
|
66
|
-
canHidden: boolean;
|
|
67
|
-
canFilter: boolean;
|
|
68
|
-
canGroup: boolean;
|
|
69
|
-
type: string;
|
|
70
|
-
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
71
|
-
renderPc: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
72
|
-
componentType: () => JSX.Element;
|
|
73
|
-
showContains: boolean;
|
|
74
|
-
renderExport: (value: string) => string;
|
|
75
|
-
} | {
|
|
76
|
-
title: string;
|
|
77
|
-
align: import("../../type").ALignType;
|
|
78
|
-
dataIndex: string;
|
|
79
|
-
dataType: DataType;
|
|
80
|
-
canHidden: boolean;
|
|
81
|
-
canFilter: boolean;
|
|
82
|
-
canGroup: boolean;
|
|
83
|
-
type: string;
|
|
84
|
-
width: number;
|
|
85
|
-
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
86
|
-
renderPc: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
87
|
-
componentType: () => JSX.Element;
|
|
88
|
-
showContains: boolean;
|
|
89
|
-
renderExport: (value: any, record: import("../../type").Record) => any;
|
|
90
|
-
} | {
|
|
91
|
-
title: string;
|
|
92
|
-
align: import("../../type").ALignType;
|
|
93
|
-
dataIndex: string;
|
|
94
|
-
width: number;
|
|
95
|
-
dataType: DataType;
|
|
96
|
-
canHidden: boolean;
|
|
97
|
-
canFilter: boolean;
|
|
98
|
-
canGroup: boolean;
|
|
99
|
-
type: string;
|
|
100
|
-
render: (value: any, record: any) => JSX.Element;
|
|
101
|
-
renderPc: (value: any, record: any) => JSX.Element;
|
|
102
|
-
componentType: () => JSX.Element;
|
|
103
|
-
showContains: boolean;
|
|
104
|
-
} | {
|
|
105
|
-
title: string;
|
|
106
|
-
align: import("../../type").ALignType;
|
|
107
|
-
dataIndex: string;
|
|
108
|
-
width: number;
|
|
109
|
-
dataType: DataType;
|
|
110
|
-
canHidden: boolean;
|
|
111
|
-
canFilter: boolean;
|
|
112
|
-
canGroup: boolean;
|
|
113
|
-
type: string;
|
|
114
|
-
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
115
|
-
renderPc: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
116
|
-
componentType: () => JSX.Element;
|
|
117
|
-
showContains: boolean;
|
|
118
|
-
renderExport: (value: string) => string | null;
|
|
119
|
-
widget: null;
|
|
120
|
-
})[];
|
|
121
|
-
canHidden: boolean;
|
|
122
|
-
dataIndex: string;
|
|
123
|
-
};
|
|
40
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
41
|
+
type: string;
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
filterComponentType: "Input";
|
|
45
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
46
|
+
} | {
|
|
47
|
+
type: string;
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
filterComponentType: "MultipleSelect";
|
|
51
|
+
options: {
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}[];
|
|
55
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
56
|
+
} | {
|
|
57
|
+
type: string;
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
filterComponentType: "Input";
|
|
61
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
62
|
+
})[];
|
|
124
63
|
}
|
|
125
64
|
export default Logistics;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -23,11 +25,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
23
25
|
_defineProperty(this, "id", void 0);
|
|
24
26
|
_defineProperty(this, "type", void 0);
|
|
25
27
|
_defineProperty(this, "rules", void 0);
|
|
26
|
-
_defineProperty(this, "canFilter", void 0);
|
|
27
|
-
_defineProperty(this, "canGroup", void 0);
|
|
28
|
-
_defineProperty(this, "canHidden", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "showContains", void 0);
|
|
31
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
32
29
|
_defineProperty(this, "paymentTid", void 0);
|
|
33
30
|
_defineProperty(this, "paymentStatus", void 0);
|
|
@@ -36,15 +33,28 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
36
33
|
_defineProperty(this, "alipayNick", void 0);
|
|
37
34
|
_defineProperty(this, "alipayNo", void 0);
|
|
38
35
|
_defineProperty(this, "payTime", void 0);
|
|
39
|
-
_defineProperty(this, "
|
|
40
|
-
|
|
41
|
-
});
|
|
36
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
37
|
+
_defineProperty(this, "children", void 0);
|
|
42
38
|
_defineProperty(this, "renderClient", function (record) {
|
|
43
39
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
|
|
44
40
|
});
|
|
45
41
|
_defineProperty(this, "renderPc", function () {
|
|
46
42
|
return null;
|
|
47
43
|
});
|
|
44
|
+
_defineProperty(this, "renderLog", function (record) {
|
|
45
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.alipayNick.name, ": ", _this.alipayNick.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.paymentAmount.name, ": ", _this.paymentAmount.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.alipayNo.name, ": ", _this.alipayNo.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.buyerNick.name, ": ", _this.buyerNick.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.paymentTid.name, ": ", _this.paymentTid.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.paymentStatus.name, ": ", _this.paymentStatus.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.payTime.name, ": ", _this.payTime.renderLog(record)));
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
48
|
+
return {
|
|
49
|
+
enterprisePaymentAlipayNick: _this.alipayNick.getComponentValue(r),
|
|
50
|
+
enterprisePaymentAlipayNo: _this.alipayNo.getComponentValue(r),
|
|
51
|
+
enterprisePaymentBuyerNick: _this.buyerNick.getComponentValue(r),
|
|
52
|
+
enterprisePaymentRefundFee: _this.paymentAmount.getComponentValue(r),
|
|
53
|
+
enterprisePaymentStatus: _this.paymentStatus.getComponentValue(r),
|
|
54
|
+
enterprisePaymentTid: _this.paymentTid.getComponentValue(r),
|
|
55
|
+
enterprisePaymentTime: _this.payTime.getComponentValue(r)
|
|
56
|
+
};
|
|
57
|
+
});
|
|
48
58
|
_defineProperty(this, "renderExport", function () {
|
|
49
59
|
return null;
|
|
50
60
|
});
|
|
@@ -60,22 +70,12 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
60
70
|
}))
|
|
61
71
|
});
|
|
62
72
|
});
|
|
63
|
-
_defineProperty(this, "
|
|
64
|
-
return {
|
|
65
|
-
title: _this.name,
|
|
66
|
-
children: [_this.paymentTid.getColumns(), _this.paymentStatus.getColumns(), _this.paymentAmount.getColumns(), _this.buyerNick.getColumns(), _this.alipayNick.getColumns(), _this.alipayNo.getColumns(), _this.payTime.getColumns()],
|
|
67
|
-
canHidden: _this.canHidden,
|
|
68
|
-
dataIndex: _this.id
|
|
69
|
-
};
|
|
73
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
74
|
+
return [_this.alipayNick.filterConfig(_objectSpread({}, item)), _this.paymentAmount.filterConfig(_objectSpread({}, item)), _this.alipayNo.filterConfig(_objectSpread({}, item)), _this.buyerNick.filterConfig(_objectSpread({}, item)), _this.paymentTid.filterConfig(_objectSpread({}, item)), _this.paymentStatus.filterConfig(_objectSpread({}, item)), _this.payTime.filterConfig(_objectSpread({}, item))];
|
|
70
75
|
});
|
|
71
76
|
this.name = options.name;
|
|
72
77
|
this.id = options.id;
|
|
73
78
|
this.type = options.type;
|
|
74
|
-
this.canFilter = false;
|
|
75
|
-
this.canGroup = false;
|
|
76
|
-
this.canHidden = true;
|
|
77
|
-
this.showContains = false;
|
|
78
|
-
this.dataType = 'string';
|
|
79
79
|
this.componentConfig = options.componentConfig;
|
|
80
80
|
this.paymentTid = new PaymentTid(options);
|
|
81
81
|
this.paymentStatus = new PaymentStatus(options);
|
|
@@ -84,6 +84,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
84
84
|
this.alipayNick = new AlipayNick(options);
|
|
85
85
|
this.alipayNo = new AlipayNo(options);
|
|
86
86
|
this.payTime = new AlipayTime(options);
|
|
87
|
+
this.isCombinationComponent = true;
|
|
88
|
+
this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
|
|
87
89
|
this.rules = [{
|
|
88
90
|
validator: function validator(_, value) {
|
|
89
91
|
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
3
3
|
declare type Value = string[] | undefined;
|
|
4
4
|
declare class BasicPicture implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
canFilter: boolean;
|
|
10
|
-
canGroup: boolean;
|
|
11
|
-
canHidden: boolean;
|
|
12
|
-
dataType: DataType;
|
|
13
|
-
showContains: boolean;
|
|
14
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
13
|
formatPictures: (pictures: string) => string[];
|
|
17
14
|
render: (value: Value) => JSX.Element | null;
|
|
18
15
|
renderPc: (value: any, record: Record) => JSX.Element | JSX.Element[];
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | JSX.Element[] | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
19
18
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
|
-
editRender: (
|
|
19
|
+
editRender: () => JSX.Element;
|
|
21
20
|
/**
|
|
22
21
|
*
|
|
23
22
|
* @returns 图片类型的导出需要在导出时单独处理
|
|
24
23
|
*/
|
|
25
24
|
renderExport: () => null;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @returns 图片不支持过滤
|
|
28
|
+
*/
|
|
29
|
+
filterConfig: () => never[];
|
|
30
30
|
}
|
|
31
31
|
export default BasicPicture;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -22,12 +20,9 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
22
20
|
_defineProperty(this, "id", void 0);
|
|
23
21
|
_defineProperty(this, "type", void 0);
|
|
24
22
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
31
26
|
_defineProperty(this, "formatPictures", function (pictures) {
|
|
32
27
|
pictures = pictures.replace(/[\[\]]/g, '');
|
|
33
28
|
pictures = pictures.replace(/\s/g, '');
|
|
@@ -74,6 +69,13 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
74
69
|
}));
|
|
75
70
|
});
|
|
76
71
|
});
|
|
72
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
73
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_picture")])) return null;
|
|
74
|
+
return _this.renderPc(undefined, r);
|
|
75
|
+
});
|
|
76
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
77
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_picture")];
|
|
78
|
+
});
|
|
77
79
|
_defineProperty(this, "renderClient", function (record) {
|
|
78
80
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
79
81
|
id: _this.id,
|
|
@@ -81,7 +83,7 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
81
83
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
82
84
|
}) : null;
|
|
83
85
|
});
|
|
84
|
-
_defineProperty(this, "editRender", function (
|
|
86
|
+
_defineProperty(this, "editRender", function () {
|
|
85
87
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
|
|
86
88
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
87
89
|
title: _this.name,
|
|
@@ -97,22 +99,15 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
97
99
|
_defineProperty(this, "renderExport", function () {
|
|
98
100
|
return null;
|
|
99
101
|
});
|
|
100
|
-
_defineProperty(this, "
|
|
101
|
-
return
|
|
102
|
-
dataIndex: _this.id,
|
|
103
|
-
title: _this.name
|
|
104
|
-
});
|
|
105
|
-
;
|
|
102
|
+
_defineProperty(this, "filterConfig", function () {
|
|
103
|
+
return [];
|
|
106
104
|
});
|
|
107
105
|
this.name = options.name;
|
|
108
106
|
this.id = options.id;
|
|
109
107
|
this.type = options.type;
|
|
110
|
-
this.canFilter = false;
|
|
111
|
-
this.canGroup = false;
|
|
112
|
-
this.canHidden = true;
|
|
113
|
-
this.dataType = 'array';
|
|
114
|
-
this.showContains = false;
|
|
115
108
|
this.componentConfig = options.componentConfig;
|
|
116
109
|
this.rules = [];
|
|
110
|
+
this.isCombinationComponent = false;
|
|
111
|
+
this.children = [];
|
|
117
112
|
});
|
|
118
113
|
export default BasicPicture;
|