@kmkf-fe-packages/services-components 0.6.3-alpha.4 → 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.
Files changed (134) hide show
  1. package/dist/esm/components/ActualPayment/index.d.ts +11 -8
  2. package/dist/esm/components/ActualPayment/index.js +22 -19
  3. package/dist/esm/components/Address/index.d.ts +14 -6
  4. package/dist/esm/components/Address/index.js +22 -9
  5. package/dist/esm/components/Alipay/index.d.ts +18 -9
  6. package/dist/esm/components/Alipay/index.js +17 -6
  7. package/dist/esm/components/AlipayAccount/index.d.ts +13 -9
  8. package/dist/esm/components/AlipayAccount/index.js +24 -19
  9. package/dist/esm/components/AlipayName/index.d.ts +12 -8
  10. package/dist/esm/components/AlipayName/index.js +23 -18
  11. package/dist/esm/components/BuyerNick/index.d.ts +11 -8
  12. package/dist/esm/components/BuyerNick/index.js +25 -30
  13. package/dist/esm/components/Cascader/index.d.ts +23 -9
  14. package/dist/esm/components/Cascader/index.js +27 -29
  15. package/dist/esm/components/Checkbox/index.d.ts +10 -9
  16. package/dist/esm/components/Checkbox/index.js +21 -25
  17. package/dist/esm/components/CommonDataTime/index.d.ts +10 -8
  18. package/dist/esm/components/CommonDataTime/index.js +20 -19
  19. package/dist/esm/components/DataTime/index.d.ts +10 -9
  20. package/dist/esm/components/DataTime/index.js +23 -22
  21. package/dist/esm/components/EItemEnCode/index.d.ts +10 -8
  22. package/dist/esm/components/EItemEnCode/index.js +20 -22
  23. package/dist/esm/components/EItemId/index.d.ts +10 -8
  24. package/dist/esm/components/EItemId/index.js +20 -22
  25. package/dist/esm/components/EItemSelect/index.d.ts +11 -4
  26. package/dist/esm/components/EItemSelect/index.js +18 -6
  27. package/dist/esm/components/ErpTradeId/index.d.ts +11 -8
  28. package/dist/esm/components/ErpTradeId/index.js +21 -18
  29. package/dist/esm/components/Express/index.d.ts +13 -9
  30. package/dist/esm/components/Express/index.js +29 -18
  31. package/dist/esm/components/ExpressCode/index.d.ts +12 -8
  32. package/dist/esm/components/ExpressCode/index.js +22 -17
  33. package/dist/esm/components/FlowStatusSelect/index.d.ts +33 -13
  34. package/dist/esm/components/FlowStatusSelect/index.js +22 -27
  35. package/dist/esm/components/Grade/index.d.ts +11 -4
  36. package/dist/esm/components/Grade/index.js +19 -6
  37. package/dist/esm/components/Input/index.d.ts +11 -8
  38. package/dist/esm/components/Input/index.js +24 -20
  39. package/dist/esm/components/JstItemSelect/index.d.ts +11 -9
  40. package/dist/esm/components/JstItemSelect/index.js +20 -35
  41. package/dist/esm/components/JstLogistics/index.d.ts +11 -16
  42. package/dist/esm/components/JstLogistics/index.js +20 -31
  43. package/dist/esm/components/JstSendGood/index.d.ts +11 -9
  44. package/dist/esm/components/JstSendGood/index.js +20 -35
  45. package/dist/esm/components/JstSupply/index.d.ts +11 -9
  46. package/dist/esm/components/JstSupply/index.js +20 -35
  47. package/dist/esm/components/Logistics/index.d.ts +25 -15
  48. package/dist/esm/components/Logistics/index.js +17 -10
  49. package/dist/esm/components/MultSelect/index.d.ts +10 -9
  50. package/dist/esm/components/MultSelect/index.js +20 -21
  51. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +21 -8
  52. package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -14
  53. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +21 -8
  54. package/dist/esm/components/Ordinary/OrdinaryMoney.js +26 -14
  55. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +16 -8
  56. package/dist/esm/components/Ordinary/OrdinarySerial.js +16 -14
  57. package/dist/esm/components/Ordinary/index.d.ts +22 -9
  58. package/dist/esm/components/Ordinary/index.js +7 -8
  59. package/dist/esm/components/Payment/AlipayNick.d.ts +22 -9
  60. package/dist/esm/components/Payment/AlipayNick.js +28 -16
  61. package/dist/esm/components/Payment/AlipayNo.d.ts +20 -8
  62. package/dist/esm/components/Payment/AlipayNo.js +27 -16
  63. package/dist/esm/components/Payment/AlipayTime.d.ts +22 -8
  64. package/dist/esm/components/Payment/AlipayTime.js +27 -15
  65. package/dist/esm/components/Payment/BuyerNick.d.ts +21 -8
  66. package/dist/esm/components/Payment/BuyerNick.js +26 -14
  67. package/dist/esm/components/Payment/PaymentAmount.d.ts +21 -8
  68. package/dist/esm/components/Payment/PaymentAmount.js +26 -14
  69. package/dist/esm/components/Payment/PaymentStatus.d.ts +27 -13
  70. package/dist/esm/components/Payment/PaymentStatus.js +36 -37
  71. package/dist/esm/components/Payment/PaymentTid.d.ts +21 -8
  72. package/dist/esm/components/Payment/PaymentTid.js +26 -14
  73. package/dist/esm/components/Payment/index.d.ts +96 -23
  74. package/dist/esm/components/Payment/index.js +17 -8
  75. package/dist/esm/components/Picture/index.d.ts +10 -8
  76. package/dist/esm/components/Picture/index.js +18 -6
  77. package/dist/esm/components/Radio/index.d.ts +10 -9
  78. package/dist/esm/components/Radio/index.js +23 -30
  79. package/dist/esm/components/Rate/index.d.ts +11 -4
  80. package/dist/esm/components/Rate/index.js +22 -11
  81. package/dist/esm/components/ReceiverAddress/index.d.ts +12 -4
  82. package/dist/esm/components/ReceiverAddress/index.js +26 -9
  83. package/dist/esm/components/ReceiverMobile/index.d.ts +12 -9
  84. package/dist/esm/components/ReceiverMobile/index.js +23 -20
  85. package/dist/esm/components/ReceiverName/index.d.ts +11 -8
  86. package/dist/esm/components/ReceiverName/index.js +23 -20
  87. package/dist/esm/components/Remark/index.d.ts +11 -8
  88. package/dist/esm/components/Remark/index.js +21 -18
  89. package/dist/esm/components/ReturnLogistics/index.d.ts +20 -15
  90. package/dist/esm/components/ReturnLogistics/index.js +7 -10
  91. package/dist/esm/components/Select/index.d.ts +10 -9
  92. package/dist/esm/components/Select/index.js +20 -20
  93. package/dist/esm/components/ShopName/index.d.ts +11 -8
  94. package/dist/esm/components/ShopName/index.js +20 -18
  95. package/dist/esm/components/SystemOrderNo/index.d.ts +11 -8
  96. package/dist/esm/components/SystemOrderNo/index.js +21 -18
  97. package/dist/esm/components/TemplateSelect/index.d.ts +11 -9
  98. package/dist/esm/components/TemplateSelect/index.js +20 -20
  99. package/dist/esm/components/TextArea/index.d.ts +10 -8
  100. package/dist/esm/components/TextArea/index.js +20 -18
  101. package/dist/esm/components/ThirdItemSelect/index.d.ts +10 -8
  102. package/dist/esm/components/ThirdItemSelect/index.js +20 -24
  103. package/dist/esm/components/TradeDateTime/index.d.ts +5 -9
  104. package/dist/esm/components/TradeDateTime/index.js +10 -34
  105. package/dist/esm/components/TradeId/index.d.ts +5 -8
  106. package/dist/esm/components/TradeId/index.js +10 -18
  107. package/dist/esm/components/WorkOrderId/index.d.ts +11 -8
  108. package/dist/esm/components/WorkOrderId/index.js +22 -20
  109. package/dist/esm/index.d.ts +0 -9
  110. package/dist/esm/index.js +1 -10
  111. package/dist/esm/type.d.ts +36 -38
  112. package/package.json +4 -4
  113. package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +0 -7
  114. package/dist/esm/commonComponents/PlatformAvatar/index.js +0 -28
  115. package/dist/esm/commonComponents/ShopList/index.d.ts +0 -13
  116. package/dist/esm/commonComponents/ShopList/index.js +0 -34
  117. package/dist/esm/components/CompletedUser/index.d.ts +0 -28
  118. package/dist/esm/components/CompletedUser/index.js +0 -60
  119. package/dist/esm/components/Handler/index.d.ts +0 -32
  120. package/dist/esm/components/Handler/index.js +0 -64
  121. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +0 -25
  122. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -89
  123. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +0 -24
  124. package/dist/esm/components/LogisticsInterception/InterceptType.js +0 -62
  125. package/dist/esm/components/LogisticsInterception/index.d.ts +0 -27
  126. package/dist/esm/components/LogisticsInterception/index.js +0 -90
  127. package/dist/esm/components/PlatForm/index.d.ts +0 -29
  128. package/dist/esm/components/PlatForm/index.js +0 -62
  129. package/dist/esm/components/ShopInput/index.d.ts +0 -26
  130. package/dist/esm/components/ShopInput/index.js +0 -71
  131. package/dist/esm/components/Submitter/index.d.ts +0 -28
  132. package/dist/esm/components/Submitter/index.js +0 -60
  133. package/dist/esm/factory.d.ts +0 -3
  134. package/dist/esm/factory.js +0 -105
@@ -1,12 +1,15 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, 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
- isCombinationComponent: boolean;
9
- children: ComponentInterface[];
8
+ canFilter: boolean;
9
+ canGroup: boolean;
10
+ canHidden: boolean;
11
+ dataType: DataType;
12
+ showContains: boolean;
10
13
  componentConfig: ComponentInterface["componentConfig"];
11
14
  constructor(options: PickOption);
12
15
  render: (value: number) => JSX.Element;
@@ -14,11 +17,11 @@ declare class ActualPayment implements ComponentInterface {
14
17
  renderPc: (value: unknown, record: Record) => JSX.Element;
15
18
  renderExport: (value: unknown, record: Record) => any;
16
19
  editRender: (value: any) => JSX.Element;
17
- filterConfig: (item: ColumnConfig) => {
18
- id: string;
19
- name: string;
20
- filterComponentType: "Input";
21
- filterFn: (value: string) => (i: Record) => boolean;
20
+ getColumns: () => this & {
21
+ dataIndex: string;
22
+ title: string;
23
+ renderExport: (value: unknown, record: Record) => any;
24
+ componentType: (value: any) => JSX.Element;
22
25
  };
23
26
  }
24
27
  export default ActualPayment;
@@ -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 { ApaasInput } from '@kmkf-fe-packages/basic-components';
11
13
  import GetFormItem from "../GetFormItem";
12
14
  import ItemView from "../../commonComponents/ItemView";
13
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
14
16
  var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
15
17
  var _this = this;
16
18
  _classCallCheck(this, ActualPayment);
@@ -18,8 +20,11 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
18
20
  _defineProperty(this, "id", void 0);
19
21
  _defineProperty(this, "type", void 0);
20
22
  _defineProperty(this, "rules", void 0);
21
- _defineProperty(this, "isCombinationComponent", void 0);
22
- _defineProperty(this, "children", void 0);
23
+ _defineProperty(this, "canFilter", void 0);
24
+ _defineProperty(this, "canGroup", void 0);
25
+ _defineProperty(this, "canHidden", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "showContains", void 0);
23
28
  _defineProperty(this, "componentConfig", void 0);
24
29
  _defineProperty(this, "render", function (value) {
25
30
  return /*#__PURE__*/React.createElement("span", null, value);
@@ -51,25 +56,23 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
51
56
  }))
52
57
  });
53
58
  });
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
- };
59
+ _defineProperty(this, "getColumns", function () {
60
+ return _objectSpread(_objectSpread({}, _this), {}, {
61
+ dataIndex: _this.id,
62
+ title: _this.name,
63
+ renderExport: _this.renderExport,
64
+ componentType: _this.editRender
65
+ });
66
+ ;
67
67
  });
68
- this.id = options.id;
69
68
  this.name = options.name;
69
+ this.id = options.id;
70
70
  this.type = options.type;
71
- this.isCombinationComponent = false;
72
- this.children = [];
71
+ this.canFilter = true;
72
+ this.canGroup = true;
73
+ this.canHidden = true;
74
+ this.dataType = 'number';
75
+ this.showContains = false;
73
76
  this.componentConfig = options.componentConfig;
74
77
  this.rules = [{
75
78
  pattern: /^\d+(\.\d{1,2})?$/,
@@ -1,14 +1,17 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, Record } from '../../type';
3
3
  import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare type Value = (string | number)[] | undefined;
5
- declare class Address implements ComponentInterface {
5
+ declare class BasicInput implements ComponentInterface {
6
6
  name: string;
7
7
  id: string;
8
8
  type: string;
9
9
  rules: any[];
10
- isCombinationComponent: boolean;
11
- children: ComponentInterface[];
10
+ canFilter: boolean;
11
+ canGroup: boolean;
12
+ canHidden: boolean;
13
+ dataType: DataType;
14
+ showContains: boolean;
12
15
  componentConfig: ComponentInterface["componentConfig"];
13
16
  addressDateInstance: AddressData;
14
17
  constructor(options: PickOption);
@@ -24,6 +27,11 @@ declare class Address implements ComponentInterface {
24
27
  renderPc: (value: any, record: Record) => JSX.Element;
25
28
  renderExport: (value: any, record: any) => string;
26
29
  editRender: (value: any) => JSX.Element;
27
- filterConfig: () => never[];
30
+ getColumns: () => this & {
31
+ dataIndex: string;
32
+ title: string;
33
+ componentType: (value: any) => JSX.Element;
34
+ renderExport: (value: any, record: any) => string;
35
+ };
28
36
  }
29
- export default Address;
37
+ export default BasicInput;
@@ -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 _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
5
  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
6
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -12,15 +14,18 @@ import GetFormItem from "../GetFormItem";
12
14
  import ItemView from "../../commonComponents/ItemView";
13
15
  import { isNull } from '@kmkf-fe-packages/kmkf-utils';
14
16
  import every from 'lodash/every';
15
- var Address = /*#__PURE__*/_createClass(function Address(options) {
17
+ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
16
18
  var _this = this;
17
- _classCallCheck(this, Address);
19
+ _classCallCheck(this, BasicInput);
18
20
  _defineProperty(this, "name", void 0);
19
21
  _defineProperty(this, "id", void 0);
20
22
  _defineProperty(this, "type", void 0);
21
23
  _defineProperty(this, "rules", void 0);
22
- _defineProperty(this, "isCombinationComponent", void 0);
23
- _defineProperty(this, "children", 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);
24
29
  _defineProperty(this, "componentConfig", void 0);
25
30
  _defineProperty(this, "addressDateInstance", void 0);
26
31
  _defineProperty(this, "getValue", function (value) {
@@ -78,14 +83,22 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
78
83
  component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
79
84
  });
80
85
  });
81
- _defineProperty(this, "filterConfig", function () {
82
- return [];
86
+ _defineProperty(this, "getColumns", function () {
87
+ return _objectSpread(_objectSpread({}, _this), {}, {
88
+ dataIndex: _this.id,
89
+ title: _this.name,
90
+ componentType: _this.editRender,
91
+ renderExport: _this.renderExport
92
+ });
83
93
  });
84
94
  this.name = options.name;
85
95
  this.id = options.id;
86
96
  this.type = options.type;
87
- this.isCombinationComponent = false;
88
- this.children = [];
97
+ this.canFilter = true;
98
+ this.canGroup = true;
99
+ this.canHidden = true;
100
+ this.dataType = 'array';
101
+ this.showContains = false;
89
102
  this.rules = [];
90
103
  this.componentConfig = options.componentConfig;
91
104
  this.addressDateInstance = AddressData.getInstance();
@@ -96,4 +109,4 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
96
109
  * @returns
97
110
  */);
98
111
 
99
- export default Address;
112
+ export default BasicInput;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, Record } from '../../type';
3
3
  import EAlipayAccount from '../AlipayAccount';
4
4
  import EAlipayName from '../AlipayName';
5
5
  declare class Alipay implements ComponentInterface {
@@ -7,22 +7,31 @@ 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;
10
15
  componentConfig: ComponentInterface["componentConfig"];
11
16
  alipayAccount: EAlipayAccount;
12
17
  alipayName: EAlipayName;
13
- isCombinationComponent: boolean;
14
- children: ComponentInterface[];
15
18
  constructor(options: PickOption);
16
19
  render: () => null;
17
20
  renderClient: (record: Record) => JSX.Element;
18
21
  renderPc: () => null;
19
22
  renderExport: () => null;
20
23
  editRender: (value: any) => JSX.Element;
21
- filterConfig: (item: ColumnConfig) => {
22
- id: string;
23
- name: string;
24
- filterComponentType: "Input";
25
- filterFn: (value: string) => (i: Record) => boolean;
26
- }[];
24
+ getColumns: () => {
25
+ title: string;
26
+ children: (EAlipayAccount & {
27
+ dataIndex: string;
28
+ title: string;
29
+ componentType: (value: any) => JSX.Element;
30
+ renderExport: (value?: string | undefined) => string;
31
+ render: (value: any, record: Record) => JSX.Element;
32
+ })[];
33
+ canHidden: boolean;
34
+ dataIndex: string;
35
+ };
27
36
  }
28
37
  export default Alipay;
@@ -21,11 +21,14 @@ 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);
24
29
  _defineProperty(this, "componentConfig", void 0);
25
30
  _defineProperty(this, "alipayAccount", void 0);
26
31
  _defineProperty(this, "alipayName", void 0);
27
- _defineProperty(this, "isCombinationComponent", void 0);
28
- _defineProperty(this, "children", void 0);
29
32
  _defineProperty(this, "render", function () {
30
33
  return null;
31
34
  });
@@ -50,17 +53,25 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
50
53
  }))
51
54
  });
52
55
  });
53
- _defineProperty(this, "filterConfig", function (item) {
54
- return [_this.alipayName.filterConfig(_objectSpread({}, item)), _this.alipayAccount.filterConfig(_objectSpread({}, item))];
56
+ _defineProperty(this, "getColumns", function () {
57
+ return {
58
+ title: _this.name,
59
+ children: [_this.alipayName.getColumns(), _this.alipayAccount.getColumns()],
60
+ canHidden: _this.canHidden,
61
+ dataIndex: _this.id
62
+ };
55
63
  });
56
64
  this.name = options.name;
57
65
  this.id = options.id;
58
66
  this.type = options.type;
59
- this.isCombinationComponent = true;
67
+ this.canFilter = false;
68
+ this.canGroup = false;
69
+ this.canHidden = true;
70
+ this.showContains = false;
71
+ this.dataType = 'string';
60
72
  this.componentConfig = options.componentConfig;
61
73
  this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
62
74
  this.alipayName = new EAlipayName(_objectSpread({}, options));
63
- this.children = [this.alipayName, this.alipayAccount];
64
75
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
65
76
  validator: function validator(_, value) {
66
77
  var _this$componentConfig4;
@@ -1,27 +1,31 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, 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;
8
13
  componentConfig: ComponentInterface["componentConfig"];
9
14
  effects: ComponentInterface["effects"];
10
15
  align: ALignType;
11
16
  width: number;
12
- isCombinationComponent: boolean;
13
- children: ComponentInterface[];
14
17
  constructor(options: PickOption);
15
- render: (value: string) => JSX.Element;
18
+ render: (value: string, record: Record) => JSX.Element;
16
19
  renderClient: (record: Record) => JSX.Element | null;
17
20
  renderPc: (value: any, record: Record) => JSX.Element;
18
21
  renderExport: (value?: string) => string;
19
22
  editRender: (value: any) => JSX.Element;
20
- filterConfig: (item: ColumnConfig) => {
21
- id: string;
22
- name: string;
23
- filterComponentType: "Input";
24
- filterFn: (value: string) => (i: Record) => boolean;
23
+ getColumns: () => this & {
24
+ dataIndex: string;
25
+ title: string;
26
+ componentType: (value: any) => JSX.Element;
27
+ renderExport: (value?: string) => string;
28
+ render: (value: any, record: Record) => JSX.Element;
25
29
  };
26
30
  }
27
31
  export default EAlipayAccount;
@@ -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 _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
5
  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
6
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -9,7 +11,7 @@ import React from 'react';
9
11
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
10
12
  import GetFormItem from "../GetFormItem";
11
13
  import ItemView from "../../commonComponents/ItemView";
12
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
13
15
  var AlipayAccount = function AlipayAccount(props) {
14
16
  return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
15
17
  };
@@ -20,13 +22,16 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
20
22
  _defineProperty(this, "id", void 0);
21
23
  _defineProperty(this, "type", void 0);
22
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);
23
30
  _defineProperty(this, "componentConfig", void 0);
24
31
  _defineProperty(this, "effects", void 0);
25
32
  _defineProperty(this, "align", void 0);
26
33
  _defineProperty(this, "width", void 0);
27
- _defineProperty(this, "isCombinationComponent", void 0);
28
- _defineProperty(this, "children", void 0);
29
- _defineProperty(this, "render", function (value) {
34
+ _defineProperty(this, "render", function (value, record) {
30
35
  return /*#__PURE__*/React.createElement("span", null, value);
31
36
  });
32
37
  _defineProperty(this, "renderClient", function (record) {
@@ -40,8 +45,8 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
40
45
  return /*#__PURE__*/React.createElement("span", {
41
46
  className: "pointer",
42
47
  onClick: function onClick() {
43
- var _this$effects, _this$effects2;
44
- typeof ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
48
+ var _this$effects;
49
+ return (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
45
50
  }
46
51
  }, value !== null && value !== void 0 ? value : '--');
47
52
  });
@@ -58,23 +63,23 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
58
63
  component: /*#__PURE__*/React.createElement(AlipayAccount, _this.componentConfig)
59
64
  });
60
65
  });
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
- };
66
+ _defineProperty(this, "getColumns", function () {
67
+ return _objectSpread(_objectSpread({}, _this), {}, {
68
+ dataIndex: _this.id,
69
+ title: _this.name,
70
+ componentType: _this.editRender,
71
+ renderExport: _this.renderExport,
72
+ render: _this.renderPc
73
+ });
72
74
  });
73
75
  this.name = '支付宝账号';
74
76
  this.id = "".concat(options.id, "_alipayAccount");
75
77
  this.type = options.type;
76
- this.isCombinationComponent = false;
77
- this.children = [];
78
+ this.canFilter = true;
79
+ this.canGroup = false;
80
+ this.canHidden = false;
81
+ this.showContains = true;
82
+ this.dataType = 'string';
78
83
  this.align = 'left';
79
84
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
80
85
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
@@ -1,14 +1,17 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, 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;
8
13
  componentConfig: ComponentInterface["componentConfig"];
9
14
  effects: ComponentInterface["effects"];
10
- isCombinationComponent: boolean;
11
- children: ComponentInterface[];
12
15
  align: ALignType;
13
16
  width: number;
14
17
  constructor(options: PickOption);
@@ -17,11 +20,12 @@ declare class EAlipayAccount implements ComponentInterface {
17
20
  renderPc: (value: any, record: Record) => JSX.Element;
18
21
  renderExport: (value?: string) => string;
19
22
  editRender: (value: any) => JSX.Element;
20
- filterConfig: (item: ColumnConfig) => {
21
- id: string;
22
- name: string;
23
- filterComponentType: "Input";
24
- filterFn: (value: string) => (i: Record) => boolean;
23
+ getColumns: () => this & {
24
+ dataIndex: string;
25
+ title: string;
26
+ componentType: (value: any) => JSX.Element;
27
+ renderExport: (value?: string) => string;
28
+ render: (value: any, record: Record) => JSX.Element;
25
29
  };
26
30
  }
27
31
  export default EAlipayAccount;
@@ -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 _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
5
  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
6
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -9,7 +11,7 @@ import React from 'react';
9
11
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
10
12
  import GetFormItem from "../GetFormItem";
11
13
  import ItemView from "../../commonComponents/ItemView";
12
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
13
15
  var AlipayName = function AlipayName(props) {
14
16
  return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
15
17
  };
@@ -20,10 +22,13 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
20
22
  _defineProperty(this, "id", void 0);
21
23
  _defineProperty(this, "type", void 0);
22
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);
23
30
  _defineProperty(this, "componentConfig", void 0);
24
31
  _defineProperty(this, "effects", void 0);
25
- _defineProperty(this, "isCombinationComponent", void 0);
26
- _defineProperty(this, "children", void 0);
27
32
  _defineProperty(this, "align", void 0);
28
33
  _defineProperty(this, "width", void 0);
29
34
  _defineProperty(this, "render", function (value, record) {
@@ -40,8 +45,8 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
40
45
  return /*#__PURE__*/React.createElement("span", {
41
46
  className: "pointer",
42
47
  onClick: function onClick() {
43
- var _this$effects, _this$effects2;
44
- typeof ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
48
+ var _this$effects;
49
+ return (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
45
50
  }
46
51
  }, value !== null && value !== void 0 ? value : '--');
47
52
  });
@@ -58,23 +63,23 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
58
63
  component: /*#__PURE__*/React.createElement(AlipayName, _this.componentConfig)
59
64
  });
60
65
  });
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
- };
66
+ _defineProperty(this, "getColumns", function () {
67
+ return _objectSpread(_objectSpread({}, _this), {}, {
68
+ dataIndex: _this.id,
69
+ title: _this.name,
70
+ componentType: _this.editRender,
71
+ renderExport: _this.renderExport,
72
+ render: _this.renderPc
73
+ });
72
74
  });
73
75
  this.name = '支付宝名称';
74
76
  this.id = "".concat(options.id, "_alipayName");
75
77
  this.type = options.type;
76
- this.isCombinationComponent = false;
77
- this.children = [];
78
+ this.canFilter = true;
79
+ this.canGroup = false;
80
+ this.canHidden = false;
81
+ this.showContains = true;
82
+ this.dataType = 'string';
78
83
  this.align = 'left';
79
84
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
80
85
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, Record } from "../../type";
3
3
  declare type Value = {
4
4
  buyerNick?: string;
5
5
  };
@@ -8,21 +8,24 @@ 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;
11
16
  componentConfig: ComponentInterface["componentConfig"];
12
17
  effects: ComponentInterface["effects"];
13
- isCombinationComponent: boolean;
14
- children: ComponentInterface[];
15
18
  constructor(options: PickOption);
16
19
  render: (value: Value) => JSX.Element;
17
20
  renderClient: (record: any) => JSX.Element | null;
18
21
  renderPc: (value: unknown, record: Record) => JSX.Element;
19
22
  renderExport: (value: any, record: any) => any;
20
23
  editRender: (value: any) => JSX.Element;
21
- filterConfig: (item: ColumnConfig) => {
22
- id: string;
23
- name: string;
24
- filterComponentType: "Input";
25
- filterFn: (value: string) => (i: Record) => boolean;
24
+ getColumns: () => this & {
25
+ dataIndex: string;
26
+ title: string;
27
+ renderExport: (value: any, record: any) => any;
28
+ customizeFilter: (value: Value) => string | undefined;
26
29
  };
27
30
  }
28
31
  export default EBuyerNick;