@kmkf-fe-packages/services-components 0.6.3-alpha.4 → 0.6.3
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 +11 -8
- package/dist/esm/components/ActualPayment/index.js +22 -19
- package/dist/esm/components/Address/index.d.ts +14 -6
- package/dist/esm/components/Address/index.js +22 -9
- package/dist/esm/components/Alipay/index.d.ts +18 -9
- package/dist/esm/components/Alipay/index.js +17 -6
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -9
- package/dist/esm/components/AlipayAccount/index.js +24 -19
- package/dist/esm/components/AlipayName/index.d.ts +12 -8
- package/dist/esm/components/AlipayName/index.js +23 -18
- package/dist/esm/components/BuyerNick/index.d.ts +11 -8
- package/dist/esm/components/BuyerNick/index.js +25 -30
- package/dist/esm/components/Cascader/index.d.ts +23 -9
- package/dist/esm/components/Cascader/index.js +27 -29
- package/dist/esm/components/Checkbox/index.d.ts +10 -9
- package/dist/esm/components/Checkbox/index.js +21 -25
- package/dist/esm/components/CommonDataTime/index.d.ts +10 -8
- package/dist/esm/components/CommonDataTime/index.js +20 -19
- package/dist/esm/components/DataTime/index.d.ts +10 -9
- package/dist/esm/components/DataTime/index.js +23 -22
- package/dist/esm/components/EItemEnCode/index.d.ts +10 -8
- package/dist/esm/components/EItemEnCode/index.js +20 -22
- package/dist/esm/components/EItemId/index.d.ts +10 -8
- package/dist/esm/components/EItemId/index.js +20 -22
- package/dist/esm/components/EItemSelect/index.d.ts +11 -4
- package/dist/esm/components/EItemSelect/index.js +18 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +11 -8
- package/dist/esm/components/ErpTradeId/index.js +21 -18
- package/dist/esm/components/Express/index.d.ts +13 -9
- package/dist/esm/components/Express/index.js +29 -18
- package/dist/esm/components/ExpressCode/index.d.ts +12 -8
- package/dist/esm/components/ExpressCode/index.js +22 -17
- package/dist/esm/components/FlowStatusSelect/index.d.ts +33 -13
- package/dist/esm/components/FlowStatusSelect/index.js +22 -27
- package/dist/esm/components/Grade/index.d.ts +11 -4
- package/dist/esm/components/Grade/index.js +19 -6
- package/dist/esm/components/Input/index.d.ts +11 -8
- package/dist/esm/components/Input/index.js +24 -20
- package/dist/esm/components/JstItemSelect/index.d.ts +11 -9
- package/dist/esm/components/JstItemSelect/index.js +20 -35
- package/dist/esm/components/JstLogistics/index.d.ts +11 -16
- package/dist/esm/components/JstLogistics/index.js +20 -31
- package/dist/esm/components/JstSendGood/index.d.ts +11 -9
- package/dist/esm/components/JstSendGood/index.js +20 -35
- package/dist/esm/components/JstSupply/index.d.ts +11 -9
- package/dist/esm/components/JstSupply/index.js +20 -35
- package/dist/esm/components/Logistics/index.d.ts +25 -15
- package/dist/esm/components/Logistics/index.js +17 -10
- package/dist/esm/components/MultSelect/index.d.ts +10 -9
- package/dist/esm/components/MultSelect/index.js +20 -21
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +21 -8
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -14
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +21 -8
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +26 -14
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +16 -8
- package/dist/esm/components/Ordinary/OrdinarySerial.js +16 -14
- package/dist/esm/components/Ordinary/index.d.ts +22 -9
- package/dist/esm/components/Ordinary/index.js +7 -8
- package/dist/esm/components/Payment/AlipayNick.d.ts +22 -9
- package/dist/esm/components/Payment/AlipayNick.js +28 -16
- package/dist/esm/components/Payment/AlipayNo.d.ts +20 -8
- package/dist/esm/components/Payment/AlipayNo.js +27 -16
- package/dist/esm/components/Payment/AlipayTime.d.ts +22 -8
- package/dist/esm/components/Payment/AlipayTime.js +27 -15
- package/dist/esm/components/Payment/BuyerNick.d.ts +21 -8
- package/dist/esm/components/Payment/BuyerNick.js +26 -14
- package/dist/esm/components/Payment/PaymentAmount.d.ts +21 -8
- package/dist/esm/components/Payment/PaymentAmount.js +26 -14
- package/dist/esm/components/Payment/PaymentStatus.d.ts +27 -13
- package/dist/esm/components/Payment/PaymentStatus.js +36 -37
- package/dist/esm/components/Payment/PaymentTid.d.ts +21 -8
- package/dist/esm/components/Payment/PaymentTid.js +26 -14
- package/dist/esm/components/Payment/index.d.ts +96 -23
- package/dist/esm/components/Payment/index.js +17 -8
- package/dist/esm/components/Picture/index.d.ts +10 -8
- package/dist/esm/components/Picture/index.js +18 -6
- package/dist/esm/components/Radio/index.d.ts +10 -9
- package/dist/esm/components/Radio/index.js +23 -30
- package/dist/esm/components/Rate/index.d.ts +11 -4
- package/dist/esm/components/Rate/index.js +22 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +12 -4
- package/dist/esm/components/ReceiverAddress/index.js +26 -9
- package/dist/esm/components/ReceiverMobile/index.d.ts +12 -9
- package/dist/esm/components/ReceiverMobile/index.js +23 -20
- package/dist/esm/components/ReceiverName/index.d.ts +11 -8
- package/dist/esm/components/ReceiverName/index.js +23 -20
- package/dist/esm/components/Remark/index.d.ts +11 -8
- package/dist/esm/components/Remark/index.js +21 -18
- package/dist/esm/components/ReturnLogistics/index.d.ts +20 -15
- package/dist/esm/components/ReturnLogistics/index.js +7 -10
- package/dist/esm/components/Select/index.d.ts +10 -9
- package/dist/esm/components/Select/index.js +20 -20
- package/dist/esm/components/ShopName/index.d.ts +11 -8
- package/dist/esm/components/ShopName/index.js +20 -18
- package/dist/esm/components/SystemOrderNo/index.d.ts +11 -8
- package/dist/esm/components/SystemOrderNo/index.js +21 -18
- package/dist/esm/components/TemplateSelect/index.d.ts +11 -9
- package/dist/esm/components/TemplateSelect/index.js +20 -20
- package/dist/esm/components/TextArea/index.d.ts +10 -8
- package/dist/esm/components/TextArea/index.js +20 -18
- package/dist/esm/components/ThirdItemSelect/index.d.ts +10 -8
- package/dist/esm/components/ThirdItemSelect/index.js +20 -24
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -9
- package/dist/esm/components/TradeDateTime/index.js +10 -34
- package/dist/esm/components/TradeId/index.d.ts +5 -8
- package/dist/esm/components/TradeId/index.js +10 -18
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -8
- package/dist/esm/components/WorkOrderId/index.js +22 -20
- package/dist/esm/index.d.ts +0 -9
- package/dist/esm/index.js +1 -10
- package/dist/esm/type.d.ts +36 -38
- package/package.json +4 -4
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +0 -7
- package/dist/esm/commonComponents/PlatformAvatar/index.js +0 -28
- package/dist/esm/commonComponents/ShopList/index.d.ts +0 -13
- package/dist/esm/commonComponents/ShopList/index.js +0 -34
- package/dist/esm/components/CompletedUser/index.d.ts +0 -28
- package/dist/esm/components/CompletedUser/index.js +0 -60
- package/dist/esm/components/Handler/index.d.ts +0 -32
- package/dist/esm/components/Handler/index.js +0 -64
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +0 -25
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -89
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +0 -24
- package/dist/esm/components/LogisticsInterception/InterceptType.js +0 -62
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -27
- package/dist/esm/components/LogisticsInterception/index.js +0 -90
- package/dist/esm/components/PlatForm/index.d.ts +0 -29
- package/dist/esm/components/PlatForm/index.js +0 -62
- package/dist/esm/components/ShopInput/index.d.ts +0 -26
- package/dist/esm/components/ShopInput/index.js +0 -71
- package/dist/esm/components/Submitter/index.d.ts +0 -28
- package/dist/esm/components/Submitter/index.js +0 -60
- package/dist/esm/factory.d.ts +0 -3
- package/dist/esm/factory.js +0 -105
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
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,33 +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;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
};
|
|
51
124
|
}
|
|
52
125
|
export default Logistics;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -25,6 +23,11 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
25
23
|
_defineProperty(this, "id", void 0);
|
|
26
24
|
_defineProperty(this, "type", void 0);
|
|
27
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);
|
|
28
31
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
32
|
_defineProperty(this, "paymentTid", void 0);
|
|
30
33
|
_defineProperty(this, "paymentStatus", void 0);
|
|
@@ -33,8 +36,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
33
36
|
_defineProperty(this, "alipayNick", void 0);
|
|
34
37
|
_defineProperty(this, "alipayNo", void 0);
|
|
35
38
|
_defineProperty(this, "payTime", void 0);
|
|
36
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
37
|
-
_defineProperty(this, "children", void 0);
|
|
38
39
|
_defineProperty(this, "render", function () {
|
|
39
40
|
return null;
|
|
40
41
|
});
|
|
@@ -59,12 +60,22 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
59
60
|
}))
|
|
60
61
|
});
|
|
61
62
|
});
|
|
62
|
-
_defineProperty(this, "
|
|
63
|
-
return
|
|
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
|
+
};
|
|
64
70
|
});
|
|
65
71
|
this.name = options.name;
|
|
66
72
|
this.id = options.id;
|
|
67
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';
|
|
68
79
|
this.componentConfig = options.componentConfig;
|
|
69
80
|
this.paymentTid = new PaymentTid(options);
|
|
70
81
|
this.paymentStatus = new PaymentStatus(options);
|
|
@@ -73,8 +84,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
73
84
|
this.alipayNick = new AlipayNick(options);
|
|
74
85
|
this.alipayNo = new AlipayNo(options);
|
|
75
86
|
this.payTime = new AlipayTime(options);
|
|
76
|
-
this.isCombinationComponent = true;
|
|
77
|
-
this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
|
|
78
87
|
this.rules = [{
|
|
79
88
|
validator: function validator(_, value) {
|
|
80
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,10 +23,9 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
20
23
|
* @returns 图片类型的导出需要在导出时单独处理
|
|
21
24
|
*/
|
|
22
25
|
renderExport: () => null;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
filterConfig: () => never[];
|
|
26
|
+
getColumns: () => this & {
|
|
27
|
+
dataIndex: string;
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
28
30
|
}
|
|
29
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,15 +97,22 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
92
97
|
_defineProperty(this, "renderExport", function () {
|
|
93
98
|
return null;
|
|
94
99
|
});
|
|
95
|
-
_defineProperty(this, "
|
|
96
|
-
return
|
|
100
|
+
_defineProperty(this, "getColumns", function () {
|
|
101
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
102
|
+
dataIndex: _this.id,
|
|
103
|
+
title: _this.name
|
|
104
|
+
});
|
|
105
|
+
;
|
|
97
106
|
});
|
|
98
107
|
this.name = options.name;
|
|
99
108
|
this.id = options.id;
|
|
100
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;
|
|
101
115
|
this.componentConfig = options.componentConfig;
|
|
102
116
|
this.rules = [];
|
|
103
|
-
this.isCombinationComponent = false;
|
|
104
|
-
this.children = [];
|
|
105
117
|
});
|
|
106
118
|
export default BasicPicture;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
value?: string;
|
|
5
5
|
other?: string;
|
|
@@ -9,21 +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;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
options: any[] | undefined;
|
|
26
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
24
|
+
getColumns: () => this & {
|
|
25
|
+
dataIndex: string;
|
|
26
|
+
title: string;
|
|
27
|
+
renderExport: (value: any, record: Record) => string;
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
export default BasicRadio;
|
|
@@ -1,5 +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
|
|
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; }
|
|
3
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); } }
|
|
4
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; }
|
|
5
6
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -7,10 +8,10 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
8
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
9
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
10
|
import React from 'react';
|
|
10
|
-
import {
|
|
11
|
+
import { ApaasRadio } from '@kmkf-fe-packages/basic-components';
|
|
11
12
|
import GetFormItem from "../GetFormItem";
|
|
12
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull
|
|
14
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
15
|
import get from 'lodash/get';
|
|
15
16
|
var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
16
17
|
var _this = this,
|
|
@@ -20,9 +21,12 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
21
22
|
_defineProperty(this, "type", void 0);
|
|
22
23
|
_defineProperty(this, "rules", void 0);
|
|
24
|
+
_defineProperty(this, "canFilter", void 0);
|
|
25
|
+
_defineProperty(this, "canGroup", void 0);
|
|
26
|
+
_defineProperty(this, "canHidden", void 0);
|
|
27
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
|
+
_defineProperty(this, "showContains", void 0);
|
|
23
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
-
_defineProperty(this, "children", void 0);
|
|
26
30
|
_defineProperty(this, "render", function (value) {
|
|
27
31
|
var _value$value;
|
|
28
32
|
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, ")"));
|
|
@@ -53,41 +57,30 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
53
57
|
name: _this.id,
|
|
54
58
|
rules: _this.rules,
|
|
55
59
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
56
|
-
component: /*#__PURE__*/React.createElement(
|
|
57
|
-
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
58
|
-
showSearch: true
|
|
59
|
-
}))
|
|
60
|
+
component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
|
|
60
61
|
});
|
|
61
62
|
});
|
|
62
|
-
_defineProperty(this, "
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
filterComponentType: 'MultipleSelect',
|
|
70
|
-
options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
|
|
71
|
-
label: '其他',
|
|
72
|
-
value: '其他'
|
|
73
|
-
}) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || [],
|
|
74
|
-
filterFn: function filterFn(value) {
|
|
75
|
-
return function (i) {
|
|
76
|
-
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'radio'));
|
|
77
|
-
};
|
|
78
|
-
} // 第一个为选中值,第二个参数为表格行记录值
|
|
79
|
-
};
|
|
63
|
+
_defineProperty(this, "getColumns", function () {
|
|
64
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
65
|
+
dataIndex: _this.id,
|
|
66
|
+
title: _this.name,
|
|
67
|
+
renderExport: _this.renderExport
|
|
68
|
+
});
|
|
69
|
+
;
|
|
80
70
|
});
|
|
81
71
|
this.name = options.name;
|
|
82
72
|
this.id = options.id;
|
|
83
73
|
this.type = options.type;
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
74
|
+
this.canFilter = true;
|
|
75
|
+
this.canGroup = true;
|
|
76
|
+
this.canHidden = true;
|
|
77
|
+
this.showContains = false;
|
|
78
|
+
this.dataType = 'string';
|
|
86
79
|
this.componentConfig = options.componentConfig;
|
|
87
80
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
88
81
|
validator: function validator(_, value) {
|
|
89
82
|
if (!(value !== null && value !== void 0 && value.value)) {
|
|
90
|
-
return Promise.reject(new Error(
|
|
83
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
|
91
84
|
}
|
|
92
85
|
return Promise.resolve();
|
|
93
86
|
}
|
|
@@ -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,18 +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;
|
|
25
|
-
|
|
28
|
+
getColumns: () => this & {
|
|
29
|
+
dataIndex: string;
|
|
30
|
+
title: string;
|
|
31
|
+
renderExport: (value: any, record: any) => any;
|
|
32
|
+
};
|
|
26
33
|
}
|
|
27
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; }
|
|
@@ -14,16 +16,19 @@ import ItemView from "../../commonComponents/ItemView";
|
|
|
14
16
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
17
|
var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
16
18
|
var _this = this,
|
|
17
|
-
_this$
|
|
19
|
+
_this$componentConfig;
|
|
18
20
|
_classCallCheck(this, BasicRate);
|
|
19
21
|
_defineProperty(this, "name", void 0);
|
|
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", {
|
|
@@ -93,12 +98,11 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
93
98
|
return textArr === null || textArr === void 0 ? void 0 : textArr.join(';');
|
|
94
99
|
});
|
|
95
100
|
_defineProperty(this, "editRender", function () {
|
|
96
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
97
101
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
98
102
|
title: _this.name,
|
|
99
103
|
name: _this.id,
|
|
100
104
|
rules: _this.rules,
|
|
101
|
-
required:
|
|
105
|
+
required: false,
|
|
102
106
|
component: /*#__PURE__*/React.createElement(ApaasRate, _extends({}, _this.componentConfig, {
|
|
103
107
|
allowClear: false,
|
|
104
108
|
style: {
|
|
@@ -110,17 +114,24 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
110
114
|
}))
|
|
111
115
|
});
|
|
112
116
|
});
|
|
113
|
-
_defineProperty(this, "
|
|
114
|
-
return
|
|
117
|
+
_defineProperty(this, "getColumns", function () {
|
|
118
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
119
|
+
dataIndex: _this.id,
|
|
120
|
+
title: _this.name,
|
|
121
|
+
renderExport: _this.renderExport
|
|
122
|
+
});
|
|
123
|
+
;
|
|
115
124
|
});
|
|
116
125
|
this.name = options.name;
|
|
117
126
|
this.id = options.id;
|
|
118
127
|
this.type = options.type;
|
|
128
|
+
this.canFilter = false;
|
|
129
|
+
this.canGroup = false;
|
|
130
|
+
this.canHidden = true;
|
|
131
|
+
this.showContains = false;
|
|
132
|
+
this.dataType = 'array';
|
|
119
133
|
this.componentConfig = options.componentConfig;
|
|
120
|
-
this.
|
|
121
|
-
this.children = [];
|
|
122
|
-
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
123
|
-
required: true,
|
|
134
|
+
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
124
135
|
validator: function validator(_, value) {
|
|
125
136
|
if (value && !value.length) {
|
|
126
137
|
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
|
@@ -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,6 +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;
|
|
25
|
-
|
|
28
|
+
getColumns: () => this & {
|
|
29
|
+
dataIndex: string;
|
|
30
|
+
title: string;
|
|
31
|
+
componentType: (value: any) => JSX.Element;
|
|
32
|
+
renderExport: (value: any, record: any) => string;
|
|
33
|
+
};
|
|
26
34
|
}
|
|
27
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,15 +22,22 @@ 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;
|
|
30
35
|
return /*#__PURE__*/React.createElement("span", {
|
|
31
|
-
className: "pointer"
|
|
36
|
+
className: "pointer",
|
|
37
|
+
onClick: function onClick() {
|
|
38
|
+
var _this$effects;
|
|
39
|
+
return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
|
|
40
|
+
}
|
|
32
41
|
}, value === null || value === void 0 ? void 0 : (_value$address = value.address) === null || _value$address === void 0 ? void 0 : _value$address.map(function (suffix) {
|
|
33
42
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
34
43
|
}).join(''), value === null || value === void 0 ? void 0 : value.detail);
|
|
@@ -49,8 +58,8 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
49
58
|
return /*#__PURE__*/React.createElement("span", {
|
|
50
59
|
className: "pointer",
|
|
51
60
|
onClick: function onClick() {
|
|
52
|
-
var _this$
|
|
53
|
-
|
|
61
|
+
var _this$effects2;
|
|
62
|
+
return _this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record);
|
|
54
63
|
}
|
|
55
64
|
}, (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
|
|
56
65
|
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -89,15 +98,23 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
89
98
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
90
99
|
});
|
|
91
100
|
});
|
|
92
|
-
_defineProperty(this, "
|
|
93
|
-
return
|
|
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
|
+
});
|
|
94
108
|
});
|
|
95
109
|
this.name = options.name;
|
|
96
110
|
this.id = options.id;
|
|
97
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;
|
|
98
117
|
this.componentConfig = options.componentConfig;
|
|
99
|
-
this.isCombinationComponent = false;
|
|
100
|
-
this.children = [];
|
|
101
118
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
102
119
|
validator: function validator(_, value) {
|
|
103
120
|
var _value$address2;
|