@kmkf-fe-packages/services-components 0.5.2-alpha.0 → 0.5.2-alpha.2
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 +3 -12
- package/dist/esm/components/ActualPayment/index.js +5 -22
- package/dist/esm/components/Address/index.d.ts +3 -12
- package/dist/esm/components/Address/index.js +4 -20
- package/dist/esm/components/Alipay/index.d.ts +3 -18
- package/dist/esm/components/Alipay/index.js +4 -18
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -13
- package/dist/esm/components/AlipayAccount/index.js +4 -21
- package/dist/esm/components/AlipayName/index.d.ts +3 -13
- package/dist/esm/components/AlipayName/index.js +4 -21
- package/dist/esm/components/BuyerNick/index.d.ts +3 -12
- package/dist/esm/components/BuyerNick/index.js +4 -22
- package/dist/esm/components/Cascader/index.d.ts +3 -24
- package/dist/esm/components/Cascader/index.js +12 -27
- package/dist/esm/components/Checkbox/index.d.ts +3 -11
- package/dist/esm/components/Checkbox/index.js +4 -20
- package/dist/esm/components/CommonDataTime/index.d.ts +3 -11
- package/dist/esm/components/CommonDataTime/index.js +4 -20
- package/dist/esm/components/DataTime/index.d.ts +3 -11
- package/dist/esm/components/DataTime/index.js +5 -23
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -11
- package/dist/esm/components/EItemEnCode/index.js +4 -20
- package/dist/esm/components/EItemId/index.d.ts +3 -11
- package/dist/esm/components/EItemId/index.js +4 -20
- package/dist/esm/components/EItemSelect/index.d.ts +3 -11
- package/dist/esm/components/EItemSelect/index.js +4 -20
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -12
- package/dist/esm/components/ErpTradeId/index.js +4 -21
- package/dist/esm/components/Express/index.d.ts +3 -14
- package/dist/esm/components/Express/index.js +4 -29
- package/dist/esm/components/ExpressCode/index.d.ts +3 -13
- package/dist/esm/components/ExpressCode/index.js +4 -22
- package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -34
- package/dist/esm/components/FlowStatusSelect/index.js +4 -21
- package/dist/esm/components/Grade/index.d.ts +3 -11
- package/dist/esm/components/Grade/index.js +4 -20
- package/dist/esm/components/Input/index.d.ts +3 -12
- package/dist/esm/components/Input/index.js +6 -24
- package/dist/esm/components/JstItemSelect/index.d.ts +3 -11
- package/dist/esm/components/JstItemSelect/index.js +4 -20
- package/dist/esm/components/JstLogistics/index.d.ts +3 -11
- package/dist/esm/components/JstLogistics/index.js +4 -20
- package/dist/esm/components/JstSendGood/index.d.ts +3 -11
- package/dist/esm/components/JstSendGood/index.js +4 -20
- package/dist/esm/components/JstSupply/index.d.ts +3 -11
- package/dist/esm/components/JstSupply/index.js +4 -20
- package/dist/esm/components/Logistics/index.d.ts +3 -25
- package/dist/esm/components/Logistics/index.js +4 -18
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +24 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +85 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +22 -0
- package/dist/esm/components/LogisticsInterception/index.js +73 -0
- package/dist/esm/components/MultSelect/index.d.ts +3 -11
- package/dist/esm/components/MultSelect/index.js +4 -20
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -22
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +4 -28
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -22
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -28
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -16
- package/dist/esm/components/Ordinary/OrdinarySerial.js +4 -18
- package/dist/esm/components/Ordinary/index.d.ts +2 -21
- package/dist/esm/components/Ordinary/index.js +4 -8
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -22
- package/dist/esm/components/Payment/AlipayNick.js +4 -28
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -21
- package/dist/esm/components/Payment/AlipayNo.js +4 -27
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -23
- package/dist/esm/components/Payment/AlipayTime.js +4 -29
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -22
- package/dist/esm/components/Payment/BuyerNick.js +4 -28
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -22
- package/dist/esm/components/Payment/PaymentAmount.js +4 -28
- package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -31
- package/dist/esm/components/Payment/PaymentStatus.js +4 -39
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -22
- package/dist/esm/components/Payment/PaymentTid.js +4 -28
- package/dist/esm/components/Payment/index.d.ts +3 -96
- package/dist/esm/components/Payment/index.js +4 -18
- package/dist/esm/components/Picture/index.d.ts +3 -10
- package/dist/esm/components/Picture/index.js +4 -19
- package/dist/esm/components/PlatForm/index.d.ts +19 -0
- package/dist/esm/components/PlatForm/index.js +46 -0
- package/dist/esm/components/Radio/index.d.ts +3 -11
- package/dist/esm/components/Radio/index.js +4 -20
- package/dist/esm/components/Rate/index.d.ts +3 -11
- package/dist/esm/components/Rate/index.js +4 -20
- package/dist/esm/components/ReceiverAddress/index.d.ts +3 -12
- package/dist/esm/components/ReceiverAddress/index.js +4 -20
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -12
- package/dist/esm/components/ReceiverMobile/index.js +4 -21
- package/dist/esm/components/ReceiverName/index.d.ts +3 -12
- package/dist/esm/components/ReceiverName/index.js +4 -21
- package/dist/esm/components/Remark/index.d.ts +3 -12
- package/dist/esm/components/Remark/index.js +4 -21
- package/dist/esm/components/ReturnLogistics/index.d.ts +2 -19
- package/dist/esm/components/ReturnLogistics/index.js +4 -8
- package/dist/esm/components/Select/index.d.ts +3 -11
- package/dist/esm/components/Select/index.js +4 -20
- package/dist/esm/components/ShopName/index.d.ts +3 -12
- package/dist/esm/components/ShopName/index.js +4 -20
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -12
- package/dist/esm/components/SystemOrderNo/index.js +4 -21
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -12
- package/dist/esm/components/TemplateSelect/index.js +4 -21
- package/dist/esm/components/TextArea/index.d.ts +3 -11
- package/dist/esm/components/TextArea/index.js +4 -20
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -11
- package/dist/esm/components/ThirdItemSelect/index.js +4 -20
- package/dist/esm/components/TradeDateTime/index.d.ts +2 -5
- package/dist/esm/components/TradeDateTime/index.js +4 -10
- package/dist/esm/components/TradeId/index.d.ts +2 -5
- package/dist/esm/components/TradeId/index.js +4 -10
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -12
- package/dist/esm/components/WorkOrderId/index.js +4 -21
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/type.d.ts +3 -30
- package/package.json +3 -3
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
3
3
|
declare class ActualPayment implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
8
|
+
isCombinationComponent: boolean;
|
|
9
|
+
children: ComponentInterface[];
|
|
13
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
11
|
constructor(options: PickOption);
|
|
15
12
|
render: (value: number) => JSX.Element;
|
|
@@ -17,11 +14,5 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
17
14
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
18
15
|
renderExport: (value: unknown, record: Record) => any;
|
|
19
16
|
editRender: (value: any) => JSX.Element;
|
|
20
|
-
getColumns: () => this & {
|
|
21
|
-
dataIndex: string;
|
|
22
|
-
title: string;
|
|
23
|
-
renderExport: (value: unknown, record: Record) => any;
|
|
24
|
-
componentType: (value: any) => JSX.Element;
|
|
25
|
-
};
|
|
26
17
|
}
|
|
27
18
|
export default ActualPayment;
|
|
@@ -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; }
|
|
@@ -20,11 +18,8 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
20
18
|
_defineProperty(this, "id", void 0);
|
|
21
19
|
_defineProperty(this, "type", void 0);
|
|
22
20
|
_defineProperty(this, "rules", void 0);
|
|
23
|
-
_defineProperty(this, "
|
|
24
|
-
_defineProperty(this, "
|
|
25
|
-
_defineProperty(this, "canHidden", void 0);
|
|
26
|
-
_defineProperty(this, "dataType", void 0);
|
|
27
|
-
_defineProperty(this, "showContains", void 0);
|
|
21
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "children", void 0);
|
|
28
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
24
|
_defineProperty(this, "render", function (value) {
|
|
30
25
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
@@ -56,23 +51,11 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
56
51
|
}))
|
|
57
52
|
});
|
|
58
53
|
});
|
|
59
|
-
_defineProperty(this, "getColumns", function () {
|
|
60
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
61
|
-
dataIndex: _this.id,
|
|
62
|
-
title: _this.name,
|
|
63
|
-
renderExport: _this.renderExport,
|
|
64
|
-
componentType: _this.editRender
|
|
65
|
-
});
|
|
66
|
-
;
|
|
67
|
-
});
|
|
68
|
-
this.name = options.name;
|
|
69
54
|
this.id = options.id;
|
|
55
|
+
this.name = options.name;
|
|
70
56
|
this.type = options.type;
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.canHidden = true;
|
|
74
|
-
this.dataType = 'number';
|
|
75
|
-
this.showContains = false;
|
|
57
|
+
this.isCombinationComponent = false;
|
|
58
|
+
this.children = [];
|
|
76
59
|
this.componentConfig = options.componentConfig;
|
|
77
60
|
this.rules = [{
|
|
78
61
|
pattern: /^\d+(\.\d{1,2})?$/,
|
|
@@ -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 = (string | number)[] | undefined;
|
|
5
5
|
declare class BasicInput implements ComponentInterface {
|
|
@@ -7,11 +7,8 @@ declare class BasicInput implements ComponentInterface {
|
|
|
7
7
|
id: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
canHidden: boolean;
|
|
13
|
-
dataType: DataType;
|
|
14
|
-
showContains: boolean;
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
componentConfig: ComponentInterface["componentConfig"];
|
|
16
13
|
addressDateInstance: AddressData;
|
|
17
14
|
constructor(options: PickOption);
|
|
@@ -27,11 +24,5 @@ declare class BasicInput implements ComponentInterface {
|
|
|
27
24
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
28
25
|
renderExport: (value: any, record: any) => string;
|
|
29
26
|
editRender: (value: any) => JSX.Element;
|
|
30
|
-
getColumns: () => this & {
|
|
31
|
-
dataIndex: string;
|
|
32
|
-
title: string;
|
|
33
|
-
componentType: (value: any) => JSX.Element;
|
|
34
|
-
renderExport: (value: any, record: any) => string;
|
|
35
|
-
};
|
|
36
27
|
}
|
|
37
28
|
export default BasicInput;
|
|
@@ -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 _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); } }
|
|
5
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; }
|
|
6
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -21,11 +19,8 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
21
19
|
_defineProperty(this, "id", void 0);
|
|
22
20
|
_defineProperty(this, "type", void 0);
|
|
23
21
|
_defineProperty(this, "rules", void 0);
|
|
24
|
-
_defineProperty(this, "
|
|
25
|
-
_defineProperty(this, "
|
|
26
|
-
_defineProperty(this, "canHidden", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "showContains", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "children", void 0);
|
|
29
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
25
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
31
26
|
_defineProperty(this, "getValue", function (value) {
|
|
@@ -83,22 +78,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
83
78
|
component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
|
|
84
79
|
});
|
|
85
80
|
});
|
|
86
|
-
_defineProperty(this, "getColumns", function () {
|
|
87
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
88
|
-
dataIndex: _this.id,
|
|
89
|
-
title: _this.name,
|
|
90
|
-
componentType: _this.editRender,
|
|
91
|
-
renderExport: _this.renderExport
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
81
|
this.name = options.name;
|
|
95
82
|
this.id = options.id;
|
|
96
83
|
this.type = options.type;
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.canHidden = true;
|
|
100
|
-
this.dataType = 'array';
|
|
101
|
-
this.showContains = false;
|
|
84
|
+
this.isCombinationComponent = false;
|
|
85
|
+
this.children = [];
|
|
102
86
|
this.rules = [];
|
|
103
87
|
this.componentConfig = options.componentConfig;
|
|
104
88
|
this.addressDateInstance = AddressData.getInstance();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
3
3
|
import EAlipayAccount from '../AlipayAccount';
|
|
4
4
|
import EAlipayName from '../AlipayName';
|
|
5
5
|
declare class Alipay implements ComponentInterface {
|
|
@@ -7,31 +7,16 @@ declare class Alipay implements ComponentInterface {
|
|
|
7
7
|
id: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
canFilter: boolean;
|
|
11
|
-
canGroup: boolean;
|
|
12
|
-
canHidden: boolean;
|
|
13
|
-
dataType: DataType;
|
|
14
|
-
showContains: boolean;
|
|
15
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
16
11
|
alipayAccount: EAlipayAccount;
|
|
17
12
|
alipayName: EAlipayName;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
18
15
|
constructor(options: PickOption);
|
|
19
16
|
render: () => null;
|
|
20
17
|
renderClient: (record: Record) => JSX.Element;
|
|
21
18
|
renderPc: () => null;
|
|
22
19
|
renderExport: () => null;
|
|
23
20
|
editRender: (value: any) => JSX.Element;
|
|
24
|
-
getColumns: () => {
|
|
25
|
-
title: string;
|
|
26
|
-
children: (EAlipayAccount & {
|
|
27
|
-
dataIndex: string;
|
|
28
|
-
title: string;
|
|
29
|
-
componentType: (value: any) => JSX.Element;
|
|
30
|
-
renderExport: (value?: string | undefined) => string;
|
|
31
|
-
render: (value: any, record: Record) => JSX.Element;
|
|
32
|
-
})[];
|
|
33
|
-
canHidden: boolean;
|
|
34
|
-
dataIndex: string;
|
|
35
|
-
};
|
|
36
21
|
}
|
|
37
22
|
export default Alipay;
|
|
@@ -21,14 +21,11 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
22
|
_defineProperty(this, "type", void 0);
|
|
23
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);
|
|
29
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
25
|
_defineProperty(this, "alipayAccount", void 0);
|
|
31
26
|
_defineProperty(this, "alipayName", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
32
29
|
_defineProperty(this, "render", function () {
|
|
33
30
|
return null;
|
|
34
31
|
});
|
|
@@ -53,25 +50,14 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
53
50
|
}))
|
|
54
51
|
});
|
|
55
52
|
});
|
|
56
|
-
_defineProperty(this, "getColumns", function () {
|
|
57
|
-
return {
|
|
58
|
-
title: _this.name,
|
|
59
|
-
children: [_this.alipayName.getColumns(), _this.alipayAccount.getColumns()],
|
|
60
|
-
canHidden: _this.canHidden,
|
|
61
|
-
dataIndex: _this.id
|
|
62
|
-
};
|
|
63
|
-
});
|
|
64
53
|
this.name = options.name;
|
|
65
54
|
this.id = options.id;
|
|
66
55
|
this.type = options.type;
|
|
67
|
-
this.
|
|
68
|
-
this.canGroup = false;
|
|
69
|
-
this.canHidden = true;
|
|
70
|
-
this.showContains = false;
|
|
71
|
-
this.dataType = 'string';
|
|
56
|
+
this.isCombinationComponent = true;
|
|
72
57
|
this.componentConfig = options.componentConfig;
|
|
73
58
|
this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
|
|
74
59
|
this.alipayName = new EAlipayName(_objectSpread({}, options));
|
|
60
|
+
this.children = [this.alipayName, this.alipayAccount];
|
|
75
61
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
76
62
|
validator: function validator(_, value) {
|
|
77
63
|
var _this$componentConfig4;
|
|
@@ -1,31 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
3
3
|
declare class EAlipayAccount 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;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
15
10
|
align: ALignType;
|
|
16
11
|
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
17
14
|
constructor(options: PickOption);
|
|
18
15
|
render: (value: string, record: Record) => JSX.Element;
|
|
19
16
|
renderClient: (record: Record) => JSX.Element | null;
|
|
20
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
18
|
renderExport: (value?: string) => string;
|
|
22
19
|
editRender: (value: any) => JSX.Element;
|
|
23
|
-
getColumns: () => this & {
|
|
24
|
-
dataIndex: string;
|
|
25
|
-
title: string;
|
|
26
|
-
componentType: (value: any) => JSX.Element;
|
|
27
|
-
renderExport: (value?: string) => string;
|
|
28
|
-
render: (value: any, record: Record) => JSX.Element;
|
|
29
|
-
};
|
|
30
20
|
}
|
|
31
21
|
export default EAlipayAccount;
|
|
@@ -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 _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); } }
|
|
5
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; }
|
|
6
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -22,15 +20,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(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, "effects", void 0);
|
|
32
25
|
_defineProperty(this, "align", void 0);
|
|
33
26
|
_defineProperty(this, "width", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
34
29
|
_defineProperty(this, "render", function (value, record) {
|
|
35
30
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
36
31
|
});
|
|
@@ -63,23 +58,11 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
63
58
|
component: /*#__PURE__*/React.createElement(AlipayAccount, _this.componentConfig)
|
|
64
59
|
});
|
|
65
60
|
});
|
|
66
|
-
_defineProperty(this, "getColumns", function () {
|
|
67
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
68
|
-
dataIndex: _this.id,
|
|
69
|
-
title: _this.name,
|
|
70
|
-
componentType: _this.editRender,
|
|
71
|
-
renderExport: _this.renderExport,
|
|
72
|
-
render: _this.renderPc
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
61
|
this.name = '支付宝账号';
|
|
76
62
|
this.id = "".concat(options.id, "_alipayAccount");
|
|
77
63
|
this.type = options.type;
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
80
|
-
this.canHidden = false;
|
|
81
|
-
this.showContains = true;
|
|
82
|
-
this.dataType = 'string';
|
|
64
|
+
this.isCombinationComponent = false;
|
|
65
|
+
this.children = [];
|
|
83
66
|
this.align = 'left';
|
|
84
67
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
85
68
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
3
3
|
declare class EAlipayAccount 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;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
align: ALignType;
|
|
16
13
|
width: number;
|
|
17
14
|
constructor(options: PickOption);
|
|
@@ -20,12 +17,5 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
20
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
18
|
renderExport: (value?: string) => string;
|
|
22
19
|
editRender: (value: any) => JSX.Element;
|
|
23
|
-
getColumns: () => this & {
|
|
24
|
-
dataIndex: string;
|
|
25
|
-
title: string;
|
|
26
|
-
componentType: (value: any) => JSX.Element;
|
|
27
|
-
renderExport: (value?: string) => string;
|
|
28
|
-
render: (value: any, record: Record) => JSX.Element;
|
|
29
|
-
};
|
|
30
20
|
}
|
|
31
21
|
export default EAlipayAccount;
|
|
@@ -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 _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); } }
|
|
5
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; }
|
|
6
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -22,13 +20,10 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(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, "effects", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
32
27
|
_defineProperty(this, "align", void 0);
|
|
33
28
|
_defineProperty(this, "width", void 0);
|
|
34
29
|
_defineProperty(this, "render", function (value, record) {
|
|
@@ -63,23 +58,11 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
63
58
|
component: /*#__PURE__*/React.createElement(AlipayName, _this.componentConfig)
|
|
64
59
|
});
|
|
65
60
|
});
|
|
66
|
-
_defineProperty(this, "getColumns", function () {
|
|
67
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
68
|
-
dataIndex: _this.id,
|
|
69
|
-
title: _this.name,
|
|
70
|
-
componentType: _this.editRender,
|
|
71
|
-
renderExport: _this.renderExport,
|
|
72
|
-
render: _this.renderPc
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
61
|
this.name = '支付宝名称';
|
|
76
62
|
this.id = "".concat(options.id, "_alipayName");
|
|
77
63
|
this.type = options.type;
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
80
|
-
this.canHidden = false;
|
|
81
|
-
this.showContains = true;
|
|
82
|
-
this.dataType = 'string';
|
|
64
|
+
this.isCombinationComponent = false;
|
|
65
|
+
this.children = [];
|
|
83
66
|
this.align = 'left';
|
|
84
67
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
85
68
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
@@ -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
|
buyerNick?: string;
|
|
5
5
|
};
|
|
@@ -8,24 +8,15 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
8
8
|
id: string;
|
|
9
9
|
type: string;
|
|
10
10
|
rules: any[];
|
|
11
|
-
canFilter: boolean;
|
|
12
|
-
canGroup: boolean;
|
|
13
|
-
canHidden: boolean;
|
|
14
|
-
dataType: DataType;
|
|
15
|
-
showContains: boolean;
|
|
16
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
17
12
|
effects: ComponentInterface["effects"];
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
18
15
|
constructor(options: PickOption);
|
|
19
16
|
render: (value: Value) => JSX.Element;
|
|
20
17
|
renderClient: (record: any) => JSX.Element | null;
|
|
21
18
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
22
19
|
renderExport: (value: any, record: any) => any;
|
|
23
20
|
editRender: (value: any) => JSX.Element;
|
|
24
|
-
getColumns: () => this & {
|
|
25
|
-
dataIndex: string;
|
|
26
|
-
title: string;
|
|
27
|
-
renderExport: (value: any, record: any) => any;
|
|
28
|
-
customizeFilter: (value: Value) => string | undefined;
|
|
29
|
-
};
|
|
30
21
|
}
|
|
31
22
|
export default EBuyerNick;
|
|
@@ -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 EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(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, "effects", 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("span", null, value === null || value === void 0 ? void 0 : value.buyerNick);
|
|
34
29
|
});
|
|
@@ -71,24 +66,11 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
71
66
|
}))
|
|
72
67
|
});
|
|
73
68
|
});
|
|
74
|
-
_defineProperty(this, "getColumns", function () {
|
|
75
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
76
|
-
dataIndex: _this.id,
|
|
77
|
-
title: _this.name,
|
|
78
|
-
renderExport: _this.renderExport,
|
|
79
|
-
customizeFilter: function customizeFilter(value) {
|
|
80
|
-
return value === null || value === void 0 ? void 0 : value.buyerNick;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
69
|
this.name = options.name;
|
|
85
70
|
this.id = options.id;
|
|
86
71
|
this.type = options.type;
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
89
|
-
this.canHidden = true;
|
|
90
|
-
this.dataType = 'string';
|
|
91
|
-
this.showContains = false;
|
|
72
|
+
this.isCombinationComponent = false;
|
|
73
|
+
this.children = [];
|
|
92
74
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
93
75
|
validator: function validator(_, value) {
|
|
94
76
|
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
3
|
-
import { FormInstance } from 'antd';
|
|
2
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
4
3
|
declare class BasicCascader implements ComponentInterface {
|
|
5
4
|
name: string;
|
|
6
5
|
id: string;
|
|
7
6
|
type: string;
|
|
8
7
|
rules: any[];
|
|
9
|
-
canFilter: boolean;
|
|
10
|
-
canGroup: boolean;
|
|
11
|
-
canHidden: boolean;
|
|
12
|
-
dataType: DataType;
|
|
13
|
-
showContains: boolean;
|
|
14
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
isCombinationComponent: boolean;
|
|
10
|
+
children: ComponentInterface[];
|
|
15
11
|
constructor(options: PickOption);
|
|
16
|
-
width?: number | undefined;
|
|
17
|
-
align?: ALignType | undefined;
|
|
18
|
-
dataIndex?: string | undefined;
|
|
19
|
-
editable?: boolean | undefined;
|
|
20
|
-
formItemIndex?: number | undefined;
|
|
21
|
-
effects?: {
|
|
22
|
-
queryWorkOrderDetail: (r: any) => void;
|
|
23
|
-
isEditing: boolean;
|
|
24
|
-
form: FormInstance<any>;
|
|
25
|
-
shopList?: any[] | undefined;
|
|
26
|
-
shopId?: string | undefined;
|
|
27
|
-
} | undefined;
|
|
28
12
|
/**
|
|
29
13
|
* 通过值计算展示内容
|
|
30
14
|
* @param value
|
|
@@ -36,10 +20,5 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
36
20
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
37
21
|
renderExport: (value: any, record: Record) => string;
|
|
38
22
|
editRender: (value: any) => JSX.Element;
|
|
39
|
-
getColumns: () => this & {
|
|
40
|
-
dataIndex: string;
|
|
41
|
-
title: string;
|
|
42
|
-
renderExport: (value: any, record: Record) => string;
|
|
43
|
-
};
|
|
44
23
|
}
|
|
45
24
|
export default BasicCascader;
|
|
@@ -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; }
|
|
@@ -21,18 +19,9 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
21
19
|
_defineProperty(this, "id", void 0);
|
|
22
20
|
_defineProperty(this, "type", void 0);
|
|
23
21
|
_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);
|
|
29
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
|
-
_defineProperty(this, "
|
|
31
|
-
_defineProperty(this, "
|
|
32
|
-
_defineProperty(this, "dataIndex", void 0);
|
|
33
|
-
_defineProperty(this, "editable", void 0);
|
|
34
|
-
_defineProperty(this, "formItemIndex", void 0);
|
|
35
|
-
_defineProperty(this, "effects", void 0);
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
36
25
|
_defineProperty(this, "getValue", function (value) {
|
|
37
26
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
38
27
|
return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
|
|
@@ -90,23 +79,19 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
90
79
|
}))
|
|
91
80
|
});
|
|
92
81
|
});
|
|
93
|
-
_defineProperty(this, "getColumns", function () {
|
|
94
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
95
|
-
dataIndex: _this.id,
|
|
96
|
-
title: _this.name,
|
|
97
|
-
renderExport: _this.renderExport
|
|
98
|
-
});
|
|
99
|
-
;
|
|
100
|
-
});
|
|
101
82
|
this.name = options.name;
|
|
102
83
|
this.id = options.id;
|
|
103
84
|
this.type = options.type;
|
|
104
|
-
this.canFilter = true;
|
|
105
|
-
this.canGroup = false;
|
|
106
|
-
this.canHidden = true;
|
|
107
|
-
this.dataType = 'array';
|
|
108
|
-
this.showContains = false;
|
|
109
85
|
this.componentConfig = options.componentConfig;
|
|
110
86
|
this.rules = [];
|
|
111
|
-
|
|
87
|
+
this.children = [];
|
|
88
|
+
this.isCombinationComponent = false;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 通过值计算展示内容
|
|
93
|
+
* @param value
|
|
94
|
+
* @returns
|
|
95
|
+
*/);
|
|
96
|
+
|
|
112
97
|
export default BasicCascader;
|
|
@@ -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
|
value?: string[];
|
|
5
5
|
other?: string;
|
|
@@ -9,12 +9,9 @@ declare class BasicCheckbox 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
|
getValue: (value: Value) => string | null | undefined;
|
|
20
17
|
render: (value: Value) => JSX.Element;
|
|
@@ -22,10 +19,5 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
22
19
|
renderExport: (value: any, record: Record) => string;
|
|
23
20
|
renderClient: (record: any) => JSX.Element | null;
|
|
24
21
|
editRender: () => JSX.Element;
|
|
25
|
-
getColumns: () => this & {
|
|
26
|
-
dataIndex: string;
|
|
27
|
-
title: string;
|
|
28
|
-
renderExport: (value: any, record: Record) => string;
|
|
29
|
-
};
|
|
30
22
|
}
|
|
31
23
|
export default BasicCheckbox;
|