@kmkf-fe-packages/services-components 0.6.3-alpha.3 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/ActualPayment/index.d.ts +11 -8
- package/dist/esm/components/ActualPayment/index.js +22 -19
- package/dist/esm/components/Address/index.d.ts +14 -6
- package/dist/esm/components/Address/index.js +22 -9
- package/dist/esm/components/Alipay/index.d.ts +18 -9
- package/dist/esm/components/Alipay/index.js +17 -6
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -9
- package/dist/esm/components/AlipayAccount/index.js +24 -19
- package/dist/esm/components/AlipayName/index.d.ts +12 -8
- package/dist/esm/components/AlipayName/index.js +23 -18
- package/dist/esm/components/BuyerNick/index.d.ts +11 -8
- package/dist/esm/components/BuyerNick/index.js +25 -30
- package/dist/esm/components/Cascader/index.d.ts +23 -9
- package/dist/esm/components/Cascader/index.js +27 -29
- package/dist/esm/components/Checkbox/index.d.ts +10 -9
- package/dist/esm/components/Checkbox/index.js +21 -25
- package/dist/esm/components/CommonDataTime/index.d.ts +10 -8
- package/dist/esm/components/CommonDataTime/index.js +20 -19
- package/dist/esm/components/DataTime/index.d.ts +10 -9
- package/dist/esm/components/DataTime/index.js +23 -22
- package/dist/esm/components/EItemEnCode/index.d.ts +10 -8
- package/dist/esm/components/EItemEnCode/index.js +20 -22
- package/dist/esm/components/EItemId/index.d.ts +10 -8
- package/dist/esm/components/EItemId/index.js +20 -22
- package/dist/esm/components/EItemSelect/index.d.ts +11 -4
- package/dist/esm/components/EItemSelect/index.js +18 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +11 -8
- package/dist/esm/components/ErpTradeId/index.js +21 -18
- package/dist/esm/components/Express/index.d.ts +13 -9
- package/dist/esm/components/Express/index.js +29 -18
- package/dist/esm/components/ExpressCode/index.d.ts +12 -8
- package/dist/esm/components/ExpressCode/index.js +22 -17
- package/dist/esm/components/FlowStatusSelect/index.d.ts +33 -13
- package/dist/esm/components/FlowStatusSelect/index.js +22 -27
- package/dist/esm/components/Grade/index.d.ts +11 -4
- package/dist/esm/components/Grade/index.js +19 -6
- package/dist/esm/components/Input/index.d.ts +11 -8
- package/dist/esm/components/Input/index.js +24 -20
- package/dist/esm/components/JstItemSelect/index.d.ts +11 -9
- package/dist/esm/components/JstItemSelect/index.js +20 -35
- package/dist/esm/components/JstLogistics/index.d.ts +11 -16
- package/dist/esm/components/JstLogistics/index.js +20 -31
- package/dist/esm/components/JstSendGood/index.d.ts +11 -9
- package/dist/esm/components/JstSendGood/index.js +20 -35
- package/dist/esm/components/JstSupply/index.d.ts +11 -9
- package/dist/esm/components/JstSupply/index.js +20 -35
- package/dist/esm/components/Logistics/index.d.ts +25 -15
- package/dist/esm/components/Logistics/index.js +17 -10
- package/dist/esm/components/MultSelect/index.d.ts +10 -9
- package/dist/esm/components/MultSelect/index.js +20 -21
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +21 -8
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -14
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +21 -8
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +26 -14
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +16 -8
- package/dist/esm/components/Ordinary/OrdinarySerial.js +16 -14
- package/dist/esm/components/Ordinary/index.d.ts +22 -9
- package/dist/esm/components/Ordinary/index.js +7 -8
- package/dist/esm/components/Payment/AlipayNick.d.ts +22 -9
- package/dist/esm/components/Payment/AlipayNick.js +28 -16
- package/dist/esm/components/Payment/AlipayNo.d.ts +20 -8
- package/dist/esm/components/Payment/AlipayNo.js +27 -16
- package/dist/esm/components/Payment/AlipayTime.d.ts +22 -8
- package/dist/esm/components/Payment/AlipayTime.js +27 -15
- package/dist/esm/components/Payment/BuyerNick.d.ts +21 -8
- package/dist/esm/components/Payment/BuyerNick.js +26 -14
- package/dist/esm/components/Payment/PaymentAmount.d.ts +21 -8
- package/dist/esm/components/Payment/PaymentAmount.js +26 -14
- package/dist/esm/components/Payment/PaymentStatus.d.ts +27 -13
- package/dist/esm/components/Payment/PaymentStatus.js +36 -37
- package/dist/esm/components/Payment/PaymentTid.d.ts +21 -8
- package/dist/esm/components/Payment/PaymentTid.js +26 -14
- package/dist/esm/components/Payment/index.d.ts +96 -23
- package/dist/esm/components/Payment/index.js +17 -8
- package/dist/esm/components/Picture/index.d.ts +10 -8
- package/dist/esm/components/Picture/index.js +18 -6
- package/dist/esm/components/Radio/index.d.ts +10 -9
- package/dist/esm/components/Radio/index.js +23 -30
- package/dist/esm/components/Rate/index.d.ts +11 -4
- package/dist/esm/components/Rate/index.js +22 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +12 -4
- package/dist/esm/components/ReceiverAddress/index.js +26 -9
- package/dist/esm/components/ReceiverMobile/index.d.ts +12 -9
- package/dist/esm/components/ReceiverMobile/index.js +23 -20
- package/dist/esm/components/ReceiverName/index.d.ts +11 -8
- package/dist/esm/components/ReceiverName/index.js +23 -20
- package/dist/esm/components/Remark/index.d.ts +11 -8
- package/dist/esm/components/Remark/index.js +21 -18
- package/dist/esm/components/ReturnLogistics/index.d.ts +20 -15
- package/dist/esm/components/ReturnLogistics/index.js +7 -10
- package/dist/esm/components/Select/index.d.ts +10 -9
- package/dist/esm/components/Select/index.js +20 -20
- package/dist/esm/components/ShopName/index.d.ts +11 -8
- package/dist/esm/components/ShopName/index.js +20 -18
- package/dist/esm/components/SystemOrderNo/index.d.ts +11 -8
- package/dist/esm/components/SystemOrderNo/index.js +21 -18
- package/dist/esm/components/TemplateSelect/index.d.ts +11 -9
- package/dist/esm/components/TemplateSelect/index.js +20 -20
- package/dist/esm/components/TextArea/index.d.ts +10 -8
- package/dist/esm/components/TextArea/index.js +20 -18
- package/dist/esm/components/ThirdItemSelect/index.d.ts +10 -8
- package/dist/esm/components/ThirdItemSelect/index.js +20 -24
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -9
- package/dist/esm/components/TradeDateTime/index.js +10 -34
- package/dist/esm/components/TradeId/index.d.ts +5 -8
- package/dist/esm/components/TradeId/index.js +10 -18
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -8
- package/dist/esm/components/WorkOrderId/index.js +22 -20
- package/dist/esm/index.d.ts +0 -9
- package/dist/esm/index.js +1 -10
- package/dist/esm/type.d.ts +36 -38
- package/package.json +4 -4
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +0 -7
- package/dist/esm/commonComponents/PlatformAvatar/index.js +0 -28
- package/dist/esm/commonComponents/ShopList/index.d.ts +0 -13
- package/dist/esm/commonComponents/ShopList/index.js +0 -34
- package/dist/esm/components/CompletedUser/index.d.ts +0 -28
- package/dist/esm/components/CompletedUser/index.js +0 -60
- package/dist/esm/components/Handler/index.d.ts +0 -32
- package/dist/esm/components/Handler/index.js +0 -64
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +0 -25
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -89
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +0 -24
- package/dist/esm/components/LogisticsInterception/InterceptType.js +0 -62
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -27
- package/dist/esm/components/LogisticsInterception/index.js +0 -90
- package/dist/esm/components/PlatForm/index.d.ts +0 -29
- package/dist/esm/components/PlatForm/index.js +0 -62
- package/dist/esm/components/ShopInput/index.d.ts +0 -26
- package/dist/esm/components/ShopInput/index.js +0 -71
- package/dist/esm/components/Submitter/index.d.ts +0 -28
- package/dist/esm/components/Submitter/index.js +0 -60
- package/dist/esm/factory.d.ts +0 -3
- package/dist/esm/factory.js +0 -105
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, Record
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -13,19 +13,16 @@ declare class ETradeId implements ComponentInterface {
|
|
|
13
13
|
onlyContainsString: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
effects: ComponentInterface["effects"];
|
|
16
|
-
isCombinationComponent: boolean;
|
|
17
|
-
children: ComponentInterface[];
|
|
18
16
|
constructor(options: PickOption);
|
|
19
17
|
render: (value: string) => JSX.Element;
|
|
20
18
|
renderClient: (record: any) => JSX.Element | null;
|
|
21
19
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
22
20
|
renderExport: (value: unknown, record: Record) => any;
|
|
23
21
|
editRender: (value: any) => JSX.Element;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
22
|
+
getColumns: () => this & {
|
|
23
|
+
dataIndex: string;
|
|
24
|
+
title: string;
|
|
25
|
+
componentType: (value: any) => JSX.Element;
|
|
29
26
|
};
|
|
30
27
|
}
|
|
31
28
|
export default ETradeId;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -10,7 +12,7 @@ import React from 'react';
|
|
|
10
12
|
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
11
13
|
import GetFormItem from "../GetFormItem";
|
|
12
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull
|
|
15
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
16
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
15
17
|
var _this = this;
|
|
16
18
|
_classCallCheck(this, ETradeId);
|
|
@@ -26,8 +28,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
26
28
|
_defineProperty(this, "onlyContainsString", void 0);
|
|
27
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
30
|
_defineProperty(this, "effects", void 0);
|
|
29
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
31
|
_defineProperty(this, "render", function (value) {
|
|
32
32
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
33
33
|
});
|
|
@@ -65,19 +65,13 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
65
65
|
}))
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
_defineProperty(this, "
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
filterFn: function filterFn(value) {
|
|
76
|
-
return function (i) {
|
|
77
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
};
|
|
68
|
+
_defineProperty(this, "getColumns", function () {
|
|
69
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
70
|
+
dataIndex: _this.id,
|
|
71
|
+
title: _this.name,
|
|
72
|
+
componentType: _this.editRender
|
|
73
|
+
});
|
|
74
|
+
;
|
|
81
75
|
});
|
|
82
76
|
this.name = options.name;
|
|
83
77
|
this.id = options.id;
|
|
@@ -91,7 +85,5 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
91
85
|
this.componentConfig = options.componentConfig;
|
|
92
86
|
this.effects = options.effects;
|
|
93
87
|
this.rules = [];
|
|
94
|
-
this.isCombinationComponent = false;
|
|
95
|
-
this.children = [];
|
|
96
88
|
});
|
|
97
89
|
export default ETradeId;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, DataType } from '../../type';
|
|
3
3
|
declare class WorkOrderId 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
effects: ComponentInterface["effects"];
|
|
10
|
-
isCombinationComponent: boolean;
|
|
11
|
-
children: ComponentInterface[];
|
|
12
15
|
constructor(options: PickOption);
|
|
13
16
|
copyHandle: (text: string) => void;
|
|
14
17
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
@@ -16,11 +19,11 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
16
19
|
render: () => null;
|
|
17
20
|
renderClient: () => null;
|
|
18
21
|
editRender: () => JSX.Element;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
getColumns: () => this & {
|
|
23
|
+
dataIndex: string;
|
|
24
|
+
title: string;
|
|
25
|
+
componentType: () => JSX.Element;
|
|
26
|
+
renderExport: (value: any, record: any) => any;
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
29
|
export default WorkOrderId;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -10,7 +12,6 @@ import React from 'react';
|
|
|
10
12
|
import { message } from 'antd';
|
|
11
13
|
import { CopyOutlined } from '@ant-design/icons';
|
|
12
14
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
13
|
-
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
15
|
import GetFormItem from "../GetFormItem";
|
|
15
16
|
import repeatPng from "./img/repeat.png";
|
|
16
17
|
import copy from 'copy-to-clipboard';
|
|
@@ -21,10 +22,13 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
21
22
|
_defineProperty(this, "id", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
25
|
+
_defineProperty(this, "canFilter", void 0);
|
|
26
|
+
_defineProperty(this, "canGroup", void 0);
|
|
27
|
+
_defineProperty(this, "canHidden", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
|
+
_defineProperty(this, "showContains", void 0);
|
|
24
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
31
|
_defineProperty(this, "effects", void 0);
|
|
26
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
-
_defineProperty(this, "children", void 0);
|
|
28
32
|
_defineProperty(this, "copyHandle", function (text) {
|
|
29
33
|
copy(text);
|
|
30
34
|
message.success('复制成功');
|
|
@@ -38,8 +42,8 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
38
42
|
},
|
|
39
43
|
alt: "",
|
|
40
44
|
onClick: function onClick() {
|
|
41
|
-
var _this$effects
|
|
42
|
-
|
|
45
|
+
var _this$effects;
|
|
46
|
+
return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig);
|
|
43
47
|
}
|
|
44
48
|
}), (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--', (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) && /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
45
49
|
onClick: function onClick() {
|
|
@@ -74,26 +78,24 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
74
78
|
}))
|
|
75
79
|
});
|
|
76
80
|
});
|
|
77
|
-
_defineProperty(this, "
|
|
78
|
-
return {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return function (i) {
|
|
86
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, '')).includes(value);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
};
|
|
81
|
+
_defineProperty(this, "getColumns", function () {
|
|
82
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
83
|
+
dataIndex: _this.id,
|
|
84
|
+
title: _this.name,
|
|
85
|
+
componentType: _this.editRender,
|
|
86
|
+
renderExport: _this.renderExport
|
|
87
|
+
});
|
|
88
|
+
;
|
|
90
89
|
});
|
|
91
90
|
this.name = options.name;
|
|
92
91
|
this.id = options.id;
|
|
93
92
|
this.type = options.type;
|
|
93
|
+
this.canFilter = true;
|
|
94
|
+
this.canGroup = true;
|
|
95
|
+
this.canHidden = true;
|
|
96
|
+
this.dataType = 'string';
|
|
97
|
+
this.showContains = true;
|
|
94
98
|
this.componentConfig = options.componentConfig;
|
|
95
99
|
this.rules = [];
|
|
96
|
-
this.isCombinationComponent = false;
|
|
97
|
-
this.children = [];
|
|
98
100
|
});
|
|
99
101
|
export default WorkOrderId;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -38,12 +38,3 @@ export { default as JstSupply } from './components/JstSupply';
|
|
|
38
38
|
export { default as FlowStatusSelect } from './components/FlowStatusSelect';
|
|
39
39
|
export { default as TemplateSelect } from './components/TemplateSelect';
|
|
40
40
|
export { default as WorkOrderId } from './components/WorkOrderId';
|
|
41
|
-
export { default as LogisticsInterception } from './components/LogisticsInterception';
|
|
42
|
-
export { default as PlatForm } from './components/PlatForm';
|
|
43
|
-
export { default as ShopInput } from './components/ShopInput';
|
|
44
|
-
export { default as Submitter } from './components/Submitter';
|
|
45
|
-
export { default as Handler } from './components/Handler';
|
|
46
|
-
export { default as CompletedUser } from './components/CompletedUser';
|
|
47
|
-
export { factory } from './factory';
|
|
48
|
-
export { default as PlatformAvatar } from './commonComponents/PlatformAvatar';
|
|
49
|
-
export { default as ShopList } from './commonComponents/ShopList';
|
package/dist/esm/index.js
CHANGED
|
@@ -37,13 +37,4 @@ export { default as JstSendGood } from "./components/JstSendGood";
|
|
|
37
37
|
export { default as JstSupply } from "./components/JstSupply";
|
|
38
38
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
39
39
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
40
|
-
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
41
|
-
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
42
|
-
export { default as PlatForm } from "./components/PlatForm";
|
|
43
|
-
export { default as ShopInput } from "./components/ShopInput";
|
|
44
|
-
export { default as Submitter } from "./components/Submitter";
|
|
45
|
-
export { default as Handler } from "./components/Handler";
|
|
46
|
-
export { default as CompletedUser } from "./components/CompletedUser";
|
|
47
|
-
export { factory } from "./factory";
|
|
48
|
-
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
49
|
-
export { default as ShopList } from "./commonComponents/ShopList";
|
|
40
|
+
export { default as WorkOrderId } from "./components/WorkOrderId";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -5,23 +5,39 @@ export declare type ALignType = 'left' | 'right' | 'center';
|
|
|
5
5
|
export declare type Record = {
|
|
6
6
|
[props in string]: any;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
declare interface ResultColumnsInterface {
|
|
9
|
+
title: string;
|
|
10
|
+
align?: ALignType;
|
|
11
|
+
children?: ResultColumnsInterface[];
|
|
12
|
+
dataIndex?: string | number;
|
|
13
|
+
dataType?: string;
|
|
14
|
+
canHidden?: boolean;
|
|
15
|
+
canFilter?: boolean;
|
|
16
|
+
canGroup?: boolean;
|
|
17
|
+
editable?: boolean;
|
|
18
|
+
width?: number;
|
|
19
|
+
render?: (v: any, r: any) => JSX.Element | null;
|
|
20
|
+
renderPc?: (v: any, r: any) => JSX.Element | null;
|
|
21
|
+
componentType?: (v: any) => JSX.Element | null;
|
|
22
|
+
[prop: string]: any;
|
|
23
|
+
}
|
|
16
24
|
export interface ComponentInterface {
|
|
17
25
|
id: string;
|
|
18
26
|
name: string;
|
|
19
27
|
type: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
showContains?: boolean;
|
|
29
|
+
dataType?: DataType;
|
|
30
|
+
canHidden?: boolean;
|
|
31
|
+
canFilter?: boolean;
|
|
32
|
+
canGroup?: boolean;
|
|
23
33
|
width?: number;
|
|
24
34
|
align?: ALignType;
|
|
35
|
+
dataIndex?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated 已弃用字段,不会再用任何意义
|
|
38
|
+
*/
|
|
39
|
+
editable?: boolean;
|
|
40
|
+
rules?: any[];
|
|
25
41
|
/**
|
|
26
42
|
* @description 组件下标
|
|
27
43
|
* @deprecated 已弃用字段,后续版本不在使用
|
|
@@ -112,29 +128,18 @@ export interface ComponentInterface {
|
|
|
112
128
|
* @description 针对JD单店铺,需要使用企业工单的上传能力,这里增加了一个配置
|
|
113
129
|
*/
|
|
114
130
|
isSingleShop?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* @description 针对ERP的订单组件需要特殊展示,此处增加一个特殊标识
|
|
117
|
-
*/
|
|
118
|
-
erpFlag?: boolean;
|
|
119
131
|
};
|
|
120
132
|
effects?: {
|
|
121
|
-
queryWorkOrderDetail
|
|
122
|
-
handleOpenRepeatList
|
|
123
|
-
handleChangeSingleWorkOrderStatus
|
|
124
|
-
templateList
|
|
125
|
-
isEditing
|
|
126
|
-
form
|
|
133
|
+
queryWorkOrderDetail: (r: Record) => void;
|
|
134
|
+
handleOpenRepeatList: (r: Record) => void;
|
|
135
|
+
handleChangeSingleWorkOrderStatus: (r: Record) => void;
|
|
136
|
+
templateList: any[];
|
|
137
|
+
isEditing: boolean;
|
|
138
|
+
form: FormInstance;
|
|
127
139
|
shopList?: any[];
|
|
128
140
|
shopId?: string;
|
|
129
|
-
userList?: {
|
|
130
|
-
label: string;
|
|
131
|
-
value: string;
|
|
132
|
-
}[];
|
|
133
141
|
};
|
|
134
|
-
|
|
135
|
-
* 端上的日志模块需要使用
|
|
136
|
-
*/
|
|
137
|
-
render: (value: any, r?: Record) => JSX.Element | null | JSX.Element[];
|
|
142
|
+
render: (v: any, record: Record) => JSX.Element | null;
|
|
138
143
|
/**
|
|
139
144
|
* 客户端卡片字段渲染,record的格式为下面这种,可以直接使用
|
|
140
145
|
* {
|
|
@@ -164,14 +169,7 @@ export interface ComponentInterface {
|
|
|
164
169
|
formItemIndex?: number;
|
|
165
170
|
onBlur?: (p1: any, p2: any) => void;
|
|
166
171
|
}) => JSX.Element | null;
|
|
167
|
-
|
|
172
|
+
getColumns?: () => ResultColumnsInterface;
|
|
168
173
|
}
|
|
169
174
|
export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects'>;
|
|
170
|
-
export
|
|
171
|
-
id: string;
|
|
172
|
-
name: string;
|
|
173
|
-
type: string;
|
|
174
|
-
subKey?: string;
|
|
175
|
-
mode?: 'multiple';
|
|
176
|
-
config?: ComponentInterface['componentConfig'];
|
|
177
|
-
};
|
|
175
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.6.3
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"father": "^4.1.7"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "^0.6.3
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.6.3
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "^0.6.3",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.6.3"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"gitHooks": {
|
|
36
36
|
"pre-commit": "lint-staged"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "7729e2b404a284239abb60eaaed125766688ec30"
|
|
39
39
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
-
declare type PlatformAvatarProps = {
|
|
3
|
-
type: number | string;
|
|
4
|
-
styles?: CSSProperties;
|
|
5
|
-
};
|
|
6
|
-
declare const PlatformAvatar: (props: PropsWithChildren<PlatformAvatarProps>) => JSX.Element;
|
|
7
|
-
export default PlatformAvatar;
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
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; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
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); }
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
|
|
9
|
-
var PlatformAvatar = function PlatformAvatar(props) {
|
|
10
|
-
var _platDatInstance$getP;
|
|
11
|
-
var _props$styles = props.styles,
|
|
12
|
-
styles = _props$styles === void 0 ? {} : _props$styles,
|
|
13
|
-
type = props.type;
|
|
14
|
-
var platDatInstance = PlatData.getInstance();
|
|
15
|
-
var platIcon = (_platDatInstance$getP = platDatInstance.getPlatData()) === null || _platDatInstance$getP === void 0 ? void 0 : _platDatInstance$getP.find(function (item) {
|
|
16
|
-
return item.platformType === type;
|
|
17
|
-
});
|
|
18
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("img", {
|
|
19
|
-
alt: "",
|
|
20
|
-
src: platIcon === null || platIcon === void 0 ? void 0 : platIcon.img,
|
|
21
|
-
style: _objectSpread({
|
|
22
|
-
width: '20px',
|
|
23
|
-
height: '20px',
|
|
24
|
-
objectFit: 'contain'
|
|
25
|
-
}, styles)
|
|
26
|
-
}), props.children);
|
|
27
|
-
};
|
|
28
|
-
export default PlatformAvatar;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type Shop = {
|
|
3
|
-
auditStatus: number;
|
|
4
|
-
shopId: string;
|
|
5
|
-
shopName: string;
|
|
6
|
-
shopSource: string | number;
|
|
7
|
-
};
|
|
8
|
-
declare type ShopListProps = {
|
|
9
|
-
shopList: Shop[];
|
|
10
|
-
[prop: string]: any;
|
|
11
|
-
};
|
|
12
|
-
declare const ShopList: ({ shopList, onChange, setShopId, ...prop }: ShopListProps) => JSX.Element;
|
|
13
|
-
export default ShopList;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var _excluded = ["shopList", "onChange", "setShopId"];
|
|
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); }
|
|
3
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { Select } from 'antd';
|
|
7
|
-
import PlatformAvatar from "../PlatformAvatar";
|
|
8
|
-
var ShopList = function ShopList(_ref) {
|
|
9
|
-
var _shopList$filter;
|
|
10
|
-
var shopList = _ref.shopList,
|
|
11
|
-
onChange = _ref.onChange,
|
|
12
|
-
setShopId = _ref.setShopId,
|
|
13
|
-
prop = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
-
var handleChange = function handleChange(val) {
|
|
15
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
16
|
-
setShopId === null || setShopId === void 0 ? void 0 : setShopId(val);
|
|
17
|
-
};
|
|
18
|
-
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
19
|
-
onChange: handleChange
|
|
20
|
-
}, prop), shopList === null || shopList === void 0 ? void 0 : (_shopList$filter = shopList.filter(function (item) {
|
|
21
|
-
return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1;
|
|
22
|
-
})) === null || _shopList$filter === void 0 ? void 0 : _shopList$filter.map(function (item) {
|
|
23
|
-
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
24
|
-
value: item.shopId,
|
|
25
|
-
label: item.shopName
|
|
26
|
-
}, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
27
|
-
styles: {
|
|
28
|
-
marginRight: 5
|
|
29
|
-
},
|
|
30
|
-
type: item.shopSource
|
|
31
|
-
}), /*#__PURE__*/React.createElement("span", null, item.shopName));
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
34
|
-
export default ShopList;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
3
|
-
declare class CompletedUser implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
type: string;
|
|
7
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
8
|
-
effects: ComponentInterface["effects"];
|
|
9
|
-
isCombinationComponent: boolean;
|
|
10
|
-
children: ComponentInterface[];
|
|
11
|
-
constructor(options: PickOption);
|
|
12
|
-
renderPc: (value: string, record: Record) => JSX.Element;
|
|
13
|
-
renderExport: (value: any, record: Record) => any;
|
|
14
|
-
render: () => null;
|
|
15
|
-
renderClient: () => null;
|
|
16
|
-
editRender: () => null;
|
|
17
|
-
filterConfig: (item: ColumnConfig) => {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
filterComponentType: "MultipleSelect";
|
|
21
|
-
options: {
|
|
22
|
-
label: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}[];
|
|
25
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export default CompletedUser;
|
|
@@ -1,60 +0,0 @@
|
|
|
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, "renderExport", function (value, record) {
|
|
25
|
-
var _record2;
|
|
26
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
27
|
-
});
|
|
28
|
-
_defineProperty(this, "render", function () {
|
|
29
|
-
return null;
|
|
30
|
-
});
|
|
31
|
-
_defineProperty(this, "renderClient", function () {
|
|
32
|
-
return null;
|
|
33
|
-
});
|
|
34
|
-
_defineProperty(this, "editRender", function () {
|
|
35
|
-
return null;
|
|
36
|
-
});
|
|
37
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
38
|
-
var _this$effects;
|
|
39
|
-
return {
|
|
40
|
-
id: item.id,
|
|
41
|
-
// 过滤组件id
|
|
42
|
-
name: item.name,
|
|
43
|
-
// 过滤组件名称
|
|
44
|
-
filterComponentType: 'MultipleSelect',
|
|
45
|
-
options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
|
|
46
|
-
filterFn: function filterFn(value) {
|
|
47
|
-
return function (i) {
|
|
48
|
-
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
this.name = "完成人";
|
|
54
|
-
this.id = "completedUserName";
|
|
55
|
-
this.type = "COMPLETED_USER_INPUT";
|
|
56
|
-
this.effects = options.effects;
|
|
57
|
-
this.isCombinationComponent = false;
|
|
58
|
-
this.children = [];
|
|
59
|
-
});
|
|
60
|
-
export default CompletedUser;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type';
|
|
3
|
-
declare class Handler implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
type: string;
|
|
7
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
8
|
-
effects: ComponentInterface["effects"];
|
|
9
|
-
isCombinationComponent: boolean;
|
|
10
|
-
children: ComponentInterface[];
|
|
11
|
-
constructor(options: PickOption);
|
|
12
|
-
renderPc: (value: {
|
|
13
|
-
account: string;
|
|
14
|
-
}[], record: Record) => JSX.Element;
|
|
15
|
-
renderExport: (value: {
|
|
16
|
-
account: string;
|
|
17
|
-
}[], record: Record) => string;
|
|
18
|
-
render: () => null;
|
|
19
|
-
renderClient: () => null;
|
|
20
|
-
editRender: () => null;
|
|
21
|
-
filterConfig: (item: ColumnConfig) => {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
filterComponentType: "MultipleSelect";
|
|
25
|
-
options: {
|
|
26
|
-
label: string;
|
|
27
|
-
value: string;
|
|
28
|
-
}[];
|
|
29
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export default Handler;
|