@kmkf-fe-packages/services-components 0.7.12-alpha.1 → 0.7.12-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/ActualPayment/index.d.ts +1 -2
- package/dist/esm/components/ActualPayment/index.js +1 -4
- package/dist/esm/components/Address/index.d.ts +1 -2
- package/dist/esm/components/Address/index.js +1 -4
- package/dist/esm/components/Alipay/index.d.ts +1 -2
- package/dist/esm/components/Alipay/index.js +2 -5
- package/dist/esm/components/AlipayAccount/index.d.ts +1 -2
- package/dist/esm/components/AlipayAccount/index.js +1 -4
- package/dist/esm/components/AlipayName/index.d.ts +1 -2
- package/dist/esm/components/AlipayName/index.js +1 -4
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +24 -9
- package/dist/esm/components/Cascader/index.d.ts +1 -2
- package/dist/esm/components/Cascader/index.js +1 -4
- package/dist/esm/components/Checkbox/index.d.ts +1 -3
- package/dist/esm/components/Checkbox/index.js +2 -8
- package/dist/esm/components/CommonDataTime/index.d.ts +0 -2
- package/dist/esm/components/CommonDataTime/index.js +0 -4
- package/dist/esm/components/CompletedUser/index.d.ts +0 -2
- package/dist/esm/components/CompletedUser/index.js +1 -6
- package/dist/esm/components/DataTime/index.d.ts +1 -3
- package/dist/esm/components/DataTime/index.js +2 -11
- package/dist/esm/components/EItemEnCode/index.d.ts +1 -2
- package/dist/esm/components/EItemEnCode/index.js +1 -4
- package/dist/esm/components/EItemId/index.d.ts +1 -2
- package/dist/esm/components/EItemId/index.js +1 -4
- package/dist/esm/components/EItemSelect/index.d.ts +1 -2
- package/dist/esm/components/EItemSelect/index.js +1 -4
- package/dist/esm/components/ErpTradeId/index.d.ts +1 -2
- package/dist/esm/components/ErpTradeId/index.js +1 -4
- package/dist/esm/components/Express/index.d.ts +1 -3
- package/dist/esm/components/Express/index.js +1 -6
- package/dist/esm/components/ExpressCode/index.d.ts +1 -2
- package/dist/esm/components/ExpressCode/index.js +1 -4
- package/dist/esm/components/FlowStatusSelect/index.d.ts +1 -3
- package/dist/esm/components/FlowStatusSelect/index.js +7 -21
- package/dist/esm/components/GetFormItem/index.d.ts +1 -2
- package/dist/esm/components/GetFormItem/index.js +2 -5
- package/dist/esm/components/Grade/index.d.ts +1 -2
- package/dist/esm/components/Grade/index.js +1 -4
- package/dist/esm/components/Handler/index.d.ts +0 -2
- package/dist/esm/components/Handler/index.js +1 -6
- package/dist/esm/components/Input/index.d.ts +1 -2
- package/dist/esm/components/Input/index.js +2 -6
- package/dist/esm/components/JstItemSelect/index.d.ts +1 -2
- package/dist/esm/components/JstItemSelect/index.js +1 -4
- package/dist/esm/components/JstLogistics/index.d.ts +1 -2
- package/dist/esm/components/JstLogistics/index.js +1 -4
- package/dist/esm/components/JstSendGood/index.d.ts +1 -2
- package/dist/esm/components/JstSendGood/index.js +1 -4
- package/dist/esm/components/JstSupply/index.d.ts +1 -2
- package/dist/esm/components/JstSupply/index.js +1 -4
- package/dist/esm/components/Logistics/index.d.ts +1 -2
- package/dist/esm/components/Logistics/index.js +2 -5
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -2
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +1 -4
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +0 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +0 -4
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +0 -2
- package/dist/esm/components/LogisticsInterception/InterceptType.js +0 -4
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -2
- package/dist/esm/components/LogisticsInterception/index.js +1 -4
- package/dist/esm/components/MultSelect/index.d.ts +1 -3
- package/dist/esm/components/MultSelect/index.js +2 -8
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +1 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +1 -4
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -2
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +1 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +6 -3
- package/dist/esm/components/Ordinary/OrdinarySerial.js +8 -3
- package/dist/esm/components/Ordinary/index.d.ts +6 -3
- package/dist/esm/components/Ordinary/index.js +8 -4
- package/dist/esm/components/Payment/AlipayNick.d.ts +1 -2
- package/dist/esm/components/Payment/AlipayNick.js +1 -4
- package/dist/esm/components/Payment/AlipayNo.d.ts +1 -2
- package/dist/esm/components/Payment/AlipayNo.js +1 -4
- package/dist/esm/components/Payment/AlipayTime.d.ts +1 -3
- package/dist/esm/components/Payment/AlipayTime.js +1 -6
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -3
- package/dist/esm/components/Payment/BuyerNick.js +24 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -2
- package/dist/esm/components/Payment/PaymentAmount.js +1 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +0 -2
- package/dist/esm/components/Payment/PaymentStatus.js +0 -4
- package/dist/esm/components/Payment/PaymentTid.d.ts +1 -2
- package/dist/esm/components/Payment/PaymentTid.js +1 -4
- package/dist/esm/components/Payment/index.d.ts +2 -3
- package/dist/esm/components/Payment/index.js +4 -7
- package/dist/esm/components/Picture/index.d.ts +1 -2
- package/dist/esm/components/Picture/index.js +1 -4
- package/dist/esm/components/PlatForm/index.d.ts +0 -2
- package/dist/esm/components/PlatForm/index.js +0 -4
- package/dist/esm/components/Radio/index.d.ts +1 -3
- package/dist/esm/components/Radio/index.js +2 -8
- package/dist/esm/components/Rate/index.d.ts +1 -2
- package/dist/esm/components/Rate/index.js +1 -4
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -2
- package/dist/esm/components/ReceiverAddress/index.js +1 -4
- package/dist/esm/components/ReceiverMobile/index.d.ts +1 -2
- package/dist/esm/components/ReceiverMobile/index.js +2 -5
- package/dist/esm/components/ReceiverName/index.d.ts +1 -2
- package/dist/esm/components/ReceiverName/index.js +1 -4
- package/dist/esm/components/Remark/index.d.ts +1 -2
- package/dist/esm/components/Remark/index.js +1 -4
- package/dist/esm/components/ReturnLogistics/index.d.ts +6 -3
- package/dist/esm/components/ReturnLogistics/index.js +9 -5
- package/dist/esm/components/Select/index.d.ts +1 -3
- package/dist/esm/components/Select/index.js +2 -8
- package/dist/esm/components/ShopInput/index.d.ts +0 -2
- package/dist/esm/components/ShopInput/index.js +1 -6
- package/dist/esm/components/ShopName/index.d.ts +1 -2
- package/dist/esm/components/ShopName/index.js +1 -4
- package/dist/esm/components/Submitter/index.d.ts +0 -2
- package/dist/esm/components/Submitter/index.js +1 -6
- package/dist/esm/components/SystemOrderNo/index.d.ts +1 -2
- package/dist/esm/components/SystemOrderNo/index.js +1 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +0 -2
- package/dist/esm/components/TemplateSelect/index.js +1 -6
- package/dist/esm/components/TextArea/index.d.ts +1 -2
- package/dist/esm/components/TextArea/index.js +1 -4
- package/dist/esm/components/ThirdItemSelect/index.d.ts +1 -2
- package/dist/esm/components/ThirdItemSelect/index.js +1 -4
- package/dist/esm/components/TradeDateTime/index.d.ts +6 -4
- package/dist/esm/components/TradeDateTime/index.js +9 -6
- package/dist/esm/components/TradeId/index.d.ts +4 -2
- package/dist/esm/components/TradeId/index.js +9 -6
- package/dist/esm/components/WorkOrderId/index.d.ts +1 -2
- package/dist/esm/components/WorkOrderId/index.js +1 -4
- package/dist/esm/type.d.ts +1 -5
- package/package.json +4 -4
|
@@ -10,14 +10,13 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
10
10
|
canSort: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
13
|
constructor(options: PickOption);
|
|
15
14
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
15
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
16
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
17
|
getComponentValue: (r: Record) => any;
|
|
19
18
|
renderExport: (value: unknown, record: Record) => any;
|
|
20
|
-
editRender: (
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
21
20
|
filterConfig: (item: ColumnConfig) => {
|
|
22
21
|
searchDefaultConditions: "between";
|
|
23
22
|
type: string;
|
|
@@ -27,7 +27,6 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
27
27
|
_defineProperty(this, "canSort", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
|
-
_defineProperty(this, "dataType", void 0);
|
|
31
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
32
|
id: _this.id,
|
|
@@ -50,13 +49,12 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
50
49
|
var _record2;
|
|
51
50
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_actualPayment")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
52
51
|
});
|
|
53
|
-
_defineProperty(this, "editRender", function (
|
|
52
|
+
_defineProperty(this, "editRender", function () {
|
|
54
53
|
var _this$componentConfig, _this$componentConfig2;
|
|
55
54
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
56
55
|
title: _this.name,
|
|
57
56
|
name: _this.id,
|
|
58
57
|
rules: _this.rules,
|
|
59
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
60
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,
|
|
61
59
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
62
60
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -137,7 +135,6 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
137
135
|
this.sortField = "".concat(options.id, "_actualPayment");
|
|
138
136
|
this.name = options.name;
|
|
139
137
|
this.type = options.type;
|
|
140
|
-
this.dataType = 'number';
|
|
141
138
|
this.isCombinationComponent = false;
|
|
142
139
|
this.canSort = true;
|
|
143
140
|
this.children = [];
|
|
@@ -13,7 +13,6 @@ declare class Address implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
16
|
-
dataType: ComponentInterface['dataType'];
|
|
17
16
|
constructor(options: PickOption);
|
|
18
17
|
/**
|
|
19
18
|
* 通过值计算展示内容
|
|
@@ -27,7 +26,7 @@ declare class Address implements ComponentInterface {
|
|
|
27
26
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
28
27
|
getComponentValue: (r: Record) => any[];
|
|
29
28
|
renderExport: (value: any, record: any) => string;
|
|
30
|
-
editRender: (
|
|
29
|
+
editRender: () => React.JSX.Element;
|
|
31
30
|
filterConfig: (item: ColumnConfig) => {
|
|
32
31
|
searchDefaultConditions: "eq";
|
|
33
32
|
type: string;
|
|
@@ -27,7 +27,6 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
29
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
30
|
-
_defineProperty(this, "dataType", void 0);
|
|
31
30
|
_defineProperty(this, "getValue", function (value) {
|
|
32
31
|
var _value$map;
|
|
33
32
|
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (suffix) {
|
|
@@ -77,13 +76,12 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
77
76
|
return _this.addressDateInstance.getNameByCode(suffix || '');
|
|
78
77
|
}).join('');
|
|
79
78
|
});
|
|
80
|
-
_defineProperty(this, "editRender", function (
|
|
79
|
+
_defineProperty(this, "editRender", function () {
|
|
81
80
|
var _this$componentConfig, _this$componentConfig2;
|
|
82
81
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
83
82
|
title: _this.name,
|
|
84
83
|
name: _this.id,
|
|
85
84
|
rules: _this.rules,
|
|
86
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
87
85
|
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,
|
|
88
86
|
component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
|
|
89
87
|
});
|
|
@@ -121,7 +119,6 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
121
119
|
this.id = options.id;
|
|
122
120
|
this.sortField = "".concat(options.id, "_basicDistrict");
|
|
123
121
|
this.type = options.type;
|
|
124
|
-
this.dataType = 'object';
|
|
125
122
|
this.isCombinationComponent = false;
|
|
126
123
|
this.canSort = true;
|
|
127
124
|
this.children = [];
|
|
@@ -14,7 +14,6 @@ declare class Alipay implements ComponentInterface {
|
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface['dataType'];
|
|
18
17
|
constructor(options: PickOption);
|
|
19
18
|
renderClient: (record: Record) => React.JSX.Element;
|
|
20
19
|
renderPc: () => null;
|
|
@@ -24,7 +23,7 @@ declare class Alipay implements ComponentInterface {
|
|
|
24
23
|
user: any;
|
|
25
24
|
};
|
|
26
25
|
renderExport: () => null;
|
|
27
|
-
editRender: (
|
|
26
|
+
editRender: (value: any) => React.JSX.Element;
|
|
28
27
|
filterConfig: (item: ColumnConfig) => {
|
|
29
28
|
searchDefaultConditions: "eq";
|
|
30
29
|
type: string;
|
|
@@ -28,7 +28,6 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
29
|
_defineProperty(this, "canSort", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
32
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
|
|
34
33
|
});
|
|
@@ -47,16 +46,15 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
47
46
|
_defineProperty(this, "renderExport", function () {
|
|
48
47
|
return null;
|
|
49
48
|
});
|
|
50
|
-
_defineProperty(this, "editRender", function (
|
|
49
|
+
_defineProperty(this, "editRender", function (value) {
|
|
51
50
|
var _this$componentConfig, _this$componentConfig2;
|
|
52
51
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
53
52
|
title: _this.name,
|
|
54
53
|
name: _this.id,
|
|
55
54
|
rules: _this.rules,
|
|
56
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
57
55
|
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,
|
|
58
56
|
component: /*#__PURE__*/React.createElement(AliPay, _extends({}, _this.componentConfig, {
|
|
59
|
-
onBlur:
|
|
57
|
+
onBlur: value === null || value === void 0 ? void 0 : value.onBlur
|
|
60
58
|
}))
|
|
61
59
|
});
|
|
62
60
|
});
|
|
@@ -72,7 +70,6 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
72
70
|
this.componentConfig = options.componentConfig;
|
|
73
71
|
this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
|
|
74
72
|
this.alipayName = new EAlipayName(_objectSpread({}, options));
|
|
75
|
-
this.dataType = 'object';
|
|
76
73
|
this.children = [this.alipayName, this.alipayAccount];
|
|
77
74
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
78
75
|
validator: function validator(_, value) {
|
|
@@ -13,14 +13,13 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface['dataType'];
|
|
17
16
|
constructor(options: PickOption);
|
|
18
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
19
18
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
20
|
getComponentValue: (r: Record) => any;
|
|
22
21
|
renderExport: (value?: string) => string;
|
|
23
|
-
editRender: (
|
|
22
|
+
editRender: () => React.JSX.Element;
|
|
24
23
|
filterConfig: (item: ColumnConfig) => {
|
|
25
24
|
searchDefaultConditions: "eq";
|
|
26
25
|
type: string;
|
|
@@ -29,7 +29,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
30
|
_defineProperty(this, "canSort", void 0);
|
|
31
31
|
_defineProperty(this, "children", void 0);
|
|
32
|
-
_defineProperty(this, "dataType", void 0);
|
|
33
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
34
|
id: _this.id,
|
|
@@ -57,13 +56,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
57
56
|
_defineProperty(this, "renderExport", function (value) {
|
|
58
57
|
return value !== null && value !== void 0 ? value : '--';
|
|
59
58
|
});
|
|
60
|
-
_defineProperty(this, "editRender", function (
|
|
59
|
+
_defineProperty(this, "editRender", function () {
|
|
61
60
|
var _this$componentConfig, _this$componentConfig2;
|
|
62
61
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
63
62
|
title: _this.name,
|
|
64
63
|
name: _this.id,
|
|
65
64
|
rules: _this.rules,
|
|
66
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
67
65
|
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
66
|
component: /*#__PURE__*/React.createElement(AlipayAccount, _this.componentConfig)
|
|
69
67
|
});
|
|
@@ -90,7 +88,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
90
88
|
this.canSort = true;
|
|
91
89
|
this.children = [];
|
|
92
90
|
this.align = 'left';
|
|
93
|
-
this.dataType = 'string';
|
|
94
91
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
95
92
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
96
93
|
this.rules = [];
|
|
@@ -13,14 +13,13 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
align: ALignType;
|
|
15
15
|
width: number;
|
|
16
|
-
dataType: ComponentInterface['dataType'];
|
|
17
16
|
constructor(options: PickOption);
|
|
18
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
18
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
20
|
getComponentValue: (r: Record) => any;
|
|
22
21
|
renderExport: (value?: string) => string;
|
|
23
|
-
editRender: (
|
|
22
|
+
editRender: () => React.JSX.Element;
|
|
24
23
|
filterConfig: (item: ColumnConfig) => {
|
|
25
24
|
searchDefaultConditions: "eq";
|
|
26
25
|
type: string;
|
|
@@ -29,7 +29,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
29
29
|
_defineProperty(this, "children", void 0);
|
|
30
30
|
_defineProperty(this, "align", void 0);
|
|
31
31
|
_defineProperty(this, "width", void 0);
|
|
32
|
-
_defineProperty(this, "dataType", void 0);
|
|
33
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
34
|
id: _this.id,
|
|
@@ -57,13 +56,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
57
56
|
_defineProperty(this, "renderExport", function (value) {
|
|
58
57
|
return value !== null && value !== void 0 ? value : '--';
|
|
59
58
|
});
|
|
60
|
-
_defineProperty(this, "editRender", function (
|
|
59
|
+
_defineProperty(this, "editRender", function () {
|
|
61
60
|
var _this$componentConfig, _this$componentConfig2;
|
|
62
61
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
63
62
|
title: _this.name,
|
|
64
63
|
name: _this.id,
|
|
65
64
|
rules: _this.rules,
|
|
66
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
67
65
|
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
66
|
component: /*#__PURE__*/React.createElement(AlipayName, _this.componentConfig)
|
|
69
67
|
});
|
|
@@ -90,7 +88,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
90
88
|
this.canSort = true;
|
|
91
89
|
this.children = [];
|
|
92
90
|
this.align = 'left';
|
|
93
|
-
this.dataType = 'string';
|
|
94
91
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
95
92
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
96
93
|
this.rules = [];
|
|
@@ -11,9 +11,9 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
14
|
constructor(options: PickOption);
|
|
16
|
-
|
|
15
|
+
renderTaoBaoWangWang: (record: any, params: any) => React.JSX.Element;
|
|
16
|
+
renderClient: (record: any, params: any) => React.JSX.Element | null;
|
|
17
17
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
19
|
getComponentValue: (r: Record) => {
|
|
@@ -21,7 +21,7 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
21
21
|
buyerOpenUid: any;
|
|
22
22
|
};
|
|
23
23
|
renderExport: (value: any, record: any) => any;
|
|
24
|
-
editRender: (
|
|
24
|
+
editRender: (value: any) => React.JSX.Element;
|
|
25
25
|
filterConfig: (item: ColumnConfig) => {
|
|
26
26
|
searchDefaultConditions: "like";
|
|
27
27
|
type: string;
|
|
@@ -13,6 +13,7 @@ import ItemView from "../../commonComponents/ItemView";
|
|
|
13
13
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
14
14
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
|
+
import wangImg from "../../commonComponents/Wangwang/img/wang.gif";
|
|
16
17
|
var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
17
18
|
var _this = this,
|
|
18
19
|
_this$componentConfig3,
|
|
@@ -28,13 +29,26 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
28
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
30
|
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_defineProperty(this, "renderTaoBaoWangWang", function (record, params) {
|
|
33
|
+
var _record$_this$id3;
|
|
34
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
35
|
+
onClick: function onClick() {
|
|
36
|
+
var _record$_this$id, _record$_this$id2;
|
|
37
|
+
typeof params.openWangWang === 'function' && params.openWangWang(record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.buyerNick, record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.buyerOpenUid);
|
|
38
|
+
}
|
|
39
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
40
|
+
alt: "\u8BF7\u70B9\u51FB\u76F4\u63A5\u8BBF\u95EE",
|
|
41
|
+
src: wangImg
|
|
42
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
43
|
+
className: "fc_blue wangwangname"
|
|
44
|
+
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.buyerNick));
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "renderClient", function (record, params) {
|
|
47
|
+
var _record$_this$id4;
|
|
34
48
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
49
|
id: _this.id,
|
|
36
50
|
label: _this.name,
|
|
37
|
-
value: record === null || record === void 0 ? void 0 : (_record$_this$
|
|
51
|
+
value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.buyerNick
|
|
38
52
|
}) : null;
|
|
39
53
|
});
|
|
40
54
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -65,18 +79,17 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
65
79
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
66
80
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
67
81
|
});
|
|
68
|
-
_defineProperty(this, "editRender", function (
|
|
82
|
+
_defineProperty(this, "editRender", function (value) {
|
|
69
83
|
var _this$componentConfig, _this$componentConfig2, _this$effects3, _this$effects4;
|
|
70
84
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
71
85
|
title: _this.name,
|
|
72
86
|
name: _this.id,
|
|
73
87
|
rules: _this.rules,
|
|
74
88
|
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,
|
|
75
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
76
89
|
component: /*#__PURE__*/React.createElement(BuyerNick, _extends({}, _this.componentConfig, {
|
|
77
90
|
shopId: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopId,
|
|
78
91
|
shopList: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList,
|
|
79
|
-
onBlur:
|
|
92
|
+
onBlur: value === null || value === void 0 ? void 0 : value.onBlur
|
|
80
93
|
}))
|
|
81
94
|
});
|
|
82
95
|
});
|
|
@@ -103,7 +116,6 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
103
116
|
this.isCombinationComponent = false;
|
|
104
117
|
this.canSort = true;
|
|
105
118
|
this.children = [];
|
|
106
|
-
this.dataType = 'string';
|
|
107
119
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
108
120
|
validator: function validator(_, value) {
|
|
109
121
|
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
@@ -123,5 +135,8 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
123
135
|
}] : [];
|
|
124
136
|
this.componentConfig = options.componentConfig;
|
|
125
137
|
this.effects = options.effects;
|
|
126
|
-
}
|
|
138
|
+
}
|
|
139
|
+
// 渲染淘宝端的时候需要亮灯
|
|
140
|
+
);
|
|
141
|
+
|
|
127
142
|
export default EBuyerNick;
|
|
@@ -10,7 +10,6 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
13
|
constructor(options: PickOption);
|
|
15
14
|
/**
|
|
16
15
|
* 通过值计算展示内容
|
|
@@ -23,7 +22,7 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
23
22
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
24
23
|
getComponentValue: (r: Record) => any;
|
|
25
24
|
renderExport: (value: any, record: Record) => string;
|
|
26
|
-
editRender: (
|
|
25
|
+
editRender: () => React.JSX.Element;
|
|
27
26
|
filterConfig: (item: ColumnConfig) => {
|
|
28
27
|
searchDefaultConditions: "eq";
|
|
29
28
|
type: string;
|
|
@@ -26,7 +26,6 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
27
|
_defineProperty(this, "canSort", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
29
|
_defineProperty(this, "getValue", function (value) {
|
|
31
30
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
32
31
|
return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
|
|
@@ -69,13 +68,12 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
69
68
|
return i.label;
|
|
70
69
|
})) === null || _findLabelBySelectVal6 === void 0 ? void 0 : _findLabelBySelectVal6.join(',');
|
|
71
70
|
});
|
|
72
|
-
_defineProperty(this, "editRender", function (
|
|
71
|
+
_defineProperty(this, "editRender", function () {
|
|
73
72
|
var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
|
|
74
73
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
75
74
|
title: _this.name,
|
|
76
75
|
name: _this.id,
|
|
77
76
|
rules: _this.rules,
|
|
78
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
79
77
|
required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
|
|
80
78
|
component: /*#__PURE__*/React.createElement(Cascader, _extends({}, _this.componentConfig, {
|
|
81
79
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
@@ -137,7 +135,6 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
137
135
|
this.children = [];
|
|
138
136
|
this.isCombinationComponent = false;
|
|
139
137
|
this.canSort = true;
|
|
140
|
-
this.dataType = 'object'; // FIXME: 多级下拉这种不知道要如何去做条件判断
|
|
141
138
|
}
|
|
142
139
|
|
|
143
140
|
/**
|
|
@@ -14,8 +14,6 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface['dataType'];
|
|
18
|
-
options: ComponentInterface['options'];
|
|
19
17
|
constructor(options: PickOption);
|
|
20
18
|
getValue: (value: Value) => string | null | undefined;
|
|
21
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -26,7 +24,7 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
26
24
|
};
|
|
27
25
|
renderExport: (value: any, record: Record) => string;
|
|
28
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
29
|
-
editRender: (
|
|
27
|
+
editRender: () => React.JSX.Element;
|
|
30
28
|
filterConfig: (item: ColumnConfig) => {
|
|
31
29
|
searchDefaultConditions: "in";
|
|
32
30
|
type: string;
|
|
@@ -14,8 +14,7 @@ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
16
16
|
var _this = this,
|
|
17
|
-
_options$componentCon
|
|
18
|
-
_this$componentConfig3;
|
|
17
|
+
_options$componentCon;
|
|
19
18
|
_classCallCheck(this, BasicCheckbox);
|
|
20
19
|
_defineProperty(this, "name", void 0);
|
|
21
20
|
_defineProperty(this, "id", void 0);
|
|
@@ -26,8 +25,6 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
26
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
26
|
_defineProperty(this, "canSort", void 0);
|
|
28
27
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "options", void 0);
|
|
31
28
|
_defineProperty(this, "getValue", function (value) {
|
|
32
29
|
var _value$value, _value$value2, _value$value3;
|
|
33
30
|
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;
|
|
@@ -78,13 +75,12 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
78
75
|
value: _this.getValue(record === null || record === void 0 ? void 0 : record[_this.id]) || ''
|
|
79
76
|
}) : null;
|
|
80
77
|
});
|
|
81
|
-
_defineProperty(this, "editRender", function (
|
|
78
|
+
_defineProperty(this, "editRender", function () {
|
|
82
79
|
var _this$componentConfig, _this$componentConfig2;
|
|
83
80
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
84
81
|
title: _this.name,
|
|
85
82
|
name: _this.id,
|
|
86
83
|
rules: _this.rules,
|
|
87
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
88
84
|
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,
|
|
89
85
|
component: /*#__PURE__*/React.createElement(ApaasCheckbox, _this.componentConfig)
|
|
90
86
|
});
|
|
@@ -129,7 +125,5 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
129
125
|
return Promise.resolve();
|
|
130
126
|
}
|
|
131
127
|
}] : [];
|
|
132
|
-
this.dataType = 'array';
|
|
133
|
-
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
134
128
|
});
|
|
135
129
|
export default BasicCheckbox;
|
|
@@ -13,8 +13,6 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface['dataType'];
|
|
17
|
-
format: ComponentInterface['format'];
|
|
18
16
|
constructor(options: PickOption);
|
|
19
17
|
getValue: (value: string) => string;
|
|
20
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -26,8 +26,6 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
27
|
_defineProperty(this, "canSort", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "format", void 0);
|
|
31
29
|
_defineProperty(this, "getValue", function (value) {
|
|
32
30
|
return moment(value).format('YYYY-MM-DD HH:mm:ss');
|
|
33
31
|
});
|
|
@@ -99,7 +97,5 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
99
97
|
this.isCombinationComponent = false;
|
|
100
98
|
this.canSort = true;
|
|
101
99
|
this.children = [];
|
|
102
|
-
this.dataType = 'string';
|
|
103
|
-
this.format = 'dateTime';
|
|
104
100
|
});
|
|
105
101
|
export default CommonDataTime;
|
|
@@ -10,8 +10,6 @@ declare class CompletedUser implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
|
-
options: ComponentInterface['options'];
|
|
15
13
|
constructor(options: PickOption);
|
|
16
14
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
15
|
renderLog: () => null;
|
|
@@ -9,8 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
10
|
import { SYMBOL } from "../../constant";
|
|
11
11
|
var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
12
|
-
var _this = this
|
|
13
|
-
_this$effects2;
|
|
12
|
+
var _this = this;
|
|
14
13
|
_classCallCheck(this, CompletedUser);
|
|
15
14
|
_defineProperty(this, "name", void 0);
|
|
16
15
|
_defineProperty(this, "id", void 0);
|
|
@@ -21,8 +20,6 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
21
20
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
21
|
_defineProperty(this, "canSort", void 0);
|
|
23
22
|
_defineProperty(this, "children", void 0);
|
|
24
|
-
_defineProperty(this, "dataType", void 0);
|
|
25
|
-
_defineProperty(this, "options", void 0);
|
|
26
23
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
27
24
|
var _record;
|
|
28
25
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -71,7 +68,5 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
71
68
|
this.isCombinationComponent = false;
|
|
72
69
|
this.canSort = true;
|
|
73
70
|
this.children = [];
|
|
74
|
-
this.dataType = 'string';
|
|
75
|
-
this.options = ((_this$effects2 = this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.userList) || [];
|
|
76
71
|
});
|
|
77
72
|
export default CompletedUser;
|
|
@@ -12,8 +12,6 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
|
-
format: ComponentInterface['format'];
|
|
17
15
|
constructor(options: PickOption);
|
|
18
16
|
getValue: (value: Value) => string | undefined;
|
|
19
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -21,7 +19,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
21
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
20
|
getComponentValue: (r: Record) => any;
|
|
23
21
|
renderExport: (value: any, record: Record) => any;
|
|
24
|
-
editRender: (
|
|
22
|
+
editRender: () => React.JSX.Element;
|
|
25
23
|
filterConfig: (item: ColumnConfig) => any;
|
|
26
24
|
}
|
|
27
25
|
export default BasicDataTime;
|
|
@@ -31,11 +31,7 @@ export var DateTime = function DateTime(_ref) {
|
|
|
31
31
|
}));
|
|
32
32
|
};
|
|
33
33
|
var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
34
|
-
var _this = this
|
|
35
|
-
_this$componentConfig3,
|
|
36
|
-
_this$componentConfig4,
|
|
37
|
-
_this$componentConfig5,
|
|
38
|
-
_this$componentConfig6;
|
|
34
|
+
var _this = this;
|
|
39
35
|
_classCallCheck(this, BasicDataTime);
|
|
40
36
|
_defineProperty(this, "name", void 0);
|
|
41
37
|
_defineProperty(this, "id", void 0);
|
|
@@ -46,8 +42,6 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
46
42
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
47
43
|
_defineProperty(this, "canSort", void 0);
|
|
48
44
|
_defineProperty(this, "children", void 0);
|
|
49
|
-
_defineProperty(this, "dataType", void 0);
|
|
50
|
-
_defineProperty(this, "format", void 0);
|
|
51
45
|
_defineProperty(this, "getValue", function (value) {
|
|
52
46
|
return Array.isArray(value) ? value.join('~') : value;
|
|
53
47
|
});
|
|
@@ -77,13 +71,12 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
77
71
|
}
|
|
78
72
|
return 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('~') : record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")];
|
|
79
73
|
});
|
|
80
|
-
_defineProperty(this, "editRender", function (
|
|
74
|
+
_defineProperty(this, "editRender", function () {
|
|
81
75
|
var _this$componentConfig, _this$componentConfig2;
|
|
82
76
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
83
77
|
title: _this.name,
|
|
84
78
|
name: _this.id,
|
|
85
79
|
rules: _this.rules,
|
|
86
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
87
80
|
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,
|
|
88
81
|
component: /*#__PURE__*/React.createElement(DateTime, _this.componentConfig)
|
|
89
82
|
});
|
|
@@ -131,7 +124,5 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
131
124
|
this.isCombinationComponent = false;
|
|
132
125
|
this.canSort = true;
|
|
133
126
|
this.children = [];
|
|
134
|
-
this.dataType = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && (_this$componentConfig4 = _this$componentConfig3.dateType) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.includes('RANGE') ? 'range' : 'string';
|
|
135
|
-
this.format = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && (_this$componentConfig6 = _this$componentConfig5.dateType) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.includes('DATE_TIME') ? 'dateTime' : 'date';
|
|
136
127
|
});
|
|
137
128
|
export default BasicDataTime;
|
|
@@ -11,14 +11,13 @@ declare class EItemEncode implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
14
|
constructor(options: PickOption);
|
|
16
15
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
16
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
18
|
getComponentValue: (r: Record) => any;
|
|
20
19
|
renderExport: (value: unknown, record: Record) => any;
|
|
21
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
22
21
|
filterConfig: (item: ColumnConfig) => {
|
|
23
22
|
searchDefaultConditions: "like";
|
|
24
23
|
type: string;
|
|
@@ -27,7 +27,6 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
28
|
_defineProperty(this, "canSort", void 0);
|
|
29
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
-
_defineProperty(this, "dataType", void 0);
|
|
31
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
32
|
id: _this.id,
|
|
@@ -61,14 +60,13 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
61
60
|
return item.outerId;
|
|
62
61
|
}).join(' ');
|
|
63
62
|
});
|
|
64
|
-
_defineProperty(this, "editRender", function (
|
|
63
|
+
_defineProperty(this, "editRender", function () {
|
|
65
64
|
var _this$effects, _this$effects2;
|
|
66
65
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
66
|
title: _this.name,
|
|
68
67
|
name: _this.id,
|
|
69
68
|
rules: _this.rules,
|
|
70
69
|
required: false,
|
|
71
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
72
70
|
component: /*#__PURE__*/React.createElement(ItemEncode, _extends({}, _this.componentConfig, {
|
|
73
71
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
74
72
|
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
|
@@ -120,6 +118,5 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
120
118
|
return Promise.resolve();
|
|
121
119
|
}
|
|
122
120
|
}] : [];
|
|
123
|
-
this.dataType = 'object';
|
|
124
121
|
});
|
|
125
122
|
export default EItemEncode;
|