@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,64 @@
|
|
|
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 { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
11
|
+
var _this = this;
|
|
12
|
+
_classCallCheck(this, CompletedUser);
|
|
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, "effects", void 0);
|
|
18
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
19
|
+
_defineProperty(this, "children", void 0);
|
|
20
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
21
|
+
var _record;
|
|
22
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
23
|
+
});
|
|
24
|
+
_defineProperty(this, "renderLog", function () {
|
|
25
|
+
return null;
|
|
26
|
+
});
|
|
27
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
28
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
29
|
+
});
|
|
30
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
31
|
+
var _record2;
|
|
32
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderClient", function () {
|
|
35
|
+
return null;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "editRender", function () {
|
|
38
|
+
return null;
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
41
|
+
var _this$effects;
|
|
42
|
+
return {
|
|
43
|
+
type: item.type,
|
|
44
|
+
id: item.id,
|
|
45
|
+
// 过滤组件id
|
|
46
|
+
name: item.name,
|
|
47
|
+
// 过滤组件名称
|
|
48
|
+
filterComponentType: 'MultipleSelect',
|
|
49
|
+
options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
|
|
50
|
+
filterFn: function filterFn(value) {
|
|
51
|
+
return function (i) {
|
|
52
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
this.name = "完成人";
|
|
58
|
+
this.id = "completedUserName";
|
|
59
|
+
this.type = "COMPLETED_USER_INPUT";
|
|
60
|
+
this.effects = options.effects;
|
|
61
|
+
this.isCombinationComponent = false;
|
|
62
|
+
this.children = [];
|
|
63
|
+
});
|
|
64
|
+
export default CompletedUser;
|
|
@@ -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 = string | string[] | undefined;
|
|
4
4
|
export declare const DateTime: ({ value, onChange, ...otherProps }: any) => JSX.Element;
|
|
5
5
|
declare class BasicDataTime implements ComponentInterface {
|
|
@@ -7,23 +7,24 @@ declare class BasicDataTime 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"];
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
children: ComponentInterface[];
|
|
16
13
|
constructor(options: PickOption);
|
|
17
14
|
getValue: (value: Value) => string | undefined;
|
|
18
|
-
render: (value: Value) => JSX.Element;
|
|
19
15
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
16
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
21
19
|
renderExport: (value: any, record: Record) => any;
|
|
22
20
|
editRender: () => JSX.Element;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
type: string;
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
filterComponentType: "Date";
|
|
26
|
+
options: any[];
|
|
27
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
export default BasicDataTime;
|
|
@@ -1,7 +1,5 @@
|
|
|
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
2
|
var _excluded = ["value", "onChange"];
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
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; }
|
|
7
5
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -16,7 +14,7 @@ import ApaasDate from "./ApaasDate";
|
|
|
16
14
|
import moment from 'moment';
|
|
17
15
|
import GetFormItem from "../GetFormItem";
|
|
18
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
19
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
18
|
export var DateTime = function DateTime(_ref) {
|
|
21
19
|
var value = _ref.value,
|
|
22
20
|
onChange = _ref.onChange,
|
|
@@ -32,26 +30,18 @@ export var DateTime = function DateTime(_ref) {
|
|
|
32
30
|
}));
|
|
33
31
|
};
|
|
34
32
|
var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
35
|
-
var _this = this
|
|
36
|
-
_options$componentCon,
|
|
37
|
-
_options$componentCon2;
|
|
33
|
+
var _this = this;
|
|
38
34
|
_classCallCheck(this, BasicDataTime);
|
|
39
35
|
_defineProperty(this, "name", void 0);
|
|
40
36
|
_defineProperty(this, "id", void 0);
|
|
41
37
|
_defineProperty(this, "type", void 0);
|
|
42
38
|
_defineProperty(this, "rules", void 0);
|
|
43
|
-
_defineProperty(this, "canFilter", void 0);
|
|
44
|
-
_defineProperty(this, "canGroup", void 0);
|
|
45
|
-
_defineProperty(this, "canHidden", void 0);
|
|
46
|
-
_defineProperty(this, "dataType", void 0);
|
|
47
|
-
_defineProperty(this, "showContains", void 0);
|
|
48
39
|
_defineProperty(this, "componentConfig", void 0);
|
|
40
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
41
|
+
_defineProperty(this, "children", void 0);
|
|
49
42
|
_defineProperty(this, "getValue", function (value) {
|
|
50
43
|
return Array.isArray(value) ? value.join('~') : value;
|
|
51
44
|
});
|
|
52
|
-
_defineProperty(this, "render", function (value) {
|
|
53
|
-
return /*#__PURE__*/React.createElement("span", null, _this.getValue(value));
|
|
54
|
-
});
|
|
55
45
|
_defineProperty(this, "renderClient", function (record) {
|
|
56
46
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
57
47
|
id: _this.id,
|
|
@@ -65,6 +55,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
65
55
|
}
|
|
66
56
|
return /*#__PURE__*/React.createElement("span", null, Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) ? record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")].join('~') : /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]));
|
|
67
57
|
});
|
|
58
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
59
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_dateTime")])) return null;
|
|
60
|
+
return _this.renderPc(undefined, r);
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
63
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_dateTime")];
|
|
64
|
+
});
|
|
68
65
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
69
66
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) === undefined) {
|
|
70
67
|
return '--';
|
|
@@ -81,23 +78,30 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
81
78
|
component: /*#__PURE__*/React.createElement(DateTime, _this.componentConfig)
|
|
82
79
|
});
|
|
83
80
|
});
|
|
84
|
-
_defineProperty(this, "
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
82
|
+
var _item$config;
|
|
83
|
+
return {
|
|
84
|
+
type: item.type,
|
|
85
|
+
id: item.id,
|
|
86
|
+
// 过滤组件id
|
|
87
|
+
name: item.name,
|
|
88
|
+
// 过滤组件名称
|
|
89
|
+
filterComponentType: 'Date',
|
|
90
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
|
|
91
|
+
filterFn: function filterFn(value) {
|
|
92
|
+
return function (i) {
|
|
93
|
+
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'dateTime');
|
|
94
|
+
return _filterFn.filterDateFn(value, recordDateTime);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
91
98
|
});
|
|
92
99
|
this.name = options.name;
|
|
93
100
|
this.id = options.id;
|
|
94
101
|
this.type = options.type;
|
|
95
|
-
this.canFilter = true;
|
|
96
|
-
this.canGroup = true;
|
|
97
|
-
this.canHidden = true;
|
|
98
|
-
this.showContains = false;
|
|
99
|
-
this.dataType = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && (_options$componentCon2 = _options$componentCon.dateType) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.includes('RANGE') ? 'dateArray' : 'date';
|
|
100
102
|
this.componentConfig = options.componentConfig;
|
|
101
103
|
this.rules = [];
|
|
104
|
+
this.isCombinationComponent = false;
|
|
105
|
+
this.children = [];
|
|
102
106
|
});
|
|
103
107
|
export default BasicDataTime;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class EItemEncode 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: any) => JSX.Element;
|
|
17
13
|
renderClient: (record: any) => JSX.Element | null;
|
|
18
14
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
19
17
|
renderExport: (value: unknown, record: Record) => any;
|
|
20
18
|
editRender: () => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export default EItemEncode;
|
|
@@ -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; }
|
|
@@ -13,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
13
11
|
import ItemEncode from "./ItemEncode";
|
|
14
12
|
import { GoodImage } from "../Common";
|
|
15
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
15
|
var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
18
16
|
var _this = this,
|
|
19
17
|
_this$componentConfig;
|
|
@@ -22,24 +20,18 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(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
|
-
_defineProperty(this, "
|
|
33
|
-
|
|
34
|
-
list: value,
|
|
35
|
-
type: "itemCode"
|
|
36
|
-
});
|
|
37
|
-
});
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
38
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
40
29
|
id: _this.id,
|
|
41
30
|
label: _this.name,
|
|
42
|
-
value:
|
|
31
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
32
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
33
|
+
type: "itemCode"
|
|
34
|
+
})
|
|
43
35
|
}) : null;
|
|
44
36
|
});
|
|
45
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -52,6 +44,13 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
52
44
|
type: "itemCode"
|
|
53
45
|
});
|
|
54
46
|
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
49
|
+
return _this.renderPc(undefined, r);
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
52
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
53
|
+
});
|
|
55
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
55
|
var _ref;
|
|
57
56
|
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
|
|
@@ -72,24 +71,32 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
72
71
|
}))
|
|
73
72
|
});
|
|
74
73
|
});
|
|
75
|
-
_defineProperty(this, "
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
75
|
+
return {
|
|
76
|
+
type: item.type,
|
|
77
|
+
id: item.id,
|
|
78
|
+
// 过滤组件id
|
|
79
|
+
name: item.name,
|
|
80
|
+
// 过滤组件名称
|
|
81
|
+
filterComponentType: 'Input',
|
|
82
|
+
filterFn: function filterFn(value) {
|
|
83
|
+
return function (i) {
|
|
84
|
+
var _ref2;
|
|
85
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
86
|
+
var _String;
|
|
87
|
+
return item !== null && item !== void 0 && item.outerId ? (_String = String(item === null || item === void 0 ? void 0 : item.outerId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
82
92
|
});
|
|
83
93
|
this.name = options.name;
|
|
84
94
|
this.id = options.id;
|
|
85
95
|
this.type = options.type;
|
|
86
|
-
this.canFilter = false;
|
|
87
|
-
this.canGroup = false;
|
|
88
|
-
this.canHidden = true;
|
|
89
|
-
this.showContains = false;
|
|
90
|
-
this.dataType = 'array';
|
|
91
96
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
92
97
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
98
|
+
this.isCombinationComponent = false;
|
|
99
|
+
this.children = [];
|
|
93
100
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
94
101
|
required: true,
|
|
95
102
|
validator: function validator(_, value) {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class EItemId 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: any) => JSX.Element;
|
|
17
13
|
renderClient: (record: any) => JSX.Element | null;
|
|
18
14
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
19
17
|
renderExport: (value: any, record: any) => any;
|
|
20
18
|
editRender: () => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export default EItemId;
|
|
@@ -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; }
|
|
@@ -13,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
13
11
|
import ItemId from "./ItemId";
|
|
14
12
|
import { GoodImage } from "../Common";
|
|
15
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
15
|
var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
18
16
|
var _this = this,
|
|
19
17
|
_this$componentConfig2;
|
|
@@ -22,24 +20,18 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(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
|
-
_defineProperty(this, "
|
|
33
|
-
|
|
34
|
-
list: value,
|
|
35
|
-
type: "itemId"
|
|
36
|
-
});
|
|
37
|
-
});
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
38
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
40
29
|
id: _this.id,
|
|
41
30
|
label: _this.name,
|
|
42
|
-
value:
|
|
31
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
32
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
33
|
+
type: "itemId"
|
|
34
|
+
})
|
|
43
35
|
}) : null;
|
|
44
36
|
});
|
|
45
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -52,6 +44,13 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
52
44
|
type: "itemId"
|
|
53
45
|
});
|
|
54
46
|
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
49
|
+
return _this.renderPc(undefined, r);
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
52
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
53
|
+
});
|
|
55
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
55
|
var _ref;
|
|
57
56
|
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
|
|
@@ -73,23 +72,31 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
73
72
|
}))
|
|
74
73
|
});
|
|
75
74
|
});
|
|
76
|
-
_defineProperty(this, "
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
76
|
+
return {
|
|
77
|
+
type: item.type,
|
|
78
|
+
id: item.id,
|
|
79
|
+
// 过滤组件id
|
|
80
|
+
name: item.name,
|
|
81
|
+
// 过滤组件名称
|
|
82
|
+
filterComponentType: 'Input',
|
|
83
|
+
filterFn: function filterFn(value) {
|
|
84
|
+
return function (i) {
|
|
85
|
+
var _ref2;
|
|
86
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
87
|
+
var _String;
|
|
88
|
+
return item !== null && item !== void 0 && item.numIid ? (_String = String(item === null || item === void 0 ? void 0 : item.numIid)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
};
|
|
83
93
|
});
|
|
84
94
|
this.name = options.name;
|
|
85
95
|
this.id = options.id;
|
|
86
96
|
this.type = options.type;
|
|
87
|
-
this.canFilter = false;
|
|
88
|
-
this.canGroup = false;
|
|
89
|
-
this.canHidden = true;
|
|
90
|
-
this.showContains = false;
|
|
91
|
-
this.dataType = 'array';
|
|
92
97
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
98
|
+
this.isCombinationComponent = false;
|
|
99
|
+
this.children = [];
|
|
93
100
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
94
101
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
95
102
|
required: true,
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, Record } from "../../type";
|
|
3
3
|
declare class EItemSelect 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: any) => JSX.Element;
|
|
17
13
|
renderClient: (record: any) => JSX.Element | null;
|
|
18
14
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
19
17
|
renderExport: (value: any, record: any) => any;
|
|
20
18
|
editRender: () => JSX.Element;
|
|
21
|
-
|
|
22
|
-
dataIndex: string;
|
|
23
|
-
title: string;
|
|
24
|
-
renderExport: (value: any, record: any) => any;
|
|
25
|
-
};
|
|
19
|
+
filterConfig: () => never[];
|
|
26
20
|
}
|
|
27
21
|
export default EItemSelect;
|
|
@@ -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,23 +19,17 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(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
23
|
_defineProperty(this, "effects", void 0);
|
|
31
|
-
_defineProperty(this, "
|
|
32
|
-
|
|
33
|
-
list: value
|
|
34
|
-
});
|
|
35
|
-
});
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
36
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
38
28
|
id: _this.id,
|
|
39
29
|
label: _this.name,
|
|
40
|
-
value:
|
|
30
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
31
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
32
|
+
})
|
|
41
33
|
}) : null;
|
|
42
34
|
});
|
|
43
35
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -48,6 +40,13 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
48
40
|
list: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]
|
|
49
41
|
});
|
|
50
42
|
});
|
|
43
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
44
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
45
|
+
return _this.renderPc(undefined, r);
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
48
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
49
|
+
});
|
|
51
50
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
51
|
var _ref;
|
|
53
52
|
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
|
|
@@ -69,23 +68,16 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
69
68
|
}))
|
|
70
69
|
});
|
|
71
70
|
});
|
|
72
|
-
_defineProperty(this, "
|
|
73
|
-
return
|
|
74
|
-
dataIndex: _this.id,
|
|
75
|
-
title: _this.name,
|
|
76
|
-
renderExport: _this.renderExport
|
|
77
|
-
});
|
|
71
|
+
_defineProperty(this, "filterConfig", function () {
|
|
72
|
+
return [];
|
|
78
73
|
});
|
|
79
74
|
this.name = options.name;
|
|
80
75
|
this.id = options.id;
|
|
81
76
|
this.type = options.type;
|
|
82
|
-
this.canFilter = false;
|
|
83
|
-
this.canGroup = false;
|
|
84
|
-
this.canHidden = true;
|
|
85
|
-
this.showContains = false;
|
|
86
|
-
this.dataType = "array";
|
|
87
77
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
88
78
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
89
79
|
this.rules = [];
|
|
80
|
+
this.isCombinationComponent = false;
|
|
81
|
+
this.children = [];
|
|
90
82
|
});
|
|
91
83
|
export default EItemSelect;
|