@kmkf-fe-packages/services-components 0.5.2-alpha.1 → 0.6.0-alpha.1
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 +12 -3
- package/dist/esm/components/ActualPayment/index.js +22 -5
- package/dist/esm/components/Address/index.d.ts +12 -3
- package/dist/esm/components/Address/index.js +20 -4
- package/dist/esm/components/Alipay/index.d.ts +18 -3
- package/dist/esm/components/Alipay/index.js +18 -4
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -3
- package/dist/esm/components/AlipayAccount/index.js +21 -4
- package/dist/esm/components/AlipayName/index.d.ts +13 -3
- package/dist/esm/components/AlipayName/index.js +21 -4
- package/dist/esm/components/BuyerNick/index.d.ts +12 -3
- package/dist/esm/components/BuyerNick/index.js +27 -8
- package/dist/esm/components/Cascader/index.d.ts +24 -3
- package/dist/esm/components/Cascader/index.js +27 -12
- package/dist/esm/components/Checkbox/index.d.ts +11 -3
- package/dist/esm/components/Checkbox/index.js +20 -4
- package/dist/esm/components/CommonDataTime/index.d.ts +11 -3
- package/dist/esm/components/CommonDataTime/index.js +20 -4
- package/dist/esm/components/DataTime/index.d.ts +11 -3
- package/dist/esm/components/DataTime/index.js +23 -5
- package/dist/esm/components/EItemEnCode/index.d.ts +11 -3
- package/dist/esm/components/EItemEnCode/index.js +20 -4
- package/dist/esm/components/EItemId/index.d.ts +11 -3
- package/dist/esm/components/EItemId/index.js +20 -4
- package/dist/esm/components/EItemSelect/index.d.ts +11 -3
- package/dist/esm/components/EItemSelect/index.js +25 -10
- package/dist/esm/components/ErpTradeId/index.d.ts +12 -3
- package/dist/esm/components/ErpTradeId/index.js +21 -4
- package/dist/esm/components/Express/index.d.ts +14 -3
- package/dist/esm/components/Express/index.js +29 -4
- package/dist/esm/components/ExpressCode/index.d.ts +13 -3
- package/dist/esm/components/ExpressCode/index.js +22 -4
- package/dist/esm/components/FlowStatusSelect/index.d.ts +34 -4
- package/dist/esm/components/FlowStatusSelect/index.js +21 -4
- package/dist/esm/components/Grade/index.d.ts +11 -3
- package/dist/esm/components/Grade/index.js +20 -4
- package/dist/esm/components/Input/index.d.ts +12 -3
- package/dist/esm/components/Input/index.js +24 -6
- package/dist/esm/components/JstItemSelect/index.d.ts +11 -3
- package/dist/esm/components/JstItemSelect/index.js +20 -4
- package/dist/esm/components/JstLogistics/index.d.ts +11 -3
- package/dist/esm/components/JstLogistics/index.js +20 -4
- package/dist/esm/components/JstSendGood/index.d.ts +11 -3
- package/dist/esm/components/JstSendGood/index.js +20 -4
- package/dist/esm/components/JstSupply/index.d.ts +11 -3
- package/dist/esm/components/JstSupply/index.js +20 -4
- package/dist/esm/components/Logistics/index.d.ts +25 -3
- package/dist/esm/components/Logistics/index.js +18 -4
- package/dist/esm/components/MultSelect/index.d.ts +11 -3
- package/dist/esm/components/MultSelect/index.js +20 -4
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +22 -3
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +28 -4
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +22 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +28 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +16 -2
- package/dist/esm/components/Ordinary/OrdinarySerial.js +18 -4
- package/dist/esm/components/Ordinary/index.d.ts +21 -2
- package/dist/esm/components/Ordinary/index.js +8 -4
- package/dist/esm/components/Payment/AlipayNick.d.ts +22 -3
- package/dist/esm/components/Payment/AlipayNick.js +28 -4
- package/dist/esm/components/Payment/AlipayNo.d.ts +21 -3
- package/dist/esm/components/Payment/AlipayNo.js +27 -4
- package/dist/esm/components/Payment/AlipayTime.d.ts +23 -3
- package/dist/esm/components/Payment/AlipayTime.js +29 -4
- package/dist/esm/components/Payment/BuyerNick.d.ts +22 -3
- package/dist/esm/components/Payment/BuyerNick.js +28 -4
- package/dist/esm/components/Payment/PaymentAmount.d.ts +22 -3
- package/dist/esm/components/Payment/PaymentAmount.js +28 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +31 -3
- package/dist/esm/components/Payment/PaymentStatus.js +39 -4
- package/dist/esm/components/Payment/PaymentTid.d.ts +22 -3
- package/dist/esm/components/Payment/PaymentTid.js +28 -4
- package/dist/esm/components/Payment/index.d.ts +96 -3
- package/dist/esm/components/Payment/index.js +18 -4
- package/dist/esm/components/Picture/index.d.ts +10 -3
- package/dist/esm/components/Picture/index.js +19 -4
- package/dist/esm/components/Radio/index.d.ts +11 -3
- package/dist/esm/components/Radio/index.js +20 -4
- package/dist/esm/components/Rate/index.d.ts +11 -3
- package/dist/esm/components/Rate/index.js +20 -4
- package/dist/esm/components/ReceiverAddress/index.d.ts +12 -3
- package/dist/esm/components/ReceiverAddress/index.js +20 -4
- package/dist/esm/components/ReceiverMobile/index.d.ts +12 -3
- package/dist/esm/components/ReceiverMobile/index.js +21 -4
- package/dist/esm/components/ReceiverName/index.d.ts +12 -3
- package/dist/esm/components/ReceiverName/index.js +21 -4
- package/dist/esm/components/Remark/index.d.ts +12 -3
- package/dist/esm/components/Remark/index.js +21 -4
- package/dist/esm/components/ReturnLogistics/index.d.ts +19 -2
- package/dist/esm/components/ReturnLogistics/index.js +8 -4
- package/dist/esm/components/Select/index.d.ts +11 -3
- package/dist/esm/components/Select/index.js +20 -4
- package/dist/esm/components/ShopName/index.d.ts +12 -3
- package/dist/esm/components/ShopName/index.js +20 -4
- package/dist/esm/components/SystemOrderNo/index.d.ts +12 -3
- package/dist/esm/components/SystemOrderNo/index.js +21 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +12 -3
- package/dist/esm/components/TemplateSelect/index.js +21 -4
- package/dist/esm/components/TextArea/index.d.ts +11 -3
- package/dist/esm/components/TextArea/index.js +20 -4
- package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -3
- package/dist/esm/components/ThirdItemSelect/index.js +20 -4
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -2
- package/dist/esm/components/TradeDateTime/index.js +10 -4
- package/dist/esm/components/TradeId/index.d.ts +5 -2
- package/dist/esm/components/TradeId/index.js +10 -4
- package/dist/esm/components/WorkOrderId/index.d.ts +12 -3
- package/dist/esm/components/WorkOrderId/index.js +21 -4
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/type.d.ts +30 -3
- package/package.json +4 -4
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +0 -24
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -85
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -22
- package/dist/esm/components/LogisticsInterception/index.js +0 -73
|
@@ -1,20 +1,39 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType } 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
align: ALignType;
|
|
10
15
|
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
children: ComponentInterface[];
|
|
13
16
|
constructor(options: PickOption);
|
|
14
17
|
render: (value: string) => JSX.Element;
|
|
15
18
|
renderClient: (record: any) => JSX.Element | null;
|
|
16
19
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
17
20
|
renderExport: (value: string) => string;
|
|
18
21
|
editRender: () => JSX.Element;
|
|
22
|
+
getColumns: () => {
|
|
23
|
+
title: string;
|
|
24
|
+
align: ALignType;
|
|
25
|
+
dataIndex: string;
|
|
26
|
+
dataType: DataType;
|
|
27
|
+
canHidden: boolean;
|
|
28
|
+
canFilter: boolean;
|
|
29
|
+
canGroup: boolean;
|
|
30
|
+
width: number;
|
|
31
|
+
type: string;
|
|
32
|
+
render: (value: any, record: any) => JSX.Element;
|
|
33
|
+
renderPc: (value: any, record: any) => JSX.Element;
|
|
34
|
+
componentType: () => JSX.Element;
|
|
35
|
+
showContains: boolean;
|
|
36
|
+
renderExport: (value: string) => string;
|
|
37
|
+
};
|
|
19
38
|
}
|
|
20
39
|
export default PaymentTid;
|
|
@@ -17,11 +17,14 @@ 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);
|
|
20
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
26
|
_defineProperty(this, "align", void 0);
|
|
22
27
|
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "children", void 0);
|
|
25
28
|
_defineProperty(this, "render", function (value) {
|
|
26
29
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
27
30
|
});
|
|
@@ -48,14 +51,35 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
48
51
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
49
52
|
});
|
|
50
53
|
});
|
|
54
|
+
_defineProperty(this, "getColumns", function () {
|
|
55
|
+
return {
|
|
56
|
+
title: _this.name,
|
|
57
|
+
align: _this.align,
|
|
58
|
+
dataIndex: _this.id,
|
|
59
|
+
dataType: _this.dataType,
|
|
60
|
+
canHidden: _this.canHidden,
|
|
61
|
+
canFilter: _this.canFilter,
|
|
62
|
+
canGroup: _this.canGroup,
|
|
63
|
+
width: _this.width,
|
|
64
|
+
type: _this.type,
|
|
65
|
+
render: _this.renderPc,
|
|
66
|
+
renderPc: _this.renderPc,
|
|
67
|
+
componentType: _this.editRender,
|
|
68
|
+
showContains: _this.showContains,
|
|
69
|
+
renderExport: _this.renderExport
|
|
70
|
+
};
|
|
71
|
+
});
|
|
51
72
|
this.name = '订单编号';
|
|
52
73
|
this.id = "".concat(options.id, "_enterprisePaymentTid");
|
|
53
74
|
this.type = options.type;
|
|
75
|
+
this.canFilter = true;
|
|
76
|
+
this.canGroup = true;
|
|
77
|
+
this.canHidden = false;
|
|
78
|
+
this.showContains = false;
|
|
79
|
+
this.dataType = 'string';
|
|
54
80
|
this.componentConfig = options.componentConfig;
|
|
55
81
|
this.rules = [];
|
|
56
82
|
this.align = 'left';
|
|
57
83
|
this.width = 200;
|
|
58
|
-
this.isCombinationComponent = false;
|
|
59
|
-
this.children = [];
|
|
60
84
|
});
|
|
61
85
|
export default PaymentTid;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType } from '../../type';
|
|
3
3
|
import AlipayNick from './AlipayNick';
|
|
4
4
|
import AlipayNo from './AlipayNo';
|
|
5
5
|
import AlipayTime from './AlipayTime';
|
|
@@ -12,6 +12,11 @@ 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;
|
|
15
20
|
componentConfig: ComponentInterface["componentConfig"];
|
|
16
21
|
paymentTid: PaymentTid;
|
|
17
22
|
paymentStatus: PaymentStatus;
|
|
@@ -20,13 +25,101 @@ declare class Logistics implements ComponentInterface {
|
|
|
20
25
|
alipayNick: AlipayNick;
|
|
21
26
|
alipayNo: AlipayNo;
|
|
22
27
|
payTime: AlipayTime;
|
|
23
|
-
isCombinationComponent: boolean;
|
|
24
|
-
children: ComponentInterface[];
|
|
25
28
|
constructor(options: PickOption);
|
|
26
29
|
render: () => null;
|
|
27
30
|
renderClient: (record: any) => JSX.Element;
|
|
28
31
|
renderPc: () => null;
|
|
29
32
|
renderExport: () => null;
|
|
30
33
|
editRender: (value: any) => JSX.Element;
|
|
34
|
+
getColumns: () => {
|
|
35
|
+
title: string;
|
|
36
|
+
children: ({
|
|
37
|
+
title: string;
|
|
38
|
+
align: import("../../type").ALignType;
|
|
39
|
+
dataIndex: string;
|
|
40
|
+
dataType: DataType;
|
|
41
|
+
canHidden: boolean;
|
|
42
|
+
canFilter: boolean;
|
|
43
|
+
canGroup: boolean;
|
|
44
|
+
width: number;
|
|
45
|
+
type: string;
|
|
46
|
+
render: (value: any, record: any) => any;
|
|
47
|
+
renderPc: (value: any, record: any) => any;
|
|
48
|
+
componentType: (value: any) => null;
|
|
49
|
+
showContains: boolean;
|
|
50
|
+
renderExport: (value: any) => any;
|
|
51
|
+
widget: string;
|
|
52
|
+
'x-options': {
|
|
53
|
+
label: string;
|
|
54
|
+
value: string;
|
|
55
|
+
}[];
|
|
56
|
+
'x-style': {
|
|
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
|
+
};
|
|
31
124
|
}
|
|
32
125
|
export default Logistics;
|
|
@@ -23,6 +23,11 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
23
23
|
_defineProperty(this, "id", void 0);
|
|
24
24
|
_defineProperty(this, "type", void 0);
|
|
25
25
|
_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);
|
|
26
31
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
32
|
_defineProperty(this, "paymentTid", void 0);
|
|
28
33
|
_defineProperty(this, "paymentStatus", void 0);
|
|
@@ -31,8 +36,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
31
36
|
_defineProperty(this, "alipayNick", void 0);
|
|
32
37
|
_defineProperty(this, "alipayNo", void 0);
|
|
33
38
|
_defineProperty(this, "payTime", void 0);
|
|
34
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
35
|
-
_defineProperty(this, "children", void 0);
|
|
36
39
|
_defineProperty(this, "render", function () {
|
|
37
40
|
return null;
|
|
38
41
|
});
|
|
@@ -57,9 +60,22 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
57
60
|
}))
|
|
58
61
|
});
|
|
59
62
|
});
|
|
63
|
+
_defineProperty(this, "getColumns", function () {
|
|
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
|
+
};
|
|
70
|
+
});
|
|
60
71
|
this.name = options.name;
|
|
61
72
|
this.id = options.id;
|
|
62
73
|
this.type = options.type;
|
|
74
|
+
this.canFilter = false;
|
|
75
|
+
this.canGroup = false;
|
|
76
|
+
this.canHidden = true;
|
|
77
|
+
this.showContains = false;
|
|
78
|
+
this.dataType = 'string';
|
|
63
79
|
this.componentConfig = options.componentConfig;
|
|
64
80
|
this.paymentTid = new PaymentTid(options);
|
|
65
81
|
this.paymentStatus = new PaymentStatus(options);
|
|
@@ -68,8 +84,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
68
84
|
this.alipayNick = new AlipayNick(options);
|
|
69
85
|
this.alipayNo = new AlipayNo(options);
|
|
70
86
|
this.payTime = new AlipayTime(options);
|
|
71
|
-
this.isCombinationComponent = true;
|
|
72
|
-
this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
|
|
73
87
|
this.rules = [{
|
|
74
88
|
validator: function validator(_, value) {
|
|
75
89
|
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, 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;
|
|
9
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
-
isCombinationComponent: boolean;
|
|
11
|
-
children: ComponentInterface[];
|
|
12
15
|
constructor(options: PickOption);
|
|
13
16
|
formatPictures: (pictures: string) => string[];
|
|
14
17
|
render: (value: Value) => JSX.Element | null;
|
|
@@ -20,5 +23,9 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
20
23
|
* @returns 图片类型的导出需要在导出时单独处理
|
|
21
24
|
*/
|
|
22
25
|
renderExport: () => null;
|
|
26
|
+
getColumns: () => this & {
|
|
27
|
+
dataIndex: string;
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
23
30
|
}
|
|
24
31
|
export default BasicPicture;
|
|
@@ -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; }
|
|
@@ -20,9 +22,12 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
20
22
|
_defineProperty(this, "id", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
24
|
_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);
|
|
23
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
-
_defineProperty(this, "children", void 0);
|
|
26
31
|
_defineProperty(this, "formatPictures", function (pictures) {
|
|
27
32
|
pictures = pictures.replace(/[\[\]]/g, '');
|
|
28
33
|
pictures = pictures.replace(/\s/g, '');
|
|
@@ -92,12 +97,22 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
92
97
|
_defineProperty(this, "renderExport", function () {
|
|
93
98
|
return null;
|
|
94
99
|
});
|
|
100
|
+
_defineProperty(this, "getColumns", function () {
|
|
101
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
102
|
+
dataIndex: _this.id,
|
|
103
|
+
title: _this.name
|
|
104
|
+
});
|
|
105
|
+
;
|
|
106
|
+
});
|
|
95
107
|
this.name = options.name;
|
|
96
108
|
this.id = options.id;
|
|
97
109
|
this.type = options.type;
|
|
110
|
+
this.canFilter = false;
|
|
111
|
+
this.canGroup = false;
|
|
112
|
+
this.canHidden = true;
|
|
113
|
+
this.dataType = 'array';
|
|
114
|
+
this.showContains = false;
|
|
98
115
|
this.componentConfig = options.componentConfig;
|
|
99
116
|
this.rules = [];
|
|
100
|
-
this.isCombinationComponent = false;
|
|
101
|
-
this.children = [];
|
|
102
117
|
});
|
|
103
118
|
export default BasicPicture;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
value?: string;
|
|
5
5
|
other?: string;
|
|
@@ -9,14 +9,22 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
9
9
|
id: string;
|
|
10
10
|
type: string;
|
|
11
11
|
rules: any[];
|
|
12
|
+
canFilter: boolean;
|
|
13
|
+
canGroup: boolean;
|
|
14
|
+
canHidden: boolean;
|
|
15
|
+
dataType: DataType;
|
|
16
|
+
showContains: boolean;
|
|
12
17
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
|
-
isCombinationComponent: boolean;
|
|
14
|
-
children: ComponentInterface[];
|
|
15
18
|
constructor(options: PickOption);
|
|
16
19
|
render: (value: Value) => JSX.Element;
|
|
17
20
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
18
21
|
renderExport: (value: any, record: Record) => string;
|
|
19
22
|
renderClient: (record: Record) => JSX.Element | null;
|
|
20
23
|
editRender: () => JSX.Element;
|
|
24
|
+
getColumns: () => this & {
|
|
25
|
+
dataIndex: string;
|
|
26
|
+
title: string;
|
|
27
|
+
renderExport: (value: any, record: Record) => string;
|
|
28
|
+
};
|
|
21
29
|
}
|
|
22
30
|
export default BasicRadio;
|
|
@@ -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; }
|
|
@@ -20,9 +22,12 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
20
22
|
_defineProperty(this, "id", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
24
|
_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);
|
|
23
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
-
_defineProperty(this, "children", void 0);
|
|
26
31
|
_defineProperty(this, "render", function (value) {
|
|
27
32
|
var _value$value;
|
|
28
33
|
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, ")"));
|
|
@@ -59,11 +64,22 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
59
64
|
}))
|
|
60
65
|
});
|
|
61
66
|
});
|
|
67
|
+
_defineProperty(this, "getColumns", function () {
|
|
68
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
69
|
+
dataIndex: _this.id,
|
|
70
|
+
title: _this.name,
|
|
71
|
+
renderExport: _this.renderExport
|
|
72
|
+
});
|
|
73
|
+
;
|
|
74
|
+
});
|
|
62
75
|
this.name = options.name;
|
|
63
76
|
this.id = options.id;
|
|
64
77
|
this.type = options.type;
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
78
|
+
this.canFilter = true;
|
|
79
|
+
this.canGroup = true;
|
|
80
|
+
this.canHidden = true;
|
|
81
|
+
this.showContains = false;
|
|
82
|
+
this.dataType = 'string';
|
|
67
83
|
this.componentConfig = options.componentConfig;
|
|
68
84
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
69
85
|
validator: function validator(_, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
name: string;
|
|
5
5
|
value: number;
|
|
@@ -10,17 +10,25 @@ declare class BasicRate implements ComponentInterface {
|
|
|
10
10
|
id: string;
|
|
11
11
|
type: string;
|
|
12
12
|
rules: any[];
|
|
13
|
+
canFilter: boolean;
|
|
14
|
+
canGroup: boolean;
|
|
15
|
+
canHidden: boolean;
|
|
16
|
+
dataType: DataType;
|
|
17
|
+
showContains: boolean;
|
|
13
18
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
19
|
rateMap: {
|
|
15
20
|
[prop in number]: string;
|
|
16
21
|
};
|
|
17
|
-
isCombinationComponent: boolean;
|
|
18
|
-
children: ComponentInterface[];
|
|
19
22
|
constructor(options: PickOption);
|
|
20
23
|
render: (value: Value) => JSX.Element;
|
|
21
24
|
renderClient: (record: Record) => JSX.Element | null;
|
|
22
25
|
renderPc: (value: any, record: Record) => JSX.Element | null;
|
|
23
26
|
renderExport: (value: any, record: any) => any;
|
|
24
27
|
editRender: () => JSX.Element;
|
|
28
|
+
getColumns: () => this & {
|
|
29
|
+
dataIndex: string;
|
|
30
|
+
title: string;
|
|
31
|
+
renderExport: (value: any, record: any) => any;
|
|
32
|
+
};
|
|
25
33
|
}
|
|
26
34
|
export default BasicRate;
|
|
@@ -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; }
|
|
@@ -20,10 +22,13 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
20
22
|
_defineProperty(this, "id", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
24
|
_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);
|
|
23
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
31
|
_defineProperty(this, "rateMap", void 0);
|
|
25
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
32
|
_defineProperty(this, "render", function (value) {
|
|
28
33
|
return /*#__PURE__*/React.createElement("div", null, value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
29
34
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -110,12 +115,23 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
110
115
|
}))
|
|
111
116
|
});
|
|
112
117
|
});
|
|
118
|
+
_defineProperty(this, "getColumns", function () {
|
|
119
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
120
|
+
dataIndex: _this.id,
|
|
121
|
+
title: _this.name,
|
|
122
|
+
renderExport: _this.renderExport
|
|
123
|
+
});
|
|
124
|
+
;
|
|
125
|
+
});
|
|
113
126
|
this.name = options.name;
|
|
114
127
|
this.id = options.id;
|
|
115
128
|
this.type = options.type;
|
|
129
|
+
this.canFilter = false;
|
|
130
|
+
this.canGroup = false;
|
|
131
|
+
this.canHidden = true;
|
|
132
|
+
this.showContains = false;
|
|
133
|
+
this.dataType = 'array';
|
|
116
134
|
this.componentConfig = options.componentConfig;
|
|
117
|
-
this.isCombinationComponent = false;
|
|
118
|
-
this.children = [];
|
|
119
135
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
120
136
|
required: true,
|
|
121
137
|
validator: function validator(_, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
3
3
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = {
|
|
5
5
|
address?: (string | number)[];
|
|
@@ -10,10 +10,13 @@ declare class BasicInput implements ComponentInterface {
|
|
|
10
10
|
id: string;
|
|
11
11
|
type: string;
|
|
12
12
|
rules: any[];
|
|
13
|
+
canFilter: boolean;
|
|
14
|
+
canGroup: boolean;
|
|
15
|
+
canHidden: boolean;
|
|
16
|
+
dataType: DataType;
|
|
17
|
+
showContains: boolean;
|
|
13
18
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
19
|
effects: ComponentInterface["effects"];
|
|
15
|
-
isCombinationComponent: boolean;
|
|
16
|
-
children: ComponentInterface[];
|
|
17
20
|
addressDateInstance: AddressData;
|
|
18
21
|
constructor(options: PickOption);
|
|
19
22
|
render: (value: Value, record: any) => JSX.Element;
|
|
@@ -22,5 +25,11 @@ declare class BasicInput implements ComponentInterface {
|
|
|
22
25
|
renderExport: (value: any, record: any) => string;
|
|
23
26
|
renderClient: (record: any) => JSX.Element | null;
|
|
24
27
|
editRender: (value: any) => JSX.Element;
|
|
28
|
+
getColumns: () => this & {
|
|
29
|
+
dataIndex: string;
|
|
30
|
+
title: string;
|
|
31
|
+
componentType: (value: any) => JSX.Element;
|
|
32
|
+
renderExport: (value: any, record: any) => string;
|
|
33
|
+
};
|
|
25
34
|
}
|
|
26
35
|
export default BasicInput;
|
|
@@ -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 _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); } }
|
|
3
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
6
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -20,10 +22,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
20
22
|
_defineProperty(this, "id", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
24
|
_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);
|
|
23
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
31
|
_defineProperty(this, "effects", void 0);
|
|
25
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
32
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
28
33
|
_defineProperty(this, "render", function (value, record) {
|
|
29
34
|
var _value$address;
|
|
@@ -93,12 +98,23 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
93
98
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
94
99
|
});
|
|
95
100
|
});
|
|
101
|
+
_defineProperty(this, "getColumns", function () {
|
|
102
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
103
|
+
dataIndex: _this.id,
|
|
104
|
+
title: _this.name,
|
|
105
|
+
componentType: _this.editRender,
|
|
106
|
+
renderExport: _this.renderExport
|
|
107
|
+
});
|
|
108
|
+
});
|
|
96
109
|
this.name = options.name;
|
|
97
110
|
this.id = options.id;
|
|
98
111
|
this.type = options.type;
|
|
112
|
+
this.canFilter = false;
|
|
113
|
+
this.canGroup = false;
|
|
114
|
+
this.canHidden = true;
|
|
115
|
+
this.dataType = 'array';
|
|
116
|
+
this.showContains = false;
|
|
99
117
|
this.componentConfig = options.componentConfig;
|
|
100
|
-
this.isCombinationComponent = false;
|
|
101
|
-
this.children = [];
|
|
102
118
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
103
119
|
validator: function validator(_, value) {
|
|
104
120
|
var _value$address2;
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
3
3
|
declare class ReceiverMobile 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
effects: ComponentInterface["effects"];
|
|
10
|
-
isCombinationComponent: boolean;
|
|
11
|
-
children: ComponentInterface[];
|
|
12
15
|
constructor(options: PickOption);
|
|
13
16
|
render: (value: string, record: Record) => JSX.Element;
|
|
14
17
|
renderClient: (record: Record) => JSX.Element | null;
|
|
15
18
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
19
|
renderExport: (value: any, record: Record) => any;
|
|
17
20
|
editRender: (value: any) => JSX.Element;
|
|
21
|
+
getColumns: () => this & {
|
|
22
|
+
dataIndex: string;
|
|
23
|
+
title: string;
|
|
24
|
+
componentType: (value: any) => JSX.Element;
|
|
25
|
+
renderExport: (value: any, record: Record) => any;
|
|
26
|
+
};
|
|
18
27
|
}
|
|
19
28
|
export default ReceiverMobile;
|