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