@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
|
@@ -13,14 +13,13 @@ declare class AlipayNo 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: any) => React.JSX.Element | null;
|
|
19
18
|
renderPc: (value: unknown, record: any) => React.JSX.Element;
|
|
20
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
20
|
getComponentValue: (r: Record) => any;
|
|
22
21
|
renderExport: (value: any, record: Record) => any;
|
|
23
|
-
editRender: (
|
|
22
|
+
editRender: () => React.JSX.Element;
|
|
24
23
|
filterConfig: (item: ColumnConfig) => {
|
|
25
24
|
searchDefaultConditions: "eq";
|
|
26
25
|
type: string;
|
|
@@ -26,7 +26,6 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(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, "renderClient", function (record) {
|
|
31
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
31
|
id: _this.id,
|
|
@@ -57,13 +56,12 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
57
56
|
var _record$_this$id;
|
|
58
57
|
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
|
|
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(ApaasInput, _this.componentConfig)
|
|
69
67
|
});
|
|
@@ -92,7 +90,6 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
92
90
|
this.isCombinationComponent = false;
|
|
93
91
|
this.canSort = true;
|
|
94
92
|
this.children = [];
|
|
95
|
-
this.dataType = 'string';
|
|
96
93
|
this.rules = [{
|
|
97
94
|
validator: function validator(_, value) {
|
|
98
95
|
if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value)) {
|
|
@@ -12,15 +12,13 @@ declare class AlipayTime 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
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
19
17
|
renderPc: (value: unknown, record: Record) => any;
|
|
20
18
|
renderLog: (r: Record) => any;
|
|
21
19
|
getComponentValue: (r: Record) => any;
|
|
22
20
|
renderExport: (value: string) => string | null;
|
|
23
|
-
editRender: (
|
|
21
|
+
editRender: () => React.JSX.Element;
|
|
24
22
|
filterConfig: (item: ColumnConfig) => {
|
|
25
23
|
searchDefaultConditions: "between";
|
|
26
24
|
type: string;
|
|
@@ -26,8 +26,6 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(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, "renderClient", function (record) {
|
|
32
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
31
|
id: _this.id,
|
|
@@ -57,13 +55,12 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
57
55
|
_defineProperty(this, "renderExport", function (value) {
|
|
58
56
|
return value ? moment(value).format('YYYY-MM-DD HH:mm:ss') : null;
|
|
59
57
|
});
|
|
60
|
-
_defineProperty(this, "editRender", function (
|
|
58
|
+
_defineProperty(this, "editRender", function () {
|
|
61
59
|
var _this$componentConfig, _this$componentConfig2;
|
|
62
60
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
63
61
|
title: _this.name,
|
|
64
62
|
name: _this.id,
|
|
65
63
|
rules: _this.rules,
|
|
66
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
67
64
|
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
65
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
69
66
|
});
|
|
@@ -101,7 +98,5 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
101
98
|
this.isCombinationComponent = false;
|
|
102
99
|
this.canSort = true;
|
|
103
100
|
this.children = [];
|
|
104
|
-
this.dataType = 'string';
|
|
105
|
-
this.format = 'dateTime';
|
|
106
101
|
});
|
|
107
102
|
export default AlipayTime;
|
|
@@ -13,10 +13,10 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface['dataType'];
|
|
17
16
|
constructor(options: PickOption);
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
renderTaoBaoWangWang: (record: any, params: any) => React.JSX.Element;
|
|
18
|
+
renderClient: (record: Record, params: any) => React.JSX.Element | null;
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
20
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
22
|
getComponentValue: (r: Record) => any;
|
|
@@ -17,6 +17,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
17
17
|
import ItemView from "../../commonComponents/ItemView";
|
|
18
18
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
19
19
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
|
+
import wangImg from "../../commonComponents/Wangwang/img/wang.gif";
|
|
20
21
|
import { SYMBOL } from "../../constant";
|
|
21
22
|
var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
22
23
|
var _this = this;
|
|
@@ -33,21 +34,35 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
33
34
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
35
|
_defineProperty(this, "canSort", void 0);
|
|
35
36
|
_defineProperty(this, "children", void 0);
|
|
36
|
-
_defineProperty(this, "
|
|
37
|
-
|
|
37
|
+
_defineProperty(this, "renderTaoBaoWangWang", function (record, params) {
|
|
38
|
+
var _this$id$split = _this.id.split('_'),
|
|
39
|
+
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
40
|
+
first = _this$id$split2[0];
|
|
41
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
42
|
+
onClick: function onClick() {
|
|
43
|
+
typeof params.openWangWang === 'function' && params.openWangWang(record === null || record === void 0 ? void 0 : record[_this.id], record === null || record === void 0 ? void 0 : record["".concat(first, "_enterprisePaymentBuyerOpenUid")]);
|
|
44
|
+
}
|
|
45
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
46
|
+
alt: "\u8BF7\u70B9\u51FB\u76F4\u63A5\u8BBF\u95EE",
|
|
47
|
+
src: wangImg
|
|
48
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
49
|
+
className: "fc_blue wangwangname"
|
|
50
|
+
}, record === null || record === void 0 ? void 0 : record[_this.id]));
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "renderClient", function (record, params) {
|
|
53
|
+
var _record$_this$id;
|
|
38
54
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
39
55
|
id: _this.id,
|
|
40
56
|
label: _this.name,
|
|
41
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
57
|
+
value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : 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
|
|
42
58
|
}) : null;
|
|
43
59
|
});
|
|
44
|
-
_defineProperty(this, "editRender", function (
|
|
60
|
+
_defineProperty(this, "editRender", function () {
|
|
45
61
|
var _this$componentConfig, _this$componentConfig2;
|
|
46
62
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
47
63
|
title: _this.name,
|
|
48
64
|
name: _this.id,
|
|
49
65
|
rules: _this.rules,
|
|
50
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
51
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,
|
|
52
67
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
53
68
|
});
|
|
@@ -112,6 +127,8 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
112
127
|
this.isCombinationComponent = false;
|
|
113
128
|
this.canSort = true;
|
|
114
129
|
this.children = [];
|
|
115
|
-
|
|
116
|
-
|
|
130
|
+
}
|
|
131
|
+
// 渲染淘宝端的时候需要亮灯
|
|
132
|
+
);
|
|
133
|
+
|
|
117
134
|
export default BuyerNick;
|
|
@@ -12,14 +12,13 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
15
|
constructor(options: PickOption);
|
|
17
16
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
18
17
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
19
|
getComponentValue: (r: Record) => any;
|
|
21
20
|
renderExport: (value: string) => string;
|
|
22
|
-
editRender: (
|
|
21
|
+
editRender: () => React.JSX.Element;
|
|
23
22
|
filterConfig: (item: ColumnConfig) => {
|
|
24
23
|
searchDefaultConditions: "between";
|
|
25
24
|
type: string;
|
|
@@ -28,7 +28,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(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 !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
33
|
id: _this.id,
|
|
@@ -50,13 +49,12 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
50
49
|
_defineProperty(this, "renderExport", function (value) {
|
|
51
50
|
return value !== null && value !== void 0 ? value : '--';
|
|
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, _this.componentConfig)
|
|
62
60
|
});
|
|
@@ -137,7 +135,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
137
135
|
this.isCombinationComponent = false;
|
|
138
136
|
this.canSort = true;
|
|
139
137
|
this.children = [];
|
|
140
|
-
this.dataType = 'number';
|
|
141
138
|
this.rules = [{
|
|
142
139
|
validator: function validator(_, value) {
|
|
143
140
|
if (/^(\d+)(\.\d{0,2})?$/.test(value)) {
|
|
@@ -19,8 +19,6 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
19
19
|
isCombinationComponent: boolean;
|
|
20
20
|
canSort: boolean;
|
|
21
21
|
children: ComponentInterface[];
|
|
22
|
-
dataType: ComponentInterface['dataType'];
|
|
23
|
-
options: ComponentInterface['options'];
|
|
24
22
|
constructor(options: PickOption);
|
|
25
23
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
26
24
|
renderPc: (value: unknown, record: any) => any;
|
|
@@ -25,8 +25,6 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "options", void 0);
|
|
30
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
30
|
id: _this.id,
|
|
@@ -76,7 +74,6 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
76
74
|
this.rules = [];
|
|
77
75
|
this.align = 'left';
|
|
78
76
|
this.width = 200;
|
|
79
|
-
this.dataType = 'string';
|
|
80
77
|
this.paymentStatus = {
|
|
81
78
|
WAITING_EXAMINE: '未打款',
|
|
82
79
|
EXAMINED: '审核通过',
|
|
@@ -108,7 +105,6 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
108
105
|
label: '支付宝打款关闭',
|
|
109
106
|
value: '支付宝打款关闭'
|
|
110
107
|
}];
|
|
111
|
-
this.options = this.paymentStatusOptions;
|
|
112
108
|
this.isCombinationComponent = false;
|
|
113
109
|
this.canSort = true;
|
|
114
110
|
this.children = [];
|
|
@@ -12,14 +12,13 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface['dataType'];
|
|
16
15
|
constructor(options: PickOption);
|
|
17
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
17
|
renderPc: (value: unknown, record: any) => React.JSX.Element;
|
|
19
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
19
|
getComponentValue: (r: Record) => any;
|
|
21
20
|
renderExport: (value: string) => string;
|
|
22
|
-
editRender: (
|
|
21
|
+
editRender: () => React.JSX.Element;
|
|
23
22
|
filterConfig: (item: ColumnConfig) => {
|
|
24
23
|
searchDefaultConditions: "in";
|
|
25
24
|
type: string;
|
|
@@ -25,7 +25,6 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
30
|
id: _this.id,
|
|
@@ -47,13 +46,12 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
47
46
|
_defineProperty(this, "renderExport", function (value) {
|
|
48
47
|
return value !== null && value !== void 0 ? value : '--';
|
|
49
48
|
});
|
|
50
|
-
_defineProperty(this, "editRender", function (
|
|
49
|
+
_defineProperty(this, "editRender", function () {
|
|
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(ApaasInput, _this.componentConfig)
|
|
59
57
|
});
|
|
@@ -86,6 +84,5 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
86
84
|
this.isCombinationComponent = false;
|
|
87
85
|
this.canSort = true;
|
|
88
86
|
this.children = [];
|
|
89
|
-
this.dataType = 'string';
|
|
90
87
|
});
|
|
91
88
|
export default PaymentTid;
|
|
@@ -24,9 +24,8 @@ declare class Logistics implements ComponentInterface {
|
|
|
24
24
|
isCombinationComponent: boolean;
|
|
25
25
|
canSort: boolean;
|
|
26
26
|
children: ComponentInterface[];
|
|
27
|
-
dataType: ComponentInterface['dataType'];
|
|
28
27
|
constructor(options: PickOption);
|
|
29
|
-
renderClient: (record: any) => React.JSX.Element;
|
|
28
|
+
renderClient: (record: any, params: any) => React.JSX.Element;
|
|
30
29
|
renderPc: () => null;
|
|
31
30
|
renderLog: (record: Record) => React.JSX.Element;
|
|
32
31
|
getComponentValue: (r: Record) => {
|
|
@@ -39,7 +38,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
39
38
|
enterprisePaymentTime: any;
|
|
40
39
|
};
|
|
41
40
|
renderExport: () => null;
|
|
42
|
-
editRender: (
|
|
41
|
+
editRender: (value: any) => React.JSX.Element;
|
|
43
42
|
filterConfig: (item: ColumnConfig) => ({
|
|
44
43
|
searchDefaultConditions: "eq";
|
|
45
44
|
type: string;
|
|
@@ -37,9 +37,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
37
37
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
38
38
|
_defineProperty(this, "canSort", void 0);
|
|
39
39
|
_defineProperty(this, "children", void 0);
|
|
40
|
-
_defineProperty(this, "
|
|
41
|
-
|
|
42
|
-
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));
|
|
40
|
+
_defineProperty(this, "renderClient", function (record, params) {
|
|
41
|
+
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));
|
|
43
42
|
});
|
|
44
43
|
_defineProperty(this, "renderPc", function () {
|
|
45
44
|
return null;
|
|
@@ -61,16 +60,15 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
61
60
|
_defineProperty(this, "renderExport", function () {
|
|
62
61
|
return null;
|
|
63
62
|
});
|
|
64
|
-
_defineProperty(this, "editRender", function (
|
|
63
|
+
_defineProperty(this, "editRender", function (value) {
|
|
65
64
|
var _this$componentConfig, _this$componentConfig2;
|
|
66
65
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
66
|
title: _this.name,
|
|
68
67
|
name: _this.id,
|
|
69
68
|
rules: _this.rules,
|
|
70
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
71
69
|
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,
|
|
72
70
|
component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
|
|
73
|
-
onBlur:
|
|
71
|
+
onBlur: value === null || value === void 0 ? void 0 : value.onBlur
|
|
74
72
|
}))
|
|
75
73
|
});
|
|
76
74
|
});
|
|
@@ -122,6 +120,5 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
122
120
|
return Promise.resolve();
|
|
123
121
|
}
|
|
124
122
|
}];
|
|
125
|
-
this.dataType = 'object';
|
|
126
123
|
});
|
|
127
124
|
export default Logistics;
|
|
@@ -11,7 +11,6 @@ declare class BasicPicture 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
|
formatPictures: (pictures: string) => string[];
|
|
17
16
|
render: (value: Value) => React.JSX.Element | null;
|
|
@@ -19,7 +18,7 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
19
18
|
renderLog: (r: Record) => React.JSX.Element | React.JSX.Element[] | null;
|
|
20
19
|
getComponentValue: (r: Record) => any;
|
|
21
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
-
editRender: (
|
|
21
|
+
editRender: () => React.JSX.Element;
|
|
23
22
|
/**
|
|
24
23
|
*
|
|
25
24
|
* @returns 图片类型的导出需要在导出时单独处理
|
|
@@ -25,7 +25,6 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
28
|
_defineProperty(this, "formatPictures", function (pictures) {
|
|
30
29
|
pictures = pictures.replace(/[\[\]]/g, '');
|
|
31
30
|
pictures = pictures.replace(/\s/g, '');
|
|
@@ -86,13 +85,12 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
86
85
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
87
86
|
}) : null;
|
|
88
87
|
});
|
|
89
|
-
_defineProperty(this, "editRender", function (
|
|
88
|
+
_defineProperty(this, "editRender", function () {
|
|
90
89
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
|
|
91
90
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
92
91
|
title: _this.name,
|
|
93
92
|
name: _this.id,
|
|
94
93
|
rules: _this.rules,
|
|
95
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
96
94
|
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,
|
|
97
95
|
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, {
|
|
98
96
|
uniqueKey: _this.id,
|
|
@@ -115,6 +113,5 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
115
113
|
this.isCombinationComponent = false;
|
|
116
114
|
this.canSort = true;
|
|
117
115
|
this.children = [];
|
|
118
|
-
this.dataType = 'string';
|
|
119
116
|
});
|
|
120
117
|
export default BasicPicture;
|
|
@@ -11,8 +11,6 @@ declare class PlatForm implements ComponentInterface {
|
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
13
|
platInstance: InstanceType<typeof PlatData>;
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
|
-
options: ComponentInterface['options'];
|
|
16
14
|
constructor();
|
|
17
15
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
16
|
renderExport: (value: any, record: Record) => string;
|
|
@@ -20,8 +20,6 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
20
20
|
_defineProperty(this, "canSort", void 0);
|
|
21
21
|
_defineProperty(this, "children", void 0);
|
|
22
22
|
_defineProperty(this, "platInstance", void 0);
|
|
23
|
-
_defineProperty(this, "dataType", void 0);
|
|
24
|
-
_defineProperty(this, "options", void 0);
|
|
25
23
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
26
24
|
var _platMap$record;
|
|
27
25
|
var platMap = _this.platInstance.getPlatMap();
|
|
@@ -71,7 +69,5 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
71
69
|
this.canSort = false;
|
|
72
70
|
this.children = [];
|
|
73
71
|
this.platInstance = PlatData.getInstance();
|
|
74
|
-
this.dataType = 'string';
|
|
75
|
-
this.options = this.platInstance.getPlatSelectList();
|
|
76
72
|
});
|
|
77
73
|
export default PlatForm;
|
|
@@ -14,8 +14,6 @@ declare class BasicRadio 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
|
render: (value: Value) => React.JSX.Element;
|
|
21
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -26,7 +24,7 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
26
24
|
};
|
|
27
25
|
renderExport: (value: any, record: Record) => string;
|
|
28
26
|
renderClient: (record: Record) => 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 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
|
|
18
|
-
_this$componentConfig4;
|
|
17
|
+
_this$componentConfig3;
|
|
19
18
|
_classCallCheck(this, BasicRadio);
|
|
20
19
|
_defineProperty(this, "name", void 0);
|
|
21
20
|
_defineProperty(this, "id", void 0);
|
|
@@ -26,8 +25,6 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(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, "render", function (value) {
|
|
32
29
|
var _value$value;
|
|
33
30
|
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, ")"));
|
|
@@ -61,13 +58,12 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
61
58
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
62
59
|
}) : null;
|
|
63
60
|
});
|
|
64
|
-
_defineProperty(this, "editRender", function (
|
|
61
|
+
_defineProperty(this, "editRender", function () {
|
|
65
62
|
var _this$componentConfig, _this$componentConfig2;
|
|
66
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
64
|
title: _this.name,
|
|
68
65
|
name: _this.id,
|
|
69
66
|
rules: _this.rules,
|
|
70
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
71
67
|
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,
|
|
72
68
|
component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
|
|
73
69
|
});
|
|
@@ -111,7 +107,5 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
111
107
|
return Promise.resolve();
|
|
112
108
|
}
|
|
113
109
|
}] : [];
|
|
114
|
-
this.dataType = 'string';
|
|
115
|
-
this.options = ((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.options) || [];
|
|
116
110
|
});
|
|
117
111
|
export default BasicRadio;
|
|
@@ -18,7 +18,6 @@ declare class BasicRate implements ComponentInterface {
|
|
|
18
18
|
isCombinationComponent: boolean;
|
|
19
19
|
canSort: boolean;
|
|
20
20
|
children: ComponentInterface[];
|
|
21
|
-
dataType: ComponentInterface['dataType'];
|
|
22
21
|
constructor(options: PickOption);
|
|
23
22
|
render: (value: Value) => React.JSX.Element;
|
|
24
23
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -26,7 +25,7 @@ declare class BasicRate implements ComponentInterface {
|
|
|
26
25
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
27
26
|
getComponentValue: (r: Record) => any;
|
|
28
27
|
renderExport: (value: any, record: any) => any;
|
|
29
|
-
editRender: (
|
|
28
|
+
editRender: () => React.JSX.Element;
|
|
30
29
|
filterConfig: () => never[];
|
|
31
30
|
}
|
|
32
31
|
export default BasicRate;
|
|
@@ -25,7 +25,6 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
28
|
_defineProperty(this, "render", function (value) {
|
|
30
29
|
return /*#__PURE__*/React.createElement("div", null, value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
31
30
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -101,13 +100,12 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
101
100
|
}, [])) || [];
|
|
102
101
|
return textArr === null || textArr === void 0 ? void 0 : textArr.join(';');
|
|
103
102
|
});
|
|
104
|
-
_defineProperty(this, "editRender", function (
|
|
103
|
+
_defineProperty(this, "editRender", function () {
|
|
105
104
|
var _this$componentConfig, _this$componentConfig2;
|
|
106
105
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
107
106
|
title: _this.name,
|
|
108
107
|
name: _this.id,
|
|
109
108
|
rules: _this.rules,
|
|
110
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
111
109
|
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,
|
|
112
110
|
component: /*#__PURE__*/React.createElement(ApaasRate, _extends({}, _this.componentConfig, {
|
|
113
111
|
allowClear: false,
|
|
@@ -132,7 +130,6 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
132
130
|
this.canSort = true;
|
|
133
131
|
this.children = [];
|
|
134
132
|
this.rules = [];
|
|
135
|
-
this.dataType = 'object';
|
|
136
133
|
this.rateMap = {
|
|
137
134
|
0: '',
|
|
138
135
|
0.5: '非常差',
|
|
@@ -17,7 +17,6 @@ declare class BasicInput implements ComponentInterface {
|
|
|
17
17
|
canSort: boolean;
|
|
18
18
|
children: ComponentInterface[];
|
|
19
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
dataType: ComponentInterface['dataType'];
|
|
21
20
|
constructor(options: PickOption);
|
|
22
21
|
render: (value: Value) => React.JSX.Element;
|
|
23
22
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
@@ -29,7 +28,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
29
28
|
};
|
|
30
29
|
renderExport: (value: any, record: any) => string;
|
|
31
30
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
32
|
-
editRender: (
|
|
31
|
+
editRender: () => React.JSX.Element;
|
|
33
32
|
filterConfig: () => never[];
|
|
34
33
|
}
|
|
35
34
|
export default BasicInput;
|
|
@@ -27,7 +27,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
27
27
|
_defineProperty(this, "canSort", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
29
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
30
|
-
_defineProperty(this, "dataType", void 0);
|
|
31
30
|
_defineProperty(this, "render", function (value) {
|
|
32
31
|
var _value$address;
|
|
33
32
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -92,13 +91,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
92
91
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
93
92
|
}) : null;
|
|
94
93
|
});
|
|
95
|
-
_defineProperty(this, "editRender", function (
|
|
94
|
+
_defineProperty(this, "editRender", function () {
|
|
96
95
|
var _this$componentConfig, _this$componentConfig2;
|
|
97
96
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
98
97
|
title: _this.name,
|
|
99
98
|
name: _this.id,
|
|
100
99
|
rules: _this.rules,
|
|
101
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
102
100
|
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,
|
|
103
101
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
104
102
|
});
|
|
@@ -128,6 +126,5 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
128
126
|
}] : [];
|
|
129
127
|
this.effects = options.effects;
|
|
130
128
|
this.addressDateInstance = AddressData.getInstance();
|
|
131
|
-
this.dataType = 'object';
|
|
132
129
|
});
|
|
133
130
|
export default BasicInput;
|
|
@@ -11,14 +11,13 @@ declare class ReceiverMobile 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: Record) => React.JSX.Element | null;
|
|
17
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
18
|
getComponentValue: (r: Record) => any;
|
|
20
19
|
renderExport: (value: any, record: Record) => any;
|
|
21
|
-
editRender: (
|
|
20
|
+
editRender: (value: any) => React.JSX.Element;
|
|
22
21
|
filterConfig: (item: ColumnConfig) => {
|
|
23
22
|
searchDefaultConditions: "eq";
|
|
24
23
|
type: string;
|