@kmkf-fe-packages/services-components 0.6.3 → 0.7.1-alpha.0
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/README.md +2 -0
- package/dist/esm/commonComponents/ItemView/index.d.ts +1 -1
- package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -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 +12 -13
- package/dist/esm/components/ActualPayment/index.js +28 -26
- package/dist/esm/components/Address/index.d.ts +9 -16
- package/dist/esm/components/Address/index.js +17 -26
- package/dist/esm/components/Alipay/index.d.ts +15 -19
- package/dist/esm/components/Alipay/index.js +15 -20
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -15
- package/dist/esm/components/AlipayAccount/index.js +29 -28
- package/dist/esm/components/AlipayName/index.d.ts +13 -15
- package/dist/esm/components/AlipayName/index.js +29 -28
- package/dist/esm/components/BuyerNick/index.d.ts +14 -15
- package/dist/esm/components/BuyerNick/index.js +41 -28
- package/dist/esm/components/Cascader/index.d.ts +13 -25
- package/dist/esm/components/Cascader/index.js +38 -31
- package/dist/esm/components/Checkbox/index.d.ts +15 -11
- package/dist/esm/components/Checkbox/index.js +45 -26
- package/dist/esm/components/CommonDataTime/index.d.ts +11 -11
- package/dist/esm/components/CommonDataTime/index.js +27 -24
- package/dist/esm/components/CompletedUser/index.d.ts +30 -0
- package/dist/esm/components/CompletedUser/index.js +64 -0
- package/dist/esm/components/DataTime/index.d.ts +12 -11
- package/dist/esm/components/DataTime/index.js +30 -26
- package/dist/esm/components/EItemEnCode/index.d.ts +11 -11
- package/dist/esm/components/EItemEnCode/index.js +34 -27
- package/dist/esm/components/EItemId/index.d.ts +11 -11
- package/dist/esm/components/EItemId/index.js +34 -27
- package/dist/esm/components/EItemSelect/index.d.ts +6 -12
- package/dist/esm/components/EItemSelect/index.js +16 -24
- package/dist/esm/components/ErpTradeId/index.d.ts +12 -13
- package/dist/esm/components/ErpTradeId/index.js +28 -26
- package/dist/esm/components/Express/index.d.ts +15 -17
- package/dist/esm/components/Express/index.js +30 -36
- package/dist/esm/components/ExpressCode/index.d.ts +16 -18
- package/dist/esm/components/ExpressCode/index.js +34 -32
- package/dist/esm/components/FlowStatusSelect/index.d.ts +16 -34
- package/dist/esm/components/FlowStatusSelect/index.js +38 -25
- package/dist/esm/components/GetFormItem/index.d.ts +3 -3
- package/dist/esm/components/GetFormItem/index.js +3 -3
- package/dist/esm/components/Grade/index.d.ts +6 -12
- package/dist/esm/components/Grade/index.js +14 -23
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +74 -0
- package/dist/esm/components/Input/index.d.ts +11 -12
- package/dist/esm/components/Input/index.js +29 -28
- package/dist/esm/components/JstItemSelect/index.d.ts +13 -13
- package/dist/esm/components/JstItemSelect/index.js +48 -28
- package/dist/esm/components/JstLogistics/index.d.ts +21 -13
- package/dist/esm/components/JstLogistics/index.js +50 -29
- package/dist/esm/components/JstSendGood/index.d.ts +12 -12
- package/dist/esm/components/JstSendGood/index.js +54 -29
- package/dist/esm/components/JstSupply/index.d.ts +12 -12
- package/dist/esm/components/JstSupply/index.js +54 -29
- package/dist/esm/components/Logistics/index.d.ts +23 -27
- package/dist/esm/components/Logistics/index.js +19 -20
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +36 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +75 -0
- package/dist/esm/components/LogisticsInterception/index.js +136 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
- package/dist/esm/components/MultSelect/index.d.ts +12 -12
- package/dist/esm/components/MultSelect/index.js +31 -24
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +11 -17
- package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
- package/dist/esm/components/Ordinary/index.d.ts +17 -24
- package/dist/esm/components/Ordinary/index.js +20 -12
- package/dist/esm/components/Payment/AlipayNick.d.ts +11 -22
- package/dist/esm/components/Payment/AlipayNick.js +29 -34
- package/dist/esm/components/Payment/AlipayNo.d.ts +11 -21
- package/dist/esm/components/Payment/AlipayNo.js +29 -34
- package/dist/esm/components/Payment/AlipayTime.d.ts +11 -23
- package/dist/esm/components/Payment/AlipayTime.js +26 -35
- package/dist/esm/components/Payment/BuyerNick.d.ts +11 -22
- package/dist/esm/components/Payment/BuyerNick.js +26 -32
- package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentAmount.js +24 -30
- package/dist/esm/components/Payment/PaymentStatus.d.ts +17 -29
- package/dist/esm/components/Payment/PaymentStatus.js +48 -41
- package/dist/esm/components/Payment/PaymentTid.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentTid.js +24 -30
- package/dist/esm/components/Payment/index.d.ts +36 -97
- package/dist/esm/components/Payment/index.js +22 -20
- package/dist/esm/components/Picture/index.d.ts +11 -11
- package/dist/esm/components/Picture/index.js +14 -19
- package/dist/esm/components/PlatForm/index.d.ts +31 -0
- package/dist/esm/components/PlatForm/index.js +67 -0
- package/dist/esm/components/Radio/index.d.ts +15 -10
- package/dist/esm/components/Radio/index.js +34 -20
- package/dist/esm/components/Rate/index.d.ts +6 -11
- package/dist/esm/components/Rate/index.js +17 -30
- package/dist/esm/components/ReceiverAddress/index.d.ts +11 -14
- package/dist/esm/components/ReceiverAddress/index.js +22 -29
- package/dist/esm/components/ReceiverMobile/index.d.ts +11 -12
- package/dist/esm/components/ReceiverMobile/index.js +29 -27
- package/dist/esm/components/ReceiverName/index.d.ts +11 -12
- package/dist/esm/components/ReceiverName/index.js +29 -27
- package/dist/esm/components/Remark/index.d.ts +14 -11
- package/dist/esm/components/Remark/index.js +31 -23
- package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
- package/dist/esm/components/ReturnLogistics/index.js +19 -10
- package/dist/esm/components/Select/index.d.ts +12 -11
- package/dist/esm/components/Select/index.js +28 -23
- package/dist/esm/components/ShopInput/index.d.ts +28 -0
- package/dist/esm/components/ShopInput/index.js +76 -0
- package/dist/esm/components/ShopName/index.d.ts +12 -13
- package/dist/esm/components/ShopName/index.js +28 -25
- package/dist/esm/components/Submitter/index.d.ts +30 -0
- package/dist/esm/components/Submitter/index.js +64 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +13 -14
- package/dist/esm/components/SystemOrderNo/index.js +27 -25
- package/dist/esm/components/TemplateSelect/index.d.ts +13 -13
- package/dist/esm/components/TemplateSelect/index.js +29 -24
- package/dist/esm/components/TextArea/index.d.ts +11 -11
- package/dist/esm/components/TextArea/index.js +27 -24
- package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -11
- package/dist/esm/components/ThirdItemSelect/index.js +36 -28
- package/dist/esm/components/TradeDateTime/index.d.ts +13 -5
- package/dist/esm/components/TradeDateTime/index.js +52 -17
- package/dist/esm/components/TradeId/index.d.ts +11 -6
- package/dist/esm/components/TradeId/index.js +27 -14
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -12
- package/dist/esm/components/WorkOrderId/index.js +36 -29
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +52 -40
- package/dist/esm/index.js +13 -1
- package/dist/esm/type.d.ts +53 -45
- package/package.json +10 -5
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
17
|
+
renderClient: () => null;
|
|
18
|
+
editRender: () => null;
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "MultipleSelect";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
options: {
|
|
26
|
+
label: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export default PlatForm;
|
|
@@ -0,0 +1,67 @@
|
|
|
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, isNull } 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, "renderLog", function (r) {
|
|
31
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
32
|
+
return _this.renderPc(undefined, r);
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
35
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "renderClient", function () {
|
|
38
|
+
return null;
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "editRender", function () {
|
|
41
|
+
return null;
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
44
|
+
var platData = _this.platInstance.getPlatSelectList();
|
|
45
|
+
return {
|
|
46
|
+
type: item.type,
|
|
47
|
+
id: item.id,
|
|
48
|
+
// 过滤组件id
|
|
49
|
+
name: item.name,
|
|
50
|
+
// 过滤组件名称
|
|
51
|
+
filterComponentType: 'MultipleSelect',
|
|
52
|
+
filterFn: function filterFn(value) {
|
|
53
|
+
return function (i) {
|
|
54
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
options: platData
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
this.name = "平台";
|
|
61
|
+
this.id = "platform";
|
|
62
|
+
this.type = "PLATFORM_INPUT";
|
|
63
|
+
this.isCombinationComponent = false;
|
|
64
|
+
this.children = [];
|
|
65
|
+
this.platInstance = PlatData.getInstance();
|
|
66
|
+
});
|
|
67
|
+
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,27 @@ 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;
|
|
18
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
19
|
+
getComponentValue: (r: Record) => {
|
|
20
|
+
value: any;
|
|
21
|
+
other: any;
|
|
22
|
+
};
|
|
21
23
|
renderExport: (value: any, record: Record) => string;
|
|
22
24
|
renderClient: (record: Record) => JSX.Element | null;
|
|
23
25
|
editRender: () => JSX.Element;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "MultipleSelect";
|
|
31
|
+
options: any[] | undefined;
|
|
32
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
28
33
|
};
|
|
29
34
|
}
|
|
30
35
|
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 _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"); } }
|
|
@@ -11,7 +9,7 @@ import React from 'react';
|
|
|
11
9
|
import { ApaasRadio } from '@kmkf-fe-packages/basic-components';
|
|
12
10
|
import GetFormItem from "../GetFormItem";
|
|
13
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
13
|
import get from 'lodash/get';
|
|
16
14
|
var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
17
15
|
var _this = this,
|
|
@@ -21,12 +19,9 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(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);
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
30
25
|
_defineProperty(this, "render", function (value) {
|
|
31
26
|
var _value$value;
|
|
32
27
|
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, ")"));
|
|
@@ -37,6 +32,16 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
37
32
|
}
|
|
38
33
|
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radio")], record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radioOther")]);
|
|
39
34
|
});
|
|
35
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
36
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radio")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radioOther")])) return null;
|
|
37
|
+
return _this.renderPc(undefined, r);
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
40
|
+
return {
|
|
41
|
+
value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radio")],
|
|
42
|
+
other: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radioOther")]
|
|
43
|
+
};
|
|
44
|
+
});
|
|
40
45
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
41
46
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radio")]) === undefined) {
|
|
42
47
|
return '--';
|
|
@@ -60,22 +65,31 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
60
65
|
component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
|
|
61
66
|
});
|
|
62
67
|
});
|
|
63
|
-
_defineProperty(this, "
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
69
|
+
var _item$config, _item$config2, _item$config2$options, _item$config3;
|
|
70
|
+
return {
|
|
71
|
+
type: item.type,
|
|
72
|
+
id: item.id,
|
|
73
|
+
// 过滤组件id
|
|
74
|
+
name: item.name,
|
|
75
|
+
// 过滤组件名称
|
|
76
|
+
filterComponentType: 'MultipleSelect',
|
|
77
|
+
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({
|
|
78
|
+
label: '其他',
|
|
79
|
+
value: '其他'
|
|
80
|
+
}) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || [],
|
|
81
|
+
filterFn: function filterFn(value) {
|
|
82
|
+
return function (i) {
|
|
83
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'radio'));
|
|
84
|
+
};
|
|
85
|
+
} // 第一个为选中值,第二个参数为表格行记录值
|
|
86
|
+
};
|
|
70
87
|
});
|
|
71
88
|
this.name = options.name;
|
|
72
89
|
this.id = options.id;
|
|
73
90
|
this.type = options.type;
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.canHidden = true;
|
|
77
|
-
this.showContains = false;
|
|
78
|
-
this.dataType = 'string';
|
|
91
|
+
this.isCombinationComponent = false;
|
|
92
|
+
this.children = [];
|
|
79
93
|
this.componentConfig = options.componentConfig;
|
|
80
94
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
81
95
|
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,20 @@ 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;
|
|
23
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
26
25
|
renderExport: (value: any, record: any) => any;
|
|
27
26
|
editRender: () => JSX.Element;
|
|
28
|
-
|
|
29
|
-
dataIndex: string;
|
|
30
|
-
title: string;
|
|
31
|
-
renderExport: (value: any, record: any) => any;
|
|
32
|
-
};
|
|
27
|
+
filterConfig: () => never[];
|
|
33
28
|
}
|
|
34
29
|
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; }
|
|
@@ -15,20 +13,16 @@ import GetFormItem from "../GetFormItem";
|
|
|
15
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
14
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
15
|
var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
18
|
-
var _this = this
|
|
19
|
-
_this$componentConfig;
|
|
16
|
+
var _this = this;
|
|
20
17
|
_classCallCheck(this, BasicRate);
|
|
21
18
|
_defineProperty(this, "name", void 0);
|
|
22
19
|
_defineProperty(this, "id", void 0);
|
|
23
20
|
_defineProperty(this, "type", void 0);
|
|
24
21
|
_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
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
23
|
_defineProperty(this, "rateMap", void 0);
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
32
26
|
_defineProperty(this, "render", function (value) {
|
|
33
27
|
return /*#__PURE__*/React.createElement("div", null, value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
34
28
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -87,6 +81,13 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
87
81
|
}
|
|
88
82
|
return null;
|
|
89
83
|
});
|
|
84
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
85
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_rate")])) return null;
|
|
86
|
+
return _this.renderPc(undefined, r);
|
|
87
|
+
});
|
|
88
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
89
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_rate")];
|
|
90
|
+
});
|
|
90
91
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
91
92
|
var _ref;
|
|
92
93
|
var textArr = ((_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_rate")]) || []) === null || _ref === void 0 ? void 0 : _ref.reduce(function (prv, next) {
|
|
@@ -98,11 +99,12 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
98
99
|
return textArr === null || textArr === void 0 ? void 0 : textArr.join(';');
|
|
99
100
|
});
|
|
100
101
|
_defineProperty(this, "editRender", function () {
|
|
102
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
101
103
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
102
104
|
title: _this.name,
|
|
103
105
|
name: _this.id,
|
|
104
106
|
rules: _this.rules,
|
|
105
|
-
required: false,
|
|
107
|
+
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,
|
|
106
108
|
component: /*#__PURE__*/React.createElement(ApaasRate, _extends({}, _this.componentConfig, {
|
|
107
109
|
allowClear: false,
|
|
108
110
|
style: {
|
|
@@ -114,31 +116,16 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
114
116
|
}))
|
|
115
117
|
});
|
|
116
118
|
});
|
|
117
|
-
_defineProperty(this, "
|
|
118
|
-
return
|
|
119
|
-
dataIndex: _this.id,
|
|
120
|
-
title: _this.name,
|
|
121
|
-
renderExport: _this.renderExport
|
|
122
|
-
});
|
|
123
|
-
;
|
|
119
|
+
_defineProperty(this, "filterConfig", function () {
|
|
120
|
+
return [];
|
|
124
121
|
});
|
|
125
122
|
this.name = options.name;
|
|
126
123
|
this.id = options.id;
|
|
127
124
|
this.type = options.type;
|
|
128
|
-
this.canFilter = false;
|
|
129
|
-
this.canGroup = false;
|
|
130
|
-
this.canHidden = true;
|
|
131
|
-
this.showContains = false;
|
|
132
|
-
this.dataType = 'array';
|
|
133
125
|
this.componentConfig = options.componentConfig;
|
|
134
|
-
this.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
|
138
|
-
}
|
|
139
|
-
return Promise.resolve();
|
|
140
|
-
}
|
|
141
|
-
}] : [];
|
|
126
|
+
this.isCombinationComponent = false;
|
|
127
|
+
this.children = [];
|
|
128
|
+
this.rules = [];
|
|
142
129
|
this.rateMap = {
|
|
143
130
|
0: '',
|
|
144
131
|
0.5: '非常差',
|
|
@@ -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,26 +10,23 @@ 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
|
-
render: (value: Value
|
|
19
|
+
render: (value: Value) => JSX.Element;
|
|
23
20
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
24
21
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
22
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
23
|
+
getComponentValue: (r: Record) => {
|
|
24
|
+
address: any[];
|
|
25
|
+
detail: any;
|
|
26
|
+
};
|
|
25
27
|
renderExport: (value: any, record: any) => string;
|
|
26
28
|
renderClient: (record: any) => JSX.Element | null;
|
|
27
|
-
editRender: (
|
|
28
|
-
|
|
29
|
-
dataIndex: string;
|
|
30
|
-
title: string;
|
|
31
|
-
componentType: (value: any) => JSX.Element;
|
|
32
|
-
renderExport: (value: any, record: any) => string;
|
|
33
|
-
};
|
|
29
|
+
editRender: () => JSX.Element;
|
|
30
|
+
filterConfig: () => never[];
|
|
34
31
|
}
|
|
35
32
|
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"); } }
|
|
@@ -22,22 +20,15 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(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, "addressDateInstance", void 0);
|
|
33
|
-
_defineProperty(this, "render", function (value
|
|
28
|
+
_defineProperty(this, "render", function (value) {
|
|
34
29
|
var _value$address;
|
|
35
30
|
return /*#__PURE__*/React.createElement("span", {
|
|
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
|
-
}
|
|
31
|
+
className: "pointer"
|
|
41
32
|
}, value === null || value === void 0 ? void 0 : (_value$address = value.address) === null || _value$address === void 0 ? void 0 : _value$address.map(function (suffix) {
|
|
42
33
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
43
34
|
}).join(''), value === null || value === void 0 ? void 0 : value.detail);
|
|
@@ -58,14 +49,24 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
58
49
|
return /*#__PURE__*/React.createElement("span", {
|
|
59
50
|
className: "pointer",
|
|
60
51
|
onClick: function onClick() {
|
|
61
|
-
var _this$effects2;
|
|
62
|
-
|
|
52
|
+
var _this$effects, _this$effects2;
|
|
53
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
63
54
|
}
|
|
64
55
|
}, (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
|
|
65
56
|
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
66
57
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
67
58
|
}).join(''), detail);
|
|
68
59
|
});
|
|
60
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
61
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")])) return null;
|
|
62
|
+
return _this.renderPc(undefined, r);
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
65
|
+
return {
|
|
66
|
+
address: [r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")], r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_city")], r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_district")]],
|
|
67
|
+
detail: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_address")]
|
|
68
|
+
};
|
|
69
|
+
});
|
|
69
70
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
70
71
|
var _address2;
|
|
71
72
|
if (record["".concat(_this.id, "_province")] === undefined) {
|
|
@@ -85,10 +86,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
85
86
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
86
87
|
id: _this.id,
|
|
87
88
|
label: _this.name,
|
|
88
|
-
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id]
|
|
89
|
+
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
89
90
|
}) : null;
|
|
90
91
|
});
|
|
91
|
-
_defineProperty(this, "editRender", function (
|
|
92
|
+
_defineProperty(this, "editRender", function () {
|
|
92
93
|
var _this$componentConfig, _this$componentConfig2;
|
|
93
94
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
94
95
|
title: _this.name,
|
|
@@ -98,23 +99,15 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
98
99
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
99
100
|
});
|
|
100
101
|
});
|
|
101
|
-
_defineProperty(this, "
|
|
102
|
-
return
|
|
103
|
-
dataIndex: _this.id,
|
|
104
|
-
title: _this.name,
|
|
105
|
-
componentType: _this.editRender,
|
|
106
|
-
renderExport: _this.renderExport
|
|
107
|
-
});
|
|
102
|
+
_defineProperty(this, "filterConfig", function () {
|
|
103
|
+
return [];
|
|
108
104
|
});
|
|
109
105
|
this.name = options.name;
|
|
110
106
|
this.id = options.id;
|
|
111
107
|
this.type = options.type;
|
|
112
|
-
this.canFilter = false;
|
|
113
|
-
this.canGroup = false;
|
|
114
|
-
this.canHidden = true;
|
|
115
|
-
this.dataType = 'array';
|
|
116
|
-
this.showContains = false;
|
|
117
108
|
this.componentConfig = options.componentConfig;
|
|
109
|
+
this.isCombinationComponent = false;
|
|
110
|
+
this.children = [];
|
|
118
111
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
119
112
|
validator: function validator(_, value) {
|
|
120
113
|
var _value$address2;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class ReceiverMobile implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
|
-
render: (value: string, record: Record) => JSX.Element;
|
|
17
13
|
renderClient: (record: Record) => JSX.Element | null;
|
|
18
14
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
19
17
|
renderExport: (value: any, record: Record) => any;
|
|
20
18
|
editRender: (value: any) => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
export default ReceiverMobile;
|