@kmkf-fe-packages/services-components 0.5.2-alpha.0 → 0.5.2-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- package/dist/esm/components/ActualPayment/index.d.ts +8 -11
- package/dist/esm/components/ActualPayment/index.js +19 -22
- package/dist/esm/components/Address/index.d.ts +6 -14
- package/dist/esm/components/Address/index.js +9 -22
- package/dist/esm/components/Alipay/index.d.ts +9 -18
- package/dist/esm/components/Alipay/index.js +6 -17
- package/dist/esm/components/AlipayAccount/index.d.ts +8 -12
- package/dist/esm/components/AlipayAccount/index.js +16 -21
- package/dist/esm/components/AlipayName/index.d.ts +8 -12
- package/dist/esm/components/AlipayName/index.js +16 -21
- package/dist/esm/components/BuyerNick/index.d.ts +8 -11
- package/dist/esm/components/BuyerNick/index.js +17 -21
- package/dist/esm/components/Cascader/index.d.ts +9 -23
- package/dist/esm/components/Cascader/index.js +29 -27
- package/dist/esm/components/Checkbox/index.d.ts +9 -10
- package/dist/esm/components/Checkbox/index.js +24 -20
- package/dist/esm/components/CommonDataTime/index.d.ts +8 -10
- package/dist/esm/components/CommonDataTime/index.js +19 -20
- package/dist/esm/components/CompletedUser/index.d.ts +28 -0
- package/dist/esm/components/CompletedUser/index.js +60 -0
- package/dist/esm/components/DataTime/index.d.ts +9 -10
- package/dist/esm/components/DataTime/index.js +22 -23
- package/dist/esm/components/EItemEnCode/index.d.ts +8 -10
- package/dist/esm/components/EItemEnCode/index.js +22 -20
- package/dist/esm/components/EItemId/index.d.ts +8 -10
- package/dist/esm/components/EItemId/index.js +22 -20
- package/dist/esm/components/EItemSelect/index.d.ts +4 -11
- package/dist/esm/components/EItemSelect/index.js +6 -19
- package/dist/esm/components/ErpTradeId/index.d.ts +8 -11
- package/dist/esm/components/ErpTradeId/index.js +18 -21
- package/dist/esm/components/Express/index.d.ts +9 -13
- package/dist/esm/components/Express/index.js +18 -29
- package/dist/esm/components/ExpressCode/index.d.ts +8 -12
- package/dist/esm/components/ExpressCode/index.js +17 -22
- package/dist/esm/components/FlowStatusSelect/index.d.ts +13 -33
- package/dist/esm/components/FlowStatusSelect/index.js +25 -20
- package/dist/esm/components/Grade/index.d.ts +4 -11
- package/dist/esm/components/Grade/index.js +6 -19
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +64 -0
- package/dist/esm/components/Input/index.d.ts +8 -11
- package/dist/esm/components/Input/index.js +20 -24
- package/dist/esm/components/JstItemSelect/index.d.ts +9 -11
- package/dist/esm/components/JstItemSelect/index.js +35 -20
- package/dist/esm/components/JstLogistics/index.d.ts +16 -11
- package/dist/esm/components/JstLogistics/index.js +31 -20
- package/dist/esm/components/JstSendGood/index.d.ts +9 -11
- package/dist/esm/components/JstSendGood/index.js +35 -20
- package/dist/esm/components/JstSupply/index.d.ts +9 -11
- package/dist/esm/components/JstSupply/index.js +35 -20
- package/dist/esm/components/Logistics/index.d.ts +14 -25
- package/dist/esm/components/Logistics/index.js +10 -17
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +24 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +85 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +22 -0
- package/dist/esm/components/LogisticsInterception/index.js +73 -0
- package/dist/esm/components/MultSelect/index.d.ts +9 -10
- package/dist/esm/components/MultSelect/index.js +21 -20
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +8 -21
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +14 -26
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +8 -21
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +14 -26
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +8 -16
- package/dist/esm/components/Ordinary/OrdinarySerial.js +14 -16
- package/dist/esm/components/Ordinary/index.d.ts +9 -22
- package/dist/esm/components/Ordinary/index.js +8 -7
- package/dist/esm/components/Payment/AlipayNick.d.ts +8 -21
- package/dist/esm/components/Payment/AlipayNick.js +14 -26
- package/dist/esm/components/Payment/AlipayNo.d.ts +8 -20
- package/dist/esm/components/Payment/AlipayNo.js +14 -25
- package/dist/esm/components/Payment/AlipayTime.d.ts +8 -22
- package/dist/esm/components/Payment/AlipayTime.js +15 -27
- package/dist/esm/components/Payment/BuyerNick.d.ts +8 -21
- package/dist/esm/components/Payment/BuyerNick.js +14 -26
- package/dist/esm/components/Payment/PaymentAmount.d.ts +8 -21
- package/dist/esm/components/Payment/PaymentAmount.js +14 -26
- package/dist/esm/components/Payment/PaymentStatus.d.ts +13 -27
- package/dist/esm/components/Payment/PaymentStatus.js +37 -36
- package/dist/esm/components/Payment/PaymentTid.d.ts +8 -21
- package/dist/esm/components/Payment/PaymentTid.js +14 -26
- package/dist/esm/components/Payment/index.d.ts +18 -96
- package/dist/esm/components/Payment/index.js +8 -17
- package/dist/esm/components/Picture/index.d.ts +8 -10
- package/dist/esm/components/Picture/index.js +6 -18
- package/dist/esm/components/PlatForm/index.d.ts +26 -0
- package/dist/esm/components/PlatForm/index.js +62 -0
- package/dist/esm/components/Radio/index.d.ts +9 -10
- package/dist/esm/components/Radio/index.js +23 -20
- package/dist/esm/components/Rate/index.d.ts +4 -11
- package/dist/esm/components/Rate/index.js +6 -19
- package/dist/esm/components/ReceiverAddress/index.d.ts +4 -12
- package/dist/esm/components/ReceiverAddress/index.js +6 -19
- package/dist/esm/components/ReceiverMobile/index.d.ts +8 -11
- package/dist/esm/components/ReceiverMobile/index.js +18 -21
- package/dist/esm/components/ReceiverName/index.d.ts +8 -11
- package/dist/esm/components/ReceiverName/index.js +18 -21
- package/dist/esm/components/Remark/index.d.ts +8 -11
- package/dist/esm/components/Remark/index.js +18 -21
- package/dist/esm/components/ReturnLogistics/index.d.ts +14 -20
- package/dist/esm/components/ReturnLogistics/index.js +10 -7
- package/dist/esm/components/Select/index.d.ts +9 -10
- package/dist/esm/components/Select/index.js +20 -20
- package/dist/esm/components/ShopInput/index.d.ts +26 -0
- package/dist/esm/components/ShopInput/index.js +71 -0
- package/dist/esm/components/ShopName/index.d.ts +8 -11
- package/dist/esm/components/ShopName/index.js +18 -20
- package/dist/esm/components/Submitter/index.d.ts +28 -0
- package/dist/esm/components/Submitter/index.js +60 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +8 -11
- package/dist/esm/components/SystemOrderNo/index.js +18 -21
- package/dist/esm/components/TemplateSelect/index.d.ts +9 -11
- package/dist/esm/components/TemplateSelect/index.js +20 -20
- package/dist/esm/components/TextArea/index.d.ts +8 -10
- package/dist/esm/components/TextArea/index.js +18 -20
- package/dist/esm/components/ThirdItemSelect/index.d.ts +8 -10
- package/dist/esm/components/ThirdItemSelect/index.js +24 -20
- package/dist/esm/components/TradeDateTime/index.d.ts +9 -5
- package/dist/esm/components/TradeDateTime/index.js +34 -10
- package/dist/esm/components/TradeId/index.d.ts +8 -5
- package/dist/esm/components/TradeId/index.js +18 -10
- package/dist/esm/components/WorkOrderId/index.d.ts +8 -11
- package/dist/esm/components/WorkOrderId/index.js +18 -20
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.js +8 -1
- package/dist/esm/type.d.ts +32 -30
- package/package.json +3 -3
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,28 @@
|
|
|
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,15 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class ActualPayment implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
8
|
+
isCombinationComponent: boolean;
|
|
9
|
+
children: ComponentInterface[];
|
|
13
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
11
|
constructor(options: PickOption);
|
|
15
12
|
render: (value: number) => JSX.Element;
|
|
@@ -17,11 +14,11 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
17
14
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
18
15
|
renderExport: (value: unknown, record: Record) => any;
|
|
19
16
|
editRender: (value: any) => JSX.Element;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
filterConfig: (item: ColumnConfig) => {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
filterComponentType: "Input";
|
|
21
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
22
|
};
|
|
26
23
|
}
|
|
27
24
|
export default ActualPayment;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -12,7 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
17
15
|
var _this = this;
|
|
18
16
|
_classCallCheck(this, ActualPayment);
|
|
@@ -20,11 +18,8 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
20
18
|
_defineProperty(this, "id", void 0);
|
|
21
19
|
_defineProperty(this, "type", void 0);
|
|
22
20
|
_defineProperty(this, "rules", void 0);
|
|
23
|
-
_defineProperty(this, "
|
|
24
|
-
_defineProperty(this, "
|
|
25
|
-
_defineProperty(this, "canHidden", void 0);
|
|
26
|
-
_defineProperty(this, "dataType", void 0);
|
|
27
|
-
_defineProperty(this, "showContains", void 0);
|
|
21
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "children", void 0);
|
|
28
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
24
|
_defineProperty(this, "render", function (value) {
|
|
30
25
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
@@ -56,23 +51,25 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
56
51
|
}))
|
|
57
52
|
});
|
|
58
53
|
});
|
|
59
|
-
_defineProperty(this, "
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
54
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
55
|
+
return {
|
|
56
|
+
id: item.id,
|
|
57
|
+
// 过滤组件id
|
|
58
|
+
name: item.name,
|
|
59
|
+
// 过滤组件名称
|
|
60
|
+
filterComponentType: 'Input',
|
|
61
|
+
filterFn: function filterFn(value) {
|
|
62
|
+
return function (i) {
|
|
63
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'actualPayment')).includes(value);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
67
|
});
|
|
68
|
-
this.name = options.name;
|
|
69
68
|
this.id = options.id;
|
|
69
|
+
this.name = options.name;
|
|
70
70
|
this.type = options.type;
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.canHidden = true;
|
|
74
|
-
this.dataType = 'number';
|
|
75
|
-
this.showContains = false;
|
|
71
|
+
this.isCombinationComponent = false;
|
|
72
|
+
this.children = [];
|
|
76
73
|
this.componentConfig = options.componentConfig;
|
|
77
74
|
this.rules = [{
|
|
78
75
|
pattern: /^\d+(\.\d{1,2})?$/,
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
3
3
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = (string | number)[] | undefined;
|
|
5
|
-
declare class
|
|
5
|
+
declare class Address implements ComponentInterface {
|
|
6
6
|
name: string;
|
|
7
7
|
id: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
canHidden: boolean;
|
|
13
|
-
dataType: DataType;
|
|
14
|
-
showContains: boolean;
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
componentConfig: ComponentInterface["componentConfig"];
|
|
16
13
|
addressDateInstance: AddressData;
|
|
17
14
|
constructor(options: PickOption);
|
|
@@ -27,11 +24,6 @@ declare class BasicInput implements ComponentInterface {
|
|
|
27
24
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
28
25
|
renderExport: (value: any, record: any) => string;
|
|
29
26
|
editRender: (value: any) => JSX.Element;
|
|
30
|
-
|
|
31
|
-
dataIndex: string;
|
|
32
|
-
title: string;
|
|
33
|
-
componentType: (value: any) => JSX.Element;
|
|
34
|
-
renderExport: (value: any, record: any) => string;
|
|
35
|
-
};
|
|
27
|
+
filterConfig: () => never[];
|
|
36
28
|
}
|
|
37
|
-
export default
|
|
29
|
+
export default Address;
|
|
@@ -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"); } }
|
|
@@ -14,18 +12,15 @@ import GetFormItem from "../GetFormItem";
|
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
13
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
import every from 'lodash/every';
|
|
17
|
-
var
|
|
15
|
+
var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
18
16
|
var _this = this;
|
|
19
|
-
_classCallCheck(this,
|
|
17
|
+
_classCallCheck(this, Address);
|
|
20
18
|
_defineProperty(this, "name", void 0);
|
|
21
19
|
_defineProperty(this, "id", void 0);
|
|
22
20
|
_defineProperty(this, "type", void 0);
|
|
23
21
|
_defineProperty(this, "rules", void 0);
|
|
24
|
-
_defineProperty(this, "
|
|
25
|
-
_defineProperty(this, "
|
|
26
|
-
_defineProperty(this, "canHidden", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "showContains", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "children", void 0);
|
|
29
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
25
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
31
26
|
_defineProperty(this, "getValue", function (value) {
|
|
@@ -83,22 +78,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
83
78
|
component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
|
|
84
79
|
});
|
|
85
80
|
});
|
|
86
|
-
_defineProperty(this, "
|
|
87
|
-
return
|
|
88
|
-
dataIndex: _this.id,
|
|
89
|
-
title: _this.name,
|
|
90
|
-
componentType: _this.editRender,
|
|
91
|
-
renderExport: _this.renderExport
|
|
92
|
-
});
|
|
81
|
+
_defineProperty(this, "filterConfig", function () {
|
|
82
|
+
return [];
|
|
93
83
|
});
|
|
94
84
|
this.name = options.name;
|
|
95
85
|
this.id = options.id;
|
|
96
86
|
this.type = options.type;
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.canHidden = true;
|
|
100
|
-
this.dataType = 'array';
|
|
101
|
-
this.showContains = false;
|
|
87
|
+
this.isCombinationComponent = false;
|
|
88
|
+
this.children = [];
|
|
102
89
|
this.rules = [];
|
|
103
90
|
this.componentConfig = options.componentConfig;
|
|
104
91
|
this.addressDateInstance = AddressData.getInstance();
|
|
@@ -109,4 +96,4 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
109
96
|
* @returns
|
|
110
97
|
*/);
|
|
111
98
|
|
|
112
|
-
export default
|
|
99
|
+
export default Address;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
import EAlipayAccount from '../AlipayAccount';
|
|
4
4
|
import EAlipayName from '../AlipayName';
|
|
5
5
|
declare class Alipay implements ComponentInterface {
|
|
@@ -7,31 +7,22 @@ declare class Alipay implements ComponentInterface {
|
|
|
7
7
|
id: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
canFilter: boolean;
|
|
11
|
-
canGroup: boolean;
|
|
12
|
-
canHidden: boolean;
|
|
13
|
-
dataType: DataType;
|
|
14
|
-
showContains: boolean;
|
|
15
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
16
11
|
alipayAccount: EAlipayAccount;
|
|
17
12
|
alipayName: EAlipayName;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
18
15
|
constructor(options: PickOption);
|
|
19
16
|
render: () => null;
|
|
20
17
|
renderClient: (record: Record) => JSX.Element;
|
|
21
18
|
renderPc: () => null;
|
|
22
19
|
renderExport: () => null;
|
|
23
20
|
editRender: (value: any) => JSX.Element;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
renderExport: (value?: string | undefined) => string;
|
|
31
|
-
render: (value: any, record: Record) => JSX.Element;
|
|
32
|
-
})[];
|
|
33
|
-
canHidden: boolean;
|
|
34
|
-
dataIndex: string;
|
|
35
|
-
};
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Input";
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
|
+
}[];
|
|
36
27
|
}
|
|
37
28
|
export default Alipay;
|
|
@@ -21,14 +21,11 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
22
|
_defineProperty(this, "type", void 0);
|
|
23
23
|
_defineProperty(this, "rules", void 0);
|
|
24
|
-
_defineProperty(this, "canFilter", void 0);
|
|
25
|
-
_defineProperty(this, "canGroup", void 0);
|
|
26
|
-
_defineProperty(this, "canHidden", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "showContains", void 0);
|
|
29
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
25
|
_defineProperty(this, "alipayAccount", void 0);
|
|
31
26
|
_defineProperty(this, "alipayName", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
32
29
|
_defineProperty(this, "render", function () {
|
|
33
30
|
return null;
|
|
34
31
|
});
|
|
@@ -53,25 +50,17 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
53
50
|
}))
|
|
54
51
|
});
|
|
55
52
|
});
|
|
56
|
-
_defineProperty(this, "
|
|
57
|
-
return {
|
|
58
|
-
title: _this.name,
|
|
59
|
-
children: [_this.alipayName.getColumns(), _this.alipayAccount.getColumns()],
|
|
60
|
-
canHidden: _this.canHidden,
|
|
61
|
-
dataIndex: _this.id
|
|
62
|
-
};
|
|
53
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
54
|
+
return [_this.alipayName.filterConfig(_objectSpread({}, item)), _this.alipayAccount.filterConfig(_objectSpread({}, item))];
|
|
63
55
|
});
|
|
64
56
|
this.name = options.name;
|
|
65
57
|
this.id = options.id;
|
|
66
58
|
this.type = options.type;
|
|
67
|
-
this.
|
|
68
|
-
this.canGroup = false;
|
|
69
|
-
this.canHidden = true;
|
|
70
|
-
this.showContains = false;
|
|
71
|
-
this.dataType = 'string';
|
|
59
|
+
this.isCombinationComponent = true;
|
|
72
60
|
this.componentConfig = options.componentConfig;
|
|
73
61
|
this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
|
|
74
62
|
this.alipayName = new EAlipayName(_objectSpread({}, options));
|
|
63
|
+
this.children = [this.alipayName, this.alipayAccount];
|
|
75
64
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
76
65
|
validator: function validator(_, value) {
|
|
77
66
|
var _this$componentConfig4;
|
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class EAlipayAccount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
15
10
|
align: ALignType;
|
|
16
11
|
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
17
14
|
constructor(options: PickOption);
|
|
18
15
|
render: (value: string, record: Record) => JSX.Element;
|
|
19
16
|
renderClient: (record: Record) => JSX.Element | null;
|
|
20
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
18
|
renderExport: (value?: string) => string;
|
|
22
19
|
editRender: (value: any) => JSX.Element;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
render: (value: any, record: Record) => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
25
|
};
|
|
30
26
|
}
|
|
31
27
|
export default EAlipayAccount;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
3
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -11,7 +9,7 @@ import React from 'react';
|
|
|
11
9
|
import { ApaasInput } 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
|
var AlipayAccount = function AlipayAccount(props) {
|
|
16
14
|
return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
|
|
17
15
|
};
|
|
@@ -22,15 +20,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
22
20
|
_defineProperty(this, "id", void 0);
|
|
23
21
|
_defineProperty(this, "type", void 0);
|
|
24
22
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
24
|
_defineProperty(this, "effects", void 0);
|
|
32
25
|
_defineProperty(this, "align", void 0);
|
|
33
26
|
_defineProperty(this, "width", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
34
29
|
_defineProperty(this, "render", function (value, record) {
|
|
35
30
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
36
31
|
});
|
|
@@ -63,23 +58,23 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
63
58
|
component: /*#__PURE__*/React.createElement(AlipayAccount, _this.componentConfig)
|
|
64
59
|
});
|
|
65
60
|
});
|
|
66
|
-
_defineProperty(this, "
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
62
|
+
return {
|
|
63
|
+
id: "".concat(item.id, "_alipayAccount"),
|
|
64
|
+
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
|
|
65
|
+
filterComponentType: 'Input',
|
|
66
|
+
filterFn: function filterFn(value) {
|
|
67
|
+
return function (i) {
|
|
68
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'alipayAccount')).includes(value);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
74
72
|
});
|
|
75
73
|
this.name = '支付宝账号';
|
|
76
74
|
this.id = "".concat(options.id, "_alipayAccount");
|
|
77
75
|
this.type = options.type;
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
80
|
-
this.canHidden = false;
|
|
81
|
-
this.showContains = true;
|
|
82
|
-
this.dataType = 'string';
|
|
76
|
+
this.isCombinationComponent = false;
|
|
77
|
+
this.children = [];
|
|
83
78
|
this.align = 'left';
|
|
84
79
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
85
80
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class EAlipayAccount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
align: ALignType;
|
|
16
13
|
width: number;
|
|
17
14
|
constructor(options: PickOption);
|
|
@@ -20,12 +17,11 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
20
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
18
|
renderExport: (value?: string) => string;
|
|
22
19
|
editRender: (value: any) => JSX.Element;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
render: (value: any, record: Record) => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
25
|
};
|
|
30
26
|
}
|
|
31
27
|
export default EAlipayAccount;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
3
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -11,7 +9,7 @@ import React from 'react';
|
|
|
11
9
|
import { ApaasInput } 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
|
var AlipayName = function AlipayName(props) {
|
|
16
14
|
return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
|
|
17
15
|
};
|
|
@@ -22,13 +20,10 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
22
20
|
_defineProperty(this, "id", void 0);
|
|
23
21
|
_defineProperty(this, "type", void 0);
|
|
24
22
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
24
|
_defineProperty(this, "effects", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
32
27
|
_defineProperty(this, "align", void 0);
|
|
33
28
|
_defineProperty(this, "width", void 0);
|
|
34
29
|
_defineProperty(this, "render", function (value, record) {
|
|
@@ -63,23 +58,23 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
63
58
|
component: /*#__PURE__*/React.createElement(AlipayName, _this.componentConfig)
|
|
64
59
|
});
|
|
65
60
|
});
|
|
66
|
-
_defineProperty(this, "
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
62
|
+
return {
|
|
63
|
+
id: "".concat(item.id, "_alipayName"),
|
|
64
|
+
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
|
|
65
|
+
filterComponentType: 'Input',
|
|
66
|
+
filterFn: function filterFn(value) {
|
|
67
|
+
return function (i) {
|
|
68
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'alipayName')).includes(value);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
74
72
|
});
|
|
75
73
|
this.name = '支付宝名称';
|
|
76
74
|
this.id = "".concat(options.id, "_alipayName");
|
|
77
75
|
this.type = options.type;
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
80
|
-
this.canHidden = false;
|
|
81
|
-
this.showContains = true;
|
|
82
|
-
this.dataType = 'string';
|
|
76
|
+
this.isCombinationComponent = false;
|
|
77
|
+
this.children = [];
|
|
83
78
|
this.align = 'left';
|
|
84
79
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
85
80
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
buyerNick?: string;
|
|
5
5
|
};
|
|
@@ -8,24 +8,21 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
8
8
|
id: string;
|
|
9
9
|
type: string;
|
|
10
10
|
rules: any[];
|
|
11
|
-
canFilter: boolean;
|
|
12
|
-
canGroup: boolean;
|
|
13
|
-
canHidden: boolean;
|
|
14
|
-
dataType: DataType;
|
|
15
|
-
showContains: boolean;
|
|
16
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
17
12
|
effects: ComponentInterface["effects"];
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
18
15
|
constructor(options: PickOption);
|
|
19
16
|
render: (value: Value) => JSX.Element;
|
|
20
17
|
renderClient: (record: any) => JSX.Element | null;
|
|
21
18
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
22
19
|
renderExport: (value: any, record: any) => any;
|
|
23
20
|
editRender: (value: any) => JSX.Element;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Input";
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
26
|
};
|
|
30
27
|
}
|
|
31
28
|
export default EBuyerNick;
|