@kmkf-fe-packages/services-components 0.7.10 → 0.7.11-alpha.1

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 (130) hide show
  1. package/dist/esm/components/ActualPayment/index.d.ts +2 -1
  2. package/dist/esm/components/ActualPayment/index.js +4 -1
  3. package/dist/esm/components/Address/index.d.ts +2 -1
  4. package/dist/esm/components/Address/index.js +4 -1
  5. package/dist/esm/components/Alipay/index.d.ts +2 -1
  6. package/dist/esm/components/Alipay/index.js +5 -2
  7. package/dist/esm/components/AlipayAccount/index.d.ts +2 -1
  8. package/dist/esm/components/AlipayAccount/index.js +4 -1
  9. package/dist/esm/components/AlipayName/index.d.ts +2 -1
  10. package/dist/esm/components/AlipayName/index.js +4 -1
  11. package/dist/esm/components/BuyerNick/index.d.ts +2 -1
  12. package/dist/esm/components/BuyerNick/index.js +5 -2
  13. package/dist/esm/components/Cascader/index.d.ts +2 -1
  14. package/dist/esm/components/Cascader/index.js +4 -1
  15. package/dist/esm/components/Checkbox/index.d.ts +3 -1
  16. package/dist/esm/components/Checkbox/index.js +8 -2
  17. package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
  18. package/dist/esm/components/CommonDataTime/index.js +4 -0
  19. package/dist/esm/components/CompletedUser/index.d.ts +2 -0
  20. package/dist/esm/components/CompletedUser/index.js +6 -1
  21. package/dist/esm/components/DataTime/index.d.ts +3 -1
  22. package/dist/esm/components/DataTime/index.js +11 -2
  23. package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
  24. package/dist/esm/components/EItemEnCode/index.js +4 -1
  25. package/dist/esm/components/EItemId/index.d.ts +2 -1
  26. package/dist/esm/components/EItemId/index.js +4 -1
  27. package/dist/esm/components/EItemSelect/index.d.ts +2 -1
  28. package/dist/esm/components/EItemSelect/index.js +4 -1
  29. package/dist/esm/components/ErpTradeId/index.d.ts +2 -1
  30. package/dist/esm/components/ErpTradeId/index.js +4 -1
  31. package/dist/esm/components/Express/index.d.ts +3 -1
  32. package/dist/esm/components/Express/index.js +6 -1
  33. package/dist/esm/components/ExpressCode/index.d.ts +2 -1
  34. package/dist/esm/components/ExpressCode/index.js +4 -1
  35. package/dist/esm/components/FlowStatusSelect/index.d.ts +3 -1
  36. package/dist/esm/components/FlowStatusSelect/index.js +21 -7
  37. package/dist/esm/components/GetFormItem/index.d.ts +2 -1
  38. package/dist/esm/components/GetFormItem/index.js +5 -2
  39. package/dist/esm/components/Grade/index.d.ts +2 -1
  40. package/dist/esm/components/Grade/index.js +4 -1
  41. package/dist/esm/components/Handler/index.d.ts +2 -0
  42. package/dist/esm/components/Handler/index.js +6 -1
  43. package/dist/esm/components/Input/index.d.ts +2 -1
  44. package/dist/esm/components/Input/index.js +6 -2
  45. package/dist/esm/components/JstItemSelect/index.d.ts +2 -1
  46. package/dist/esm/components/JstItemSelect/index.js +4 -1
  47. package/dist/esm/components/JstLogistics/index.d.ts +2 -1
  48. package/dist/esm/components/JstLogistics/index.js +4 -1
  49. package/dist/esm/components/JstSendGood/index.d.ts +2 -1
  50. package/dist/esm/components/JstSendGood/index.js +4 -1
  51. package/dist/esm/components/JstSupply/index.d.ts +2 -1
  52. package/dist/esm/components/JstSupply/index.js +4 -1
  53. package/dist/esm/components/Logistics/index.d.ts +2 -1
  54. package/dist/esm/components/Logistics/index.js +5 -2
  55. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -1
  56. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +4 -1
  57. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -0
  58. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +4 -0
  59. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +2 -0
  60. package/dist/esm/components/LogisticsInterception/InterceptType.js +4 -0
  61. package/dist/esm/components/LogisticsInterception/index.d.ts +2 -1
  62. package/dist/esm/components/LogisticsInterception/index.js +4 -1
  63. package/dist/esm/components/MultSelect/index.d.ts +3 -1
  64. package/dist/esm/components/MultSelect/index.js +8 -2
  65. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -1
  66. package/dist/esm/components/Ordinary/OrdinaryHeader.js +4 -1
  67. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +2 -1
  68. package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -1
  69. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -6
  70. package/dist/esm/components/Ordinary/OrdinarySerial.js +3 -8
  71. package/dist/esm/components/Ordinary/index.d.ts +3 -6
  72. package/dist/esm/components/Ordinary/index.js +4 -8
  73. package/dist/esm/components/Payment/AlipayNick.d.ts +2 -1
  74. package/dist/esm/components/Payment/AlipayNick.js +4 -1
  75. package/dist/esm/components/Payment/AlipayNo.d.ts +2 -1
  76. package/dist/esm/components/Payment/AlipayNo.js +4 -1
  77. package/dist/esm/components/Payment/AlipayTime.d.ts +3 -1
  78. package/dist/esm/components/Payment/AlipayTime.js +6 -1
  79. package/dist/esm/components/Payment/BuyerNick.d.ts +2 -1
  80. package/dist/esm/components/Payment/BuyerNick.js +4 -1
  81. package/dist/esm/components/Payment/PaymentAmount.d.ts +2 -1
  82. package/dist/esm/components/Payment/PaymentAmount.js +4 -1
  83. package/dist/esm/components/Payment/PaymentStatus.d.ts +2 -0
  84. package/dist/esm/components/Payment/PaymentStatus.js +4 -0
  85. package/dist/esm/components/Payment/PaymentTid.d.ts +2 -1
  86. package/dist/esm/components/Payment/PaymentTid.js +4 -1
  87. package/dist/esm/components/Payment/index.d.ts +2 -1
  88. package/dist/esm/components/Payment/index.js +5 -2
  89. package/dist/esm/components/Picture/index.d.ts +2 -1
  90. package/dist/esm/components/Picture/index.js +4 -1
  91. package/dist/esm/components/PlatForm/index.d.ts +2 -0
  92. package/dist/esm/components/PlatForm/index.js +4 -0
  93. package/dist/esm/components/Radio/index.d.ts +3 -1
  94. package/dist/esm/components/Radio/index.js +8 -2
  95. package/dist/esm/components/Rate/index.d.ts +2 -1
  96. package/dist/esm/components/Rate/index.js +4 -1
  97. package/dist/esm/components/ReceiverAddress/index.d.ts +2 -1
  98. package/dist/esm/components/ReceiverAddress/index.js +4 -1
  99. package/dist/esm/components/ReceiverMobile/index.d.ts +2 -1
  100. package/dist/esm/components/ReceiverMobile/index.js +5 -2
  101. package/dist/esm/components/ReceiverName/index.d.ts +2 -1
  102. package/dist/esm/components/ReceiverName/index.js +4 -1
  103. package/dist/esm/components/Remark/index.d.ts +2 -1
  104. package/dist/esm/components/Remark/index.js +4 -1
  105. package/dist/esm/components/ReturnLogistics/index.d.ts +3 -6
  106. package/dist/esm/components/ReturnLogistics/index.js +5 -9
  107. package/dist/esm/components/Select/index.d.ts +3 -1
  108. package/dist/esm/components/Select/index.js +8 -2
  109. package/dist/esm/components/ShopInput/index.d.ts +2 -0
  110. package/dist/esm/components/ShopInput/index.js +6 -1
  111. package/dist/esm/components/ShopName/index.d.ts +2 -1
  112. package/dist/esm/components/ShopName/index.js +4 -1
  113. package/dist/esm/components/Submitter/index.d.ts +2 -0
  114. package/dist/esm/components/Submitter/index.js +6 -1
  115. package/dist/esm/components/SystemOrderNo/index.d.ts +2 -1
  116. package/dist/esm/components/SystemOrderNo/index.js +4 -1
  117. package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
  118. package/dist/esm/components/TemplateSelect/index.js +6 -1
  119. package/dist/esm/components/TextArea/index.d.ts +2 -1
  120. package/dist/esm/components/TextArea/index.js +4 -1
  121. package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -1
  122. package/dist/esm/components/ThirdItemSelect/index.js +4 -1
  123. package/dist/esm/components/TradeDateTime/index.d.ts +4 -6
  124. package/dist/esm/components/TradeDateTime/index.js +6 -9
  125. package/dist/esm/components/TradeId/index.d.ts +2 -4
  126. package/dist/esm/components/TradeId/index.js +6 -9
  127. package/dist/esm/components/WorkOrderId/index.d.ts +2 -1
  128. package/dist/esm/components/WorkOrderId/index.js +4 -1
  129. package/dist/esm/type.d.ts +4 -0
  130. package/package.json +4 -4
@@ -10,13 +10,14 @@ declare class ActualPayment implements ComponentInterface {
10
10
  canSort: boolean;
11
11
  children: ComponentInterface[];
12
12
  componentConfig: ComponentInterface["componentConfig"];
13
+ dataType: ComponentInterface['dataType'];
13
14
  constructor(options: PickOption);
14
15
  renderClient: (record: any) => React.JSX.Element | null;
15
16
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
16
17
  renderLog: (r: Record) => React.JSX.Element | null;
17
18
  getComponentValue: (r: Record) => any;
18
19
  renderExport: (value: unknown, record: Record) => any;
19
- editRender: () => React.JSX.Element;
20
+ editRender: (p: any) => React.JSX.Element;
20
21
  filterConfig: (item: ColumnConfig) => {
21
22
  searchDefaultConditions: "between";
22
23
  type: string;
@@ -27,6 +27,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
27
27
  _defineProperty(this, "canSort", void 0);
28
28
  _defineProperty(this, "children", void 0);
29
29
  _defineProperty(this, "componentConfig", void 0);
30
+ _defineProperty(this, "dataType", void 0);
30
31
  _defineProperty(this, "renderClient", function (record) {
31
32
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
32
33
  id: _this.id,
@@ -49,12 +50,13 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
49
50
  var _record2;
50
51
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_actualPayment")]) !== null && _record2 !== void 0 ? _record2 : '--';
51
52
  });
52
- _defineProperty(this, "editRender", function () {
53
+ _defineProperty(this, "editRender", function (p) {
53
54
  var _this$componentConfig, _this$componentConfig2;
54
55
  return /*#__PURE__*/React.createElement(GetFormItem, {
55
56
  title: _this.name,
56
57
  name: _this.id,
57
58
  rules: _this.rules,
59
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
58
60
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
59
61
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
60
62
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
@@ -135,6 +137,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
135
137
  this.sortField = "".concat(options.id, "_actualPayment");
136
138
  this.name = options.name;
137
139
  this.type = options.type;
140
+ this.dataType = 'number';
138
141
  this.isCombinationComponent = false;
139
142
  this.canSort = true;
140
143
  this.children = [];
@@ -13,6 +13,7 @@ declare class Address implements ComponentInterface {
13
13
  children: ComponentInterface[];
14
14
  componentConfig: ComponentInterface["componentConfig"];
15
15
  addressDateInstance: InstanceType<typeof AddressData>;
16
+ dataType: ComponentInterface['dataType'];
16
17
  constructor(options: PickOption);
17
18
  /**
18
19
  * 通过值计算展示内容
@@ -26,7 +27,7 @@ declare class Address implements ComponentInterface {
26
27
  renderLog: (r: Record) => React.JSX.Element | null;
27
28
  getComponentValue: (r: Record) => any[];
28
29
  renderExport: (value: any, record: any) => string;
29
- editRender: () => React.JSX.Element;
30
+ editRender: (p: any) => React.JSX.Element;
30
31
  filterConfig: (item: ColumnConfig) => {
31
32
  searchDefaultConditions: "eq";
32
33
  type: string;
@@ -27,6 +27,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
27
27
  _defineProperty(this, "children", void 0);
28
28
  _defineProperty(this, "componentConfig", void 0);
29
29
  _defineProperty(this, "addressDateInstance", void 0);
30
+ _defineProperty(this, "dataType", void 0);
30
31
  _defineProperty(this, "getValue", function (value) {
31
32
  var _value$map;
32
33
  return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (suffix) {
@@ -76,12 +77,13 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
76
77
  return _this.addressDateInstance.getNameByCode(suffix || '');
77
78
  }).join('');
78
79
  });
79
- _defineProperty(this, "editRender", function () {
80
+ _defineProperty(this, "editRender", function (p) {
80
81
  var _this$componentConfig, _this$componentConfig2;
81
82
  return /*#__PURE__*/React.createElement(GetFormItem, {
82
83
  title: _this.name,
83
84
  name: _this.id,
84
85
  rules: _this.rules,
86
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
85
87
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
86
88
  component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
87
89
  });
@@ -119,6 +121,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
119
121
  this.id = options.id;
120
122
  this.sortField = "".concat(options.id, "_basicDistrict");
121
123
  this.type = options.type;
124
+ this.dataType = 'object';
122
125
  this.isCombinationComponent = false;
123
126
  this.canSort = true;
124
127
  this.children = [];
@@ -14,6 +14,7 @@ declare class Alipay implements ComponentInterface {
14
14
  isCombinationComponent: boolean;
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
+ dataType: ComponentInterface['dataType'];
17
18
  constructor(options: PickOption);
18
19
  renderClient: (record: Record) => React.JSX.Element;
19
20
  renderPc: () => null;
@@ -23,7 +24,7 @@ declare class Alipay implements ComponentInterface {
23
24
  user: any;
24
25
  };
25
26
  renderExport: () => null;
26
- editRender: (value: any) => React.JSX.Element;
27
+ editRender: (p: any) => React.JSX.Element;
27
28
  filterConfig: (item: ColumnConfig) => {
28
29
  searchDefaultConditions: "eq";
29
30
  type: string;
@@ -28,6 +28,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
28
28
  _defineProperty(this, "isCombinationComponent", void 0);
29
29
  _defineProperty(this, "canSort", void 0);
30
30
  _defineProperty(this, "children", void 0);
31
+ _defineProperty(this, "dataType", void 0);
31
32
  _defineProperty(this, "renderClient", function (record) {
32
33
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
33
34
  });
@@ -46,15 +47,16 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
46
47
  _defineProperty(this, "renderExport", function () {
47
48
  return null;
48
49
  });
49
- _defineProperty(this, "editRender", function (value) {
50
+ _defineProperty(this, "editRender", function (p) {
50
51
  var _this$componentConfig, _this$componentConfig2;
51
52
  return /*#__PURE__*/React.createElement(GetFormItem, {
52
53
  title: _this.name,
53
54
  name: _this.id,
54
55
  rules: _this.rules,
56
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
55
57
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
56
58
  component: /*#__PURE__*/React.createElement(AliPay, _extends({}, _this.componentConfig, {
57
- onBlur: value === null || value === void 0 ? void 0 : value.onBlur
59
+ onBlur: p === null || p === void 0 ? void 0 : p.onBlur
58
60
  }))
59
61
  });
60
62
  });
@@ -70,6 +72,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
70
72
  this.componentConfig = options.componentConfig;
71
73
  this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
72
74
  this.alipayName = new EAlipayName(_objectSpread({}, options));
75
+ this.dataType = 'object';
73
76
  this.children = [this.alipayName, this.alipayAccount];
74
77
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
75
78
  validator: function validator(_, value) {
@@ -13,13 +13,14 @@ declare class EAlipayAccount implements ComponentInterface {
13
13
  isCombinationComponent: boolean;
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
+ dataType: ComponentInterface['dataType'];
16
17
  constructor(options: PickOption);
17
18
  renderClient: (record: Record) => React.JSX.Element | null;
18
19
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
20
  renderLog: (r: Record) => React.JSX.Element | null;
20
21
  getComponentValue: (r: Record) => any;
21
22
  renderExport: (value?: string) => string;
22
- editRender: () => React.JSX.Element;
23
+ editRender: (p: any) => React.JSX.Element;
23
24
  filterConfig: (item: ColumnConfig) => {
24
25
  searchDefaultConditions: "eq";
25
26
  type: string;
@@ -29,6 +29,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
29
29
  _defineProperty(this, "isCombinationComponent", void 0);
30
30
  _defineProperty(this, "canSort", void 0);
31
31
  _defineProperty(this, "children", void 0);
32
+ _defineProperty(this, "dataType", void 0);
32
33
  _defineProperty(this, "renderClient", function (record) {
33
34
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
34
35
  id: _this.id,
@@ -56,12 +57,13 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
56
57
  _defineProperty(this, "renderExport", function (value) {
57
58
  return value !== null && value !== void 0 ? value : '--';
58
59
  });
59
- _defineProperty(this, "editRender", function () {
60
+ _defineProperty(this, "editRender", function (p) {
60
61
  var _this$componentConfig, _this$componentConfig2;
61
62
  return /*#__PURE__*/React.createElement(GetFormItem, {
62
63
  title: _this.name,
63
64
  name: _this.id,
64
65
  rules: _this.rules,
66
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
65
67
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
66
68
  component: /*#__PURE__*/React.createElement(AlipayAccount, _this.componentConfig)
67
69
  });
@@ -88,6 +90,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
88
90
  this.canSort = true;
89
91
  this.children = [];
90
92
  this.align = 'left';
93
+ this.dataType = 'string';
91
94
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
92
95
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
93
96
  this.rules = [];
@@ -13,13 +13,14 @@ declare class EAlipayAccount implements ComponentInterface {
13
13
  children: ComponentInterface[];
14
14
  align: ALignType;
15
15
  width: number;
16
+ dataType: ComponentInterface['dataType'];
16
17
  constructor(options: PickOption);
17
18
  renderClient: (record: any) => React.JSX.Element | null;
18
19
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
20
  renderLog: (r: Record) => React.JSX.Element | null;
20
21
  getComponentValue: (r: Record) => any;
21
22
  renderExport: (value?: string) => string;
22
- editRender: () => React.JSX.Element;
23
+ editRender: (p: any) => React.JSX.Element;
23
24
  filterConfig: (item: ColumnConfig) => {
24
25
  searchDefaultConditions: "eq";
25
26
  type: string;
@@ -29,6 +29,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
29
29
  _defineProperty(this, "children", void 0);
30
30
  _defineProperty(this, "align", void 0);
31
31
  _defineProperty(this, "width", void 0);
32
+ _defineProperty(this, "dataType", void 0);
32
33
  _defineProperty(this, "renderClient", function (record) {
33
34
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
34
35
  id: _this.id,
@@ -56,12 +57,13 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
56
57
  _defineProperty(this, "renderExport", function (value) {
57
58
  return value !== null && value !== void 0 ? value : '--';
58
59
  });
59
- _defineProperty(this, "editRender", function () {
60
+ _defineProperty(this, "editRender", function (p) {
60
61
  var _this$componentConfig, _this$componentConfig2;
61
62
  return /*#__PURE__*/React.createElement(GetFormItem, {
62
63
  title: _this.name,
63
64
  name: _this.id,
64
65
  rules: _this.rules,
66
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
65
67
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
66
68
  component: /*#__PURE__*/React.createElement(AlipayName, _this.componentConfig)
67
69
  });
@@ -88,6 +90,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
88
90
  this.canSort = true;
89
91
  this.children = [];
90
92
  this.align = 'left';
93
+ this.dataType = 'string';
91
94
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
92
95
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
93
96
  this.rules = [];
@@ -11,6 +11,7 @@ declare class EBuyerNick implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
+ dataType: ComponentInterface['dataType'];
14
15
  constructor(options: PickOption);
15
16
  renderClient: (record: any) => React.JSX.Element | null;
16
17
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -20,7 +21,7 @@ declare class EBuyerNick implements ComponentInterface {
20
21
  buyerOpenUid: any;
21
22
  };
22
23
  renderExport: (value: any, record: any) => any;
23
- editRender: (value: any) => React.JSX.Element;
24
+ editRender: (p: any) => React.JSX.Element;
24
25
  filterConfig: (item: ColumnConfig) => {
25
26
  searchDefaultConditions: "like";
26
27
  type: string;
@@ -28,6 +28,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
28
28
  _defineProperty(this, "isCombinationComponent", void 0);
29
29
  _defineProperty(this, "canSort", void 0);
30
30
  _defineProperty(this, "children", void 0);
31
+ _defineProperty(this, "dataType", void 0);
31
32
  _defineProperty(this, "renderClient", function (record) {
32
33
  var _record$_this$id;
33
34
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -64,17 +65,18 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
64
65
  _defineProperty(this, "renderExport", function (value, record) {
65
66
  return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
66
67
  });
67
- _defineProperty(this, "editRender", function (value) {
68
+ _defineProperty(this, "editRender", function (p) {
68
69
  var _this$componentConfig, _this$componentConfig2, _this$effects3, _this$effects4;
69
70
  return /*#__PURE__*/React.createElement(GetFormItem, {
70
71
  title: _this.name,
71
72
  name: _this.id,
72
73
  rules: _this.rules,
73
74
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
75
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
74
76
  component: /*#__PURE__*/React.createElement(BuyerNick, _extends({}, _this.componentConfig, {
75
77
  shopId: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopId,
76
78
  shopList: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList,
77
- onBlur: value === null || value === void 0 ? void 0 : value.onBlur
79
+ onBlur: p === null || p === void 0 ? void 0 : p.onBlur
78
80
  }))
79
81
  });
80
82
  });
@@ -101,6 +103,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
101
103
  this.isCombinationComponent = false;
102
104
  this.canSort = true;
103
105
  this.children = [];
106
+ this.dataType = 'string';
104
107
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
105
108
  validator: function validator(_, value) {
106
109
  if (!(value !== null && value !== void 0 && value.buyerNick)) {
@@ -10,6 +10,7 @@ declare class BasicCascader implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  canSort: boolean;
12
12
  children: ComponentInterface[];
13
+ dataType: ComponentInterface['dataType'];
13
14
  constructor(options: PickOption);
14
15
  /**
15
16
  * 通过值计算展示内容
@@ -22,7 +23,7 @@ declare class BasicCascader implements ComponentInterface {
22
23
  renderLog: (r: Record) => React.JSX.Element | null;
23
24
  getComponentValue: (r: Record) => any;
24
25
  renderExport: (value: any, record: Record) => string;
25
- editRender: () => React.JSX.Element;
26
+ editRender: (p: any) => React.JSX.Element;
26
27
  filterConfig: (item: ColumnConfig) => {
27
28
  searchDefaultConditions: "eq";
28
29
  type: string;
@@ -26,6 +26,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
26
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
27
  _defineProperty(this, "canSort", void 0);
28
28
  _defineProperty(this, "children", void 0);
29
+ _defineProperty(this, "dataType", void 0);
29
30
  _defineProperty(this, "getValue", function (value) {
30
31
  var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
31
32
  return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
@@ -68,12 +69,13 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
68
69
  return i.label;
69
70
  })) === null || _findLabelBySelectVal6 === void 0 ? void 0 : _findLabelBySelectVal6.join(',');
70
71
  });
71
- _defineProperty(this, "editRender", function () {
72
+ _defineProperty(this, "editRender", function (p) {
72
73
  var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
73
74
  return /*#__PURE__*/React.createElement(GetFormItem, {
74
75
  title: _this.name,
75
76
  name: _this.id,
76
77
  rules: _this.rules,
78
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
77
79
  required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
78
80
  component: /*#__PURE__*/React.createElement(Cascader, _extends({}, _this.componentConfig, {
79
81
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
@@ -135,6 +137,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
135
137
  this.children = [];
136
138
  this.isCombinationComponent = false;
137
139
  this.canSort = true;
140
+ this.dataType = 'object'; // FIXME: 多级下拉这种不知道要如何去做条件判断
138
141
  }
139
142
 
140
143
  /**
@@ -14,6 +14,8 @@ declare class BasicCheckbox implements ComponentInterface {
14
14
  isCombinationComponent: boolean;
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
+ dataType: ComponentInterface['dataType'];
18
+ options: ComponentInterface['options'];
17
19
  constructor(options: PickOption);
18
20
  getValue: (value: Value) => string | null | undefined;
19
21
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -24,7 +26,7 @@ declare class BasicCheckbox implements ComponentInterface {
24
26
  };
25
27
  renderExport: (value: any, record: Record) => string;
26
28
  renderClient: (record: any) => React.JSX.Element | null;
27
- editRender: () => React.JSX.Element;
29
+ editRender: (p: any) => React.JSX.Element;
28
30
  filterConfig: (item: ColumnConfig) => {
29
31
  searchDefaultConditions: "in";
30
32
  type: string;
@@ -14,7 +14,8 @@ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
14
  import { SYMBOL } from "../../constant";
15
15
  var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
16
16
  var _this = this,
17
- _options$componentCon;
17
+ _options$componentCon,
18
+ _this$componentConfig3;
18
19
  _classCallCheck(this, BasicCheckbox);
19
20
  _defineProperty(this, "name", void 0);
20
21
  _defineProperty(this, "id", void 0);
@@ -25,6 +26,8 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
25
26
  _defineProperty(this, "isCombinationComponent", void 0);
26
27
  _defineProperty(this, "canSort", void 0);
27
28
  _defineProperty(this, "children", void 0);
29
+ _defineProperty(this, "dataType", void 0);
30
+ _defineProperty(this, "options", void 0);
28
31
  _defineProperty(this, "getValue", function (value) {
29
32
  var _value$value, _value$value2, _value$value3;
30
33
  if ((value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
@@ -75,12 +78,13 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
75
78
  value: _this.getValue(record === null || record === void 0 ? void 0 : record[_this.id]) || ''
76
79
  }) : null;
77
80
  });
78
- _defineProperty(this, "editRender", function () {
81
+ _defineProperty(this, "editRender", function (p) {
79
82
  var _this$componentConfig, _this$componentConfig2;
80
83
  return /*#__PURE__*/React.createElement(GetFormItem, {
81
84
  title: _this.name,
82
85
  name: _this.id,
83
86
  rules: _this.rules,
87
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
84
88
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
85
89
  component: /*#__PURE__*/React.createElement(ApaasCheckbox, _this.componentConfig)
86
90
  });
@@ -125,5 +129,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
125
129
  return Promise.resolve();
126
130
  }
127
131
  }] : [];
132
+ this.dataType = 'array';
133
+ this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
128
134
  });
129
135
  export default BasicCheckbox;
@@ -13,6 +13,8 @@ declare class CommonDataTime implements ComponentInterface {
13
13
  isCombinationComponent: boolean;
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
+ dataType: ComponentInterface['dataType'];
17
+ format: ComponentInterface['format'];
16
18
  constructor(options: PickOption);
17
19
  getValue: (value: string) => string;
18
20
  renderClient: (record: any) => React.JSX.Element | null;
@@ -26,6 +26,8 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
26
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
27
  _defineProperty(this, "canSort", void 0);
28
28
  _defineProperty(this, "children", void 0);
29
+ _defineProperty(this, "dataType", void 0);
30
+ _defineProperty(this, "format", void 0);
29
31
  _defineProperty(this, "getValue", function (value) {
30
32
  return moment(value).format('YYYY-MM-DD HH:mm:ss');
31
33
  });
@@ -97,5 +99,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
97
99
  this.isCombinationComponent = false;
98
100
  this.canSort = true;
99
101
  this.children = [];
102
+ this.dataType = 'string';
103
+ this.format = 'dateTime';
100
104
  });
101
105
  export default CommonDataTime;
@@ -10,6 +10,8 @@ declare class CompletedUser implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  canSort: boolean;
12
12
  children: ComponentInterface[];
13
+ dataType: ComponentInterface['dataType'];
14
+ options: ComponentInterface['options'];
13
15
  constructor(options: PickOption);
14
16
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
15
17
  renderLog: () => null;
@@ -9,7 +9,8 @@ import React from 'react';
9
9
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
10
  import { SYMBOL } from "../../constant";
11
11
  var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
12
- var _this = this;
12
+ var _this = this,
13
+ _this$effects2;
13
14
  _classCallCheck(this, CompletedUser);
14
15
  _defineProperty(this, "name", void 0);
15
16
  _defineProperty(this, "id", void 0);
@@ -20,6 +21,8 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
20
21
  _defineProperty(this, "isCombinationComponent", void 0);
21
22
  _defineProperty(this, "canSort", void 0);
22
23
  _defineProperty(this, "children", void 0);
24
+ _defineProperty(this, "dataType", void 0);
25
+ _defineProperty(this, "options", void 0);
23
26
  _defineProperty(this, "renderPc", function (value, record) {
24
27
  var _record;
25
28
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
@@ -68,5 +71,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
68
71
  this.isCombinationComponent = false;
69
72
  this.canSort = true;
70
73
  this.children = [];
74
+ this.dataType = 'string';
75
+ this.options = ((_this$effects2 = this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.userList) || [];
71
76
  });
72
77
  export default CompletedUser;
@@ -12,6 +12,8 @@ declare class BasicDataTime implements ComponentInterface {
12
12
  isCombinationComponent: boolean;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
+ dataType: ComponentInterface['dataType'];
16
+ format: ComponentInterface['format'];
15
17
  constructor(options: PickOption);
16
18
  getValue: (value: Value) => string | undefined;
17
19
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,7 +21,7 @@ declare class BasicDataTime implements ComponentInterface {
19
21
  renderLog: (r: Record) => React.JSX.Element | null;
20
22
  getComponentValue: (r: Record) => any;
21
23
  renderExport: (value: any, record: Record) => any;
22
- editRender: () => React.JSX.Element;
24
+ editRender: (p: any) => React.JSX.Element;
23
25
  filterConfig: (item: ColumnConfig) => any;
24
26
  }
25
27
  export default BasicDataTime;
@@ -31,7 +31,11 @@ export var DateTime = function DateTime(_ref) {
31
31
  }));
32
32
  };
33
33
  var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
34
- var _this = this;
34
+ var _this = this,
35
+ _this$componentConfig3,
36
+ _this$componentConfig4,
37
+ _this$componentConfig5,
38
+ _this$componentConfig6;
35
39
  _classCallCheck(this, BasicDataTime);
36
40
  _defineProperty(this, "name", void 0);
37
41
  _defineProperty(this, "id", void 0);
@@ -42,6 +46,8 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
42
46
  _defineProperty(this, "isCombinationComponent", void 0);
43
47
  _defineProperty(this, "canSort", void 0);
44
48
  _defineProperty(this, "children", void 0);
49
+ _defineProperty(this, "dataType", void 0);
50
+ _defineProperty(this, "format", void 0);
45
51
  _defineProperty(this, "getValue", function (value) {
46
52
  return Array.isArray(value) ? value.join('~') : value;
47
53
  });
@@ -71,12 +77,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
71
77
  }
72
78
  return Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) ? record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")].join('~') : record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")];
73
79
  });
74
- _defineProperty(this, "editRender", function () {
80
+ _defineProperty(this, "editRender", function (p) {
75
81
  var _this$componentConfig, _this$componentConfig2;
76
82
  return /*#__PURE__*/React.createElement(GetFormItem, {
77
83
  title: _this.name,
78
84
  name: _this.id,
79
85
  rules: _this.rules,
86
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
80
87
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
81
88
  component: /*#__PURE__*/React.createElement(DateTime, _this.componentConfig)
82
89
  });
@@ -124,5 +131,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
124
131
  this.isCombinationComponent = false;
125
132
  this.canSort = true;
126
133
  this.children = [];
134
+ this.dataType = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && (_this$componentConfig4 = _this$componentConfig3.dateType) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.includes('RANGE') ? 'range' : 'string';
135
+ this.format = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && (_this$componentConfig6 = _this$componentConfig5.dateType) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.includes('DATE_TIME') ? 'dateTime' : 'date';
127
136
  });
128
137
  export default BasicDataTime;
@@ -11,13 +11,14 @@ declare class EItemEncode implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
+ dataType: ComponentInterface['dataType'];
14
15
  constructor(options: PickOption);
15
16
  renderClient: (record: any) => React.JSX.Element | null;
16
17
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
17
18
  renderLog: (r: Record) => React.JSX.Element | null;
18
19
  getComponentValue: (r: Record) => any;
19
20
  renderExport: (value: unknown, record: Record) => any;
20
- editRender: () => React.JSX.Element;
21
+ editRender: (p: any) => React.JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
22
23
  searchDefaultConditions: "like";
23
24
  type: string;
@@ -27,6 +27,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
27
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
28
  _defineProperty(this, "canSort", void 0);
29
29
  _defineProperty(this, "children", void 0);
30
+ _defineProperty(this, "dataType", void 0);
30
31
  _defineProperty(this, "renderClient", function (record) {
31
32
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
32
33
  id: _this.id,
@@ -60,13 +61,14 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
60
61
  return item.outerId;
61
62
  }).join(' ');
62
63
  });
63
- _defineProperty(this, "editRender", function () {
64
+ _defineProperty(this, "editRender", function (p) {
64
65
  var _this$effects, _this$effects2;
65
66
  return /*#__PURE__*/React.createElement(GetFormItem, {
66
67
  title: _this.name,
67
68
  name: _this.id,
68
69
  rules: _this.rules,
69
70
  required: false,
71
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
70
72
  component: /*#__PURE__*/React.createElement(ItemEncode, _extends({}, _this.componentConfig, {
71
73
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
72
74
  shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
@@ -118,5 +120,6 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
118
120
  return Promise.resolve();
119
121
  }
120
122
  }] : [];
123
+ this.dataType = 'object';
121
124
  });
122
125
  export default EItemEncode;
@@ -11,13 +11,14 @@ declare class EItemId implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
+ dataType: ComponentInterface['dataType'];
14
15
  constructor(options: PickOption);
15
16
  renderClient: (record: any) => React.JSX.Element | null;
16
17
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
17
18
  renderLog: (r: Record) => React.JSX.Element | null;
18
19
  getComponentValue: (r: Record) => any;
19
20
  renderExport: (value: any, record: any) => any;
20
- editRender: () => React.JSX.Element;
21
+ editRender: (p: any) => React.JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
22
23
  searchDefaultConditions: "like";
23
24
  type: string;
@@ -27,6 +27,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
27
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
28
  _defineProperty(this, "canSort", void 0);
29
29
  _defineProperty(this, "children", void 0);
30
+ _defineProperty(this, "dataType", void 0);
30
31
  _defineProperty(this, "renderClient", function (record) {
31
32
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
32
33
  id: _this.id,
@@ -60,13 +61,14 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
60
61
  return i.numIid;
61
62
  }).join('\n');
62
63
  });
63
- _defineProperty(this, "editRender", function () {
64
+ _defineProperty(this, "editRender", function (p) {
64
65
  var _this$componentConfig, _this$effects, _this$effects2;
65
66
  return /*#__PURE__*/React.createElement(GetFormItem, {
66
67
  title: _this.name,
67
68
  name: _this.id,
68
69
  rules: _this.rules,
69
70
  required: false,
71
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
70
72
  component: /*#__PURE__*/React.createElement(ItemId, _extends({}, _this.componentConfig, {
71
73
  maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
72
74
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -119,5 +121,6 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
119
121
  return Promise.resolve();
120
122
  }
121
123
  }] : [];
124
+ this.dataType = 'object';
122
125
  });
123
126
  export default EItemId;