@kmkf-fe-packages/services-components 0.7.3-alpha.0 → 0.7.3-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.
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 -2
  3. package/dist/esm/components/Address/index.d.ts +10 -1
  4. package/dist/esm/components/Address/index.js +16 -2
  5. package/dist/esm/components/Alipay/index.d.ts +1 -0
  6. package/dist/esm/components/Alipay/index.js +2 -0
  7. package/dist/esm/components/AlipayAccount/index.d.ts +2 -1
  8. package/dist/esm/components/AlipayAccount/index.js +3 -1
  9. package/dist/esm/components/AlipayName/index.d.ts +2 -1
  10. package/dist/esm/components/AlipayName/index.js +3 -1
  11. package/dist/esm/components/BuyerNick/index.d.ts +2 -1
  12. package/dist/esm/components/BuyerNick/index.js +3 -1
  13. package/dist/esm/components/Cascader/index.d.ts +10 -1
  14. package/dist/esm/components/Cascader/index.js +16 -2
  15. package/dist/esm/components/Checkbox/index.d.ts +4 -1
  16. package/dist/esm/components/Checkbox/index.js +9 -5
  17. package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
  18. package/dist/esm/components/CommonDataTime/index.js +9 -0
  19. package/dist/esm/components/CompletedUser/index.d.ts +7 -4
  20. package/dist/esm/components/CompletedUser/index.js +5 -1
  21. package/dist/esm/components/DataTime/index.d.ts +5 -1
  22. package/dist/esm/components/DataTime/index.js +13 -2
  23. package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
  24. package/dist/esm/components/EItemEnCode/index.js +4 -2
  25. package/dist/esm/components/EItemId/index.d.ts +2 -1
  26. package/dist/esm/components/EItemId/index.js +4 -2
  27. package/dist/esm/components/EItemSelect/index.d.ts +1 -0
  28. package/dist/esm/components/EItemSelect/index.js +2 -0
  29. package/dist/esm/components/ErpTradeId/index.d.ts +2 -0
  30. package/dist/esm/components/ErpTradeId/index.js +6 -1
  31. package/dist/esm/components/Express/index.d.ts +4 -1
  32. package/dist/esm/components/Express/index.js +5 -1
  33. package/dist/esm/components/ExpressCode/index.d.ts +2 -1
  34. package/dist/esm/components/ExpressCode/index.js +3 -1
  35. package/dist/esm/components/FlowStatusSelect/index.d.ts +7 -4
  36. package/dist/esm/components/FlowStatusSelect/index.js +10 -6
  37. package/dist/esm/components/Grade/index.d.ts +1 -0
  38. package/dist/esm/components/Grade/index.js +2 -0
  39. package/dist/esm/components/Handler/index.d.ts +7 -4
  40. package/dist/esm/components/Handler/index.js +5 -1
  41. package/dist/esm/components/Input/index.d.ts +2 -1
  42. package/dist/esm/components/Input/index.js +4 -2
  43. package/dist/esm/components/JstItemSelect/index.d.ts +2 -1
  44. package/dist/esm/components/JstItemSelect/index.js +4 -2
  45. package/dist/esm/components/JstLogistics/index.d.ts +6 -3
  46. package/dist/esm/components/JstLogistics/index.js +6 -2
  47. package/dist/esm/components/JstSendGood/index.d.ts +2 -1
  48. package/dist/esm/components/JstSendGood/index.js +4 -2
  49. package/dist/esm/components/JstSupply/index.d.ts +2 -1
  50. package/dist/esm/components/JstSupply/index.js +4 -2
  51. package/dist/esm/components/Logistics/index.d.ts +4 -1
  52. package/dist/esm/components/Logistics/index.js +2 -0
  53. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -0
  54. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
  55. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +7 -4
  56. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +5 -1
  57. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +7 -4
  58. package/dist/esm/components/LogisticsInterception/InterceptType.js +5 -1
  59. package/dist/esm/components/LogisticsInterception/index.d.ts +10 -5
  60. package/dist/esm/components/LogisticsInterception/index.js +2 -0
  61. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -1
  62. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -1
  63. package/dist/esm/components/MultSelect/index.d.ts +4 -1
  64. package/dist/esm/components/MultSelect/index.js +6 -2
  65. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -1
  66. package/dist/esm/components/Ordinary/OrdinaryHeader.js +6 -4
  67. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +2 -1
  68. package/dist/esm/components/Ordinary/OrdinaryMoney.js +6 -4
  69. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -1
  70. package/dist/esm/components/Ordinary/OrdinarySerial.js +3 -1
  71. package/dist/esm/components/Ordinary/index.d.ts +2 -1
  72. package/dist/esm/components/Ordinary/index.js +2 -0
  73. package/dist/esm/components/Payment/AlipayNick.d.ts +2 -1
  74. package/dist/esm/components/Payment/AlipayNick.js +3 -1
  75. package/dist/esm/components/Payment/AlipayNo.d.ts +2 -1
  76. package/dist/esm/components/Payment/AlipayNo.js +3 -1
  77. package/dist/esm/components/Payment/AlipayTime.d.ts +2 -0
  78. package/dist/esm/components/Payment/AlipayTime.js +9 -0
  79. package/dist/esm/components/Payment/BuyerNick.d.ts +2 -1
  80. package/dist/esm/components/Payment/BuyerNick.js +3 -1
  81. package/dist/esm/components/Payment/PaymentAmount.d.ts +2 -1
  82. package/dist/esm/components/Payment/PaymentAmount.js +3 -1
  83. package/dist/esm/components/Payment/PaymentStatus.d.ts +7 -4
  84. package/dist/esm/components/Payment/PaymentStatus.js +5 -1
  85. package/dist/esm/components/Payment/PaymentTid.d.ts +2 -0
  86. package/dist/esm/components/Payment/PaymentTid.js +5 -0
  87. package/dist/esm/components/Payment/index.d.ts +8 -5
  88. package/dist/esm/components/Payment/index.js +2 -0
  89. package/dist/esm/components/Picture/index.d.ts +1 -0
  90. package/dist/esm/components/Picture/index.js +2 -0
  91. package/dist/esm/components/PlatForm/index.d.ts +1 -0
  92. package/dist/esm/components/PlatForm/index.js +2 -0
  93. package/dist/esm/components/Radio/index.d.ts +4 -1
  94. package/dist/esm/components/Radio/index.js +9 -5
  95. package/dist/esm/components/Rate/index.d.ts +1 -0
  96. package/dist/esm/components/Rate/index.js +2 -0
  97. package/dist/esm/components/ReceiverAddress/index.d.ts +1 -0
  98. package/dist/esm/components/ReceiverAddress/index.js +2 -0
  99. package/dist/esm/components/ReceiverMobile/index.d.ts +2 -1
  100. package/dist/esm/components/ReceiverMobile/index.js +4 -2
  101. package/dist/esm/components/ReceiverName/index.d.ts +2 -1
  102. package/dist/esm/components/ReceiverName/index.js +4 -2
  103. package/dist/esm/components/Remark/index.d.ts +2 -1
  104. package/dist/esm/components/Remark/index.js +4 -2
  105. package/dist/esm/components/ReturnLogistics/index.d.ts +4 -1
  106. package/dist/esm/components/ReturnLogistics/index.js +2 -0
  107. package/dist/esm/components/Select/index.d.ts +4 -1
  108. package/dist/esm/components/Select/index.js +6 -2
  109. package/dist/esm/components/ShopInput/index.d.ts +6 -2
  110. package/dist/esm/components/ShopInput/index.js +15 -2
  111. package/dist/esm/components/ShopName/index.d.ts +2 -1
  112. package/dist/esm/components/ShopName/index.js +4 -2
  113. package/dist/esm/components/Submitter/index.d.ts +7 -4
  114. package/dist/esm/components/Submitter/index.js +5 -1
  115. package/dist/esm/components/SystemOrderNo/index.d.ts +2 -0
  116. package/dist/esm/components/SystemOrderNo/index.js +6 -1
  117. package/dist/esm/components/TemplateSelect/index.d.ts +1 -0
  118. package/dist/esm/components/TemplateSelect/index.js +2 -0
  119. package/dist/esm/components/TextArea/index.d.ts +2 -1
  120. package/dist/esm/components/TextArea/index.js +4 -2
  121. package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -1
  122. package/dist/esm/components/ThirdItemSelect/index.js +4 -2
  123. package/dist/esm/components/TradeDateTime/index.d.ts +2 -0
  124. package/dist/esm/components/TradeDateTime/index.js +12 -2
  125. package/dist/esm/components/TradeId/index.d.ts +2 -0
  126. package/dist/esm/components/TradeId/index.js +6 -1
  127. package/dist/esm/components/WorkOrderId/index.d.ts +2 -1
  128. package/dist/esm/components/WorkOrderId/index.js +10 -2
  129. package/dist/esm/type.d.ts +5 -2
  130. package/package.json +2 -2
@@ -6,6 +6,7 @@ declare class ActualPayment implements ComponentInterface {
6
6
  type: string;
7
7
  rules: any[];
8
8
  isCombinationComponent: boolean;
9
+ canSort: boolean;
9
10
  children: ComponentInterface[];
10
11
  componentConfig: ComponentInterface["componentConfig"];
11
12
  constructor(options: PickOption);
@@ -20,7 +21,7 @@ declare class ActualPayment implements ComponentInterface {
20
21
  type: string;
21
22
  id: string;
22
23
  name: string;
23
- filterComponentType: "Input";
24
+ filterComponentType: "Rate";
24
25
  filterFn: (value: string) => (i: Record) => boolean;
25
26
  };
26
27
  }
@@ -20,6 +20,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
20
20
  _defineProperty(this, "type", void 0);
21
21
  _defineProperty(this, "rules", void 0);
22
22
  _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "canSort", void 0);
23
24
  _defineProperty(this, "children", void 0);
24
25
  _defineProperty(this, "componentConfig", void 0);
25
26
  _defineProperty(this, "renderClient", function (record) {
@@ -60,11 +61,11 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
60
61
  return {
61
62
  searchDefaultConditions: SYMBOL.between,
62
63
  type: item.type,
63
- id: item.id,
64
+ id: "".concat(item.id, "_actualPayment"),
64
65
  // 过滤组件id
65
66
  name: item.name,
66
67
  // 过滤组件名称
67
- filterComponentType: 'Input',
68
+ filterComponentType: 'Rate',
68
69
  filterFn: function filterFn(value) {
69
70
  return function (i) {
70
71
  return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'actualPayment')).includes(value);
@@ -76,6 +77,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
76
77
  this.name = options.name;
77
78
  this.type = options.type;
78
79
  this.isCombinationComponent = false;
80
+ this.canSort = true;
79
81
  this.children = [];
80
82
  this.componentConfig = options.componentConfig;
81
83
  this.rules = [{
@@ -8,6 +8,7 @@ declare class Address implements ComponentInterface {
8
8
  type: string;
9
9
  rules: any[];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  componentConfig: ComponentInterface["componentConfig"];
13
14
  addressDateInstance: InstanceType<typeof AddressData>;
@@ -31,8 +32,16 @@ declare class Address implements ComponentInterface {
31
32
  id: string;
32
33
  name: string;
33
34
  filterComponentType: "Cascader";
34
- options: any;
35
+ props: {
36
+ options: any;
37
+ fieldNames: {
38
+ label: string;
39
+ value: string;
40
+ children: string;
41
+ };
42
+ };
35
43
  filterFn: (value: string) => (i: Record) => boolean;
44
+ formatFilterValue: (val: Array<number>) => number | undefined;
36
45
  };
37
46
  }
38
47
  export default Address;
@@ -22,6 +22,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
22
22
  _defineProperty(this, "type", void 0);
23
23
  _defineProperty(this, "rules", void 0);
24
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "canSort", void 0);
25
26
  _defineProperty(this, "children", void 0);
26
27
  _defineProperty(this, "componentConfig", void 0);
27
28
  _defineProperty(this, "addressDateInstance", void 0);
@@ -88,16 +89,28 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
88
89
  return {
89
90
  searchDefaultConditions: SYMBOL.eq,
90
91
  type: item.type,
91
- id: item.id,
92
+ id: "".concat(item.id, "_basicDistrict"),
92
93
  // 过滤组件id
93
94
  name: item.name,
94
95
  // 过滤组件名称
95
96
  filterComponentType: 'Cascader',
96
- options: _this.addressDateInstance.addressOptions || [],
97
+ props: {
98
+ options: _this.addressDateInstance.addressOptions || [],
99
+ fieldNames: {
100
+ label: 'label',
101
+ value: 'value',
102
+ children: 'children'
103
+ }
104
+ },
97
105
  filterFn: function filterFn(value) {
98
106
  return function (i) {
99
107
  return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
100
108
  };
109
+ },
110
+ formatFilterValue: function formatFilterValue(val) {
111
+ if ((val === null || val === void 0 ? void 0 : val.length) > 2) {
112
+ return val === null || val === void 0 ? void 0 : val[2];
113
+ }
101
114
  }
102
115
  };
103
116
  });
@@ -105,6 +118,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
105
118
  this.id = options.id;
106
119
  this.type = options.type;
107
120
  this.isCombinationComponent = false;
121
+ this.canSort = true;
108
122
  this.children = [];
109
123
  this.rules = [];
110
124
  this.componentConfig = options.componentConfig;
@@ -11,6 +11,7 @@ declare class Alipay implements ComponentInterface {
11
11
  alipayAccount: EAlipayAccount;
12
12
  alipayName: EAlipayName;
13
13
  isCombinationComponent: boolean;
14
+ canSort: boolean;
14
15
  children: ComponentInterface[];
15
16
  constructor(options: PickOption);
16
17
  renderClient: (record: Record) => React.JSX.Element;
@@ -25,6 +25,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
25
25
  _defineProperty(this, "alipayAccount", void 0);
26
26
  _defineProperty(this, "alipayName", void 0);
27
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "canSort", void 0);
28
29
  _defineProperty(this, "children", void 0);
29
30
  _defineProperty(this, "renderClient", function (record) {
30
31
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
@@ -63,6 +64,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
63
64
  this.id = options.id;
64
65
  this.type = options.type;
65
66
  this.isCombinationComponent = true;
67
+ this.canSort = false;
66
68
  this.componentConfig = options.componentConfig;
67
69
  this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
68
70
  this.alipayName = new EAlipayName(_objectSpread({}, options));
@@ -10,6 +10,7 @@ declare class EAlipayAccount implements ComponentInterface {
10
10
  align: ALignType;
11
11
  width: number;
12
12
  isCombinationComponent: boolean;
13
+ canSort: boolean;
13
14
  children: ComponentInterface[];
14
15
  constructor(options: PickOption);
15
16
  renderClient: (record: Record) => React.JSX.Element | null;
@@ -19,7 +20,7 @@ declare class EAlipayAccount implements ComponentInterface {
19
20
  renderExport: (value?: string) => string;
20
21
  editRender: () => React.JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "eq";
23
24
  type: string;
24
25
  id: string;
25
26
  name: string;
@@ -26,6 +26,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
26
26
  _defineProperty(this, "align", void 0);
27
27
  _defineProperty(this, "width", void 0);
28
28
  _defineProperty(this, "isCombinationComponent", void 0);
29
+ _defineProperty(this, "canSort", void 0);
29
30
  _defineProperty(this, "children", 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, {
@@ -66,7 +67,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
66
67
  });
67
68
  _defineProperty(this, "filterConfig", function (item) {
68
69
  return {
69
- searchDefaultConditions: SYMBOL.in,
70
+ searchDefaultConditions: SYMBOL.eq,
70
71
  type: item.type,
71
72
  id: "".concat(item.id, "_alipayAccount"),
72
73
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
@@ -82,6 +83,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
82
83
  this.id = "".concat(options.id, "_alipayAccount");
83
84
  this.type = options.type;
84
85
  this.isCombinationComponent = false;
86
+ this.canSort = true;
85
87
  this.children = [];
86
88
  this.align = 'left';
87
89
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
@@ -8,6 +8,7 @@ declare class EAlipayAccount implements ComponentInterface {
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  effects: ComponentInterface["effects"];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  align: ALignType;
13
14
  width: number;
@@ -19,7 +20,7 @@ declare class EAlipayAccount implements ComponentInterface {
19
20
  renderExport: (value?: string) => string;
20
21
  editRender: () => React.JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "in";
23
+ searchDefaultConditions: "eq";
23
24
  type: string;
24
25
  id: string;
25
26
  name: string;
@@ -24,6 +24,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
24
24
  _defineProperty(this, "componentConfig", void 0);
25
25
  _defineProperty(this, "effects", void 0);
26
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "canSort", void 0);
27
28
  _defineProperty(this, "children", void 0);
28
29
  _defineProperty(this, "align", void 0);
29
30
  _defineProperty(this, "width", void 0);
@@ -66,7 +67,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
66
67
  });
67
68
  _defineProperty(this, "filterConfig", function (item) {
68
69
  return {
69
- searchDefaultConditions: SYMBOL.in,
70
+ searchDefaultConditions: SYMBOL.eq,
70
71
  type: item.type,
71
72
  id: "".concat(item.id, "_alipayName"),
72
73
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
@@ -82,6 +83,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
82
83
  this.id = "".concat(options.id, "_alipayName");
83
84
  this.type = options.type;
84
85
  this.isCombinationComponent = false;
86
+ this.canSort = true;
85
87
  this.children = [];
86
88
  this.align = 'left';
87
89
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
@@ -8,6 +8,7 @@ declare class EBuyerNick implements ComponentInterface {
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  effects: ComponentInterface["effects"];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  constructor(options: PickOption);
13
14
  renderClient: (record: any) => React.JSX.Element | null;
@@ -20,7 +21,7 @@ declare class EBuyerNick implements ComponentInterface {
20
21
  renderExport: (value: any, record: any) => any;
21
22
  editRender: (value: any) => React.JSX.Element;
22
23
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "in";
24
+ searchDefaultConditions: "like";
24
25
  type: string;
25
26
  id: string;
26
27
  name: string;
@@ -25,6 +25,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
25
25
  _defineProperty(this, "componentConfig", void 0);
26
26
  _defineProperty(this, "effects", void 0);
27
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "canSort", void 0);
28
29
  _defineProperty(this, "children", void 0);
29
30
  _defineProperty(this, "renderClient", function (record) {
30
31
  var _record$_this$id;
@@ -77,7 +78,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
77
78
  });
78
79
  _defineProperty(this, "filterConfig", function (item) {
79
80
  return {
80
- searchDefaultConditions: SYMBOL.in,
81
+ searchDefaultConditions: SYMBOL.like,
81
82
  type: item.type,
82
83
  id: "".concat(item.id, "_buyerNick"),
83
84
  // 过滤组件id
@@ -95,6 +96,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
95
96
  this.id = options.id;
96
97
  this.type = options.type;
97
98
  this.isCombinationComponent = false;
99
+ this.canSort = true;
98
100
  this.children = [];
99
101
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
100
102
  validator: function validator(_, value) {
@@ -7,6 +7,7 @@ declare class BasicCascader implements ComponentInterface {
7
7
  rules: any[];
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  isCombinationComponent: boolean;
10
+ canSort: boolean;
10
11
  children: ComponentInterface[];
11
12
  constructor(options: PickOption);
12
13
  /**
@@ -27,8 +28,16 @@ declare class BasicCascader implements ComponentInterface {
27
28
  id: string;
28
29
  name: string;
29
30
  filterComponentType: "Cascader";
30
- options: any;
31
+ props: {
32
+ options: any;
33
+ fieldNames: {
34
+ label: string;
35
+ value: string;
36
+ children: string;
37
+ };
38
+ };
31
39
  filterFn: (value: string) => (i: Record) => boolean;
40
+ formatFilterValue: (val: Array<string>) => string | undefined;
32
41
  };
33
42
  }
34
43
  export default BasicCascader;
@@ -23,6 +23,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
23
23
  _defineProperty(this, "rules", void 0);
24
24
  _defineProperty(this, "componentConfig", void 0);
25
25
  _defineProperty(this, "isCombinationComponent", void 0);
26
+ _defineProperty(this, "canSort", void 0);
26
27
  _defineProperty(this, "children", void 0);
27
28
  _defineProperty(this, "getValue", function (value) {
28
29
  var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
@@ -90,16 +91,28 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
90
91
  return {
91
92
  searchDefaultConditions: SYMBOL.eq,
92
93
  type: item.type,
93
- id: item.id,
94
+ id: "".concat(item.id, "_multSelect"),
94
95
  // 过滤组件id
95
96
  name: item.name,
96
97
  // 过滤组件名称
97
98
  filterComponentType: 'Cascader',
98
- options: transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []),
99
+ props: {
100
+ options: transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []),
101
+ fieldNames: {
102
+ label: 'label',
103
+ value: 'actived',
104
+ children: 'children'
105
+ }
106
+ },
99
107
  filterFn: function filterFn(value) {
100
108
  return function (i) {
101
109
  return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
102
110
  };
111
+ },
112
+ formatFilterValue: function formatFilterValue(val) {
113
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
114
+ return val[val.length - 1];
115
+ }
103
116
  }
104
117
  };
105
118
  });
@@ -110,6 +123,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
110
123
  this.rules = [];
111
124
  this.children = [];
112
125
  this.isCombinationComponent = false;
126
+ this.canSort = true;
113
127
  }
114
128
 
115
129
  /**
@@ -11,6 +11,7 @@ declare class BasicCheckbox implements ComponentInterface {
11
11
  rules: any[];
12
12
  componentConfig: ComponentInterface["componentConfig"];
13
13
  isCombinationComponent: boolean;
14
+ canSort: boolean;
14
15
  children: ComponentInterface[];
15
16
  constructor(options: PickOption);
16
17
  getValue: (value: Value) => string | null | undefined;
@@ -29,7 +30,9 @@ declare class BasicCheckbox implements ComponentInterface {
29
30
  id: string;
30
31
  name: string;
31
32
  filterComponentType: "MultipleSelect";
32
- options: any[] | undefined;
33
+ props: {
34
+ options: any[] | undefined;
35
+ };
33
36
  filterFn: (value: string) => (i: Record) => boolean;
34
37
  };
35
38
  }
@@ -22,6 +22,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
22
22
  _defineProperty(this, "rules", void 0);
23
23
  _defineProperty(this, "componentConfig", void 0);
24
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "canSort", void 0);
25
26
  _defineProperty(this, "children", void 0);
26
27
  _defineProperty(this, "getValue", function (value) {
27
28
  var _value$value, _value$value2, _value$value3;
@@ -88,15 +89,17 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
88
89
  return {
89
90
  searchDefaultConditions: SYMBOL.in,
90
91
  type: item.type,
91
- id: item.id,
92
+ id: "".concat(item.id, "_checkbox"),
92
93
  // 过滤组件id
93
94
  name: item.name,
94
95
  // 过滤组件名称
95
96
  filterComponentType: 'MultipleSelect',
96
- options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
97
- label: '其他',
98
- value: '其他'
99
- }) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || [],
97
+ props: {
98
+ options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
99
+ label: '其他',
100
+ value: '其他'
101
+ }) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || []
102
+ },
100
103
  filterFn: function filterFn(value) {
101
104
  return function (i) {
102
105
  return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'checkbox')).length > 0;
@@ -108,6 +111,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
108
111
  this.id = options.id;
109
112
  this.type = options.type;
110
113
  this.isCombinationComponent = false;
114
+ this.canSort = true;
111
115
  this.children = [];
112
116
  this.componentConfig = options.componentConfig;
113
117
  this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
@@ -10,6 +10,7 @@ declare class CommonDataTime implements ComponentInterface {
10
10
  rules: any[];
11
11
  componentConfig: ComponentInterface["componentConfig"];
12
12
  isCombinationComponent: boolean;
13
+ canSort: boolean;
13
14
  children: ComponentInterface[];
14
15
  constructor(options: PickOption);
15
16
  getValue: (value: string) => string;
@@ -26,6 +27,7 @@ declare class CommonDataTime implements ComponentInterface {
26
27
  name: string;
27
28
  filterComponentType: "Date";
28
29
  filterFn: (value: string[]) => (i: Record) => boolean;
30
+ formatFilterValue: (val: Array<any>) => number[] | undefined;
29
31
  };
30
32
  }
31
33
  export default CommonDataTime;
@@ -23,6 +23,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
23
23
  _defineProperty(this, "rules", void 0);
24
24
  _defineProperty(this, "componentConfig", void 0);
25
25
  _defineProperty(this, "isCombinationComponent", void 0);
26
+ _defineProperty(this, "canSort", void 0);
26
27
  _defineProperty(this, "children", void 0);
27
28
  _defineProperty(this, "getValue", function (value) {
28
29
  return moment(value).format('YYYY-MM-DD HH:mm:ss');
@@ -70,6 +71,13 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
70
71
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, '');
71
72
  return _filterFn.filterDateFn(value, recordDateTime);
72
73
  };
74
+ },
75
+ formatFilterValue: function formatFilterValue(val) {
76
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
77
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
78
+ return moment(v).valueOf();
79
+ });
80
+ }
73
81
  }
74
82
  };
75
83
  });
@@ -79,6 +87,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
79
87
  this.componentConfig = options.componentConfig;
80
88
  this.rules = [];
81
89
  this.isCombinationComponent = false;
90
+ this.canSort = true;
82
91
  this.children = [];
83
92
  });
84
93
  export default CommonDataTime;
@@ -7,6 +7,7 @@ declare class CompletedUser implements ComponentInterface {
7
7
  componentConfig: ComponentInterface["componentConfig"];
8
8
  effects: ComponentInterface["effects"];
9
9
  isCombinationComponent: boolean;
10
+ canSort: boolean;
10
11
  children: ComponentInterface[];
11
12
  constructor(options: PickOption);
12
13
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -21,10 +22,12 @@ declare class CompletedUser implements ComponentInterface {
21
22
  id: string;
22
23
  name: string;
23
24
  filterComponentType: "MultipleSelect";
24
- options: {
25
- label: string;
26
- value: string;
27
- }[];
25
+ props: {
26
+ options: {
27
+ label: string;
28
+ value: string;
29
+ }[];
30
+ };
28
31
  filterFn: (value: string) => (i: Record) => boolean;
29
32
  };
30
33
  }
@@ -17,6 +17,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
17
17
  _defineProperty(this, "componentConfig", void 0);
18
18
  _defineProperty(this, "effects", void 0);
19
19
  _defineProperty(this, "isCombinationComponent", void 0);
20
+ _defineProperty(this, "canSort", void 0);
20
21
  _defineProperty(this, "children", void 0);
21
22
  _defineProperty(this, "renderPc", function (value, record) {
22
23
  var _record;
@@ -48,7 +49,9 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
48
49
  name: item.name,
49
50
  // 过滤组件名称
50
51
  filterComponentType: 'MultipleSelect',
51
- options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
52
+ props: {
53
+ options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || []
54
+ },
52
55
  filterFn: function filterFn(value) {
53
56
  return function (i) {
54
57
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
@@ -61,6 +64,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
61
64
  this.type = "COMPLETED_USER_INPUT";
62
65
  this.effects = options.effects;
63
66
  this.isCombinationComponent = false;
67
+ this.canSort = true;
64
68
  this.children = [];
65
69
  });
66
70
  export default CompletedUser;
@@ -9,6 +9,7 @@ declare class BasicDataTime implements ComponentInterface {
9
9
  rules: any[];
10
10
  componentConfig: ComponentInterface["componentConfig"];
11
11
  isCombinationComponent: boolean;
12
+ canSort: boolean;
12
13
  children: ComponentInterface[];
13
14
  constructor(options: PickOption);
14
15
  getValue: (value: Value) => string | undefined;
@@ -24,8 +25,11 @@ declare class BasicDataTime implements ComponentInterface {
24
25
  id: string;
25
26
  name: string;
26
27
  filterComponentType: "Date";
27
- options: any[];
28
+ props: {
29
+ options: any[];
30
+ };
28
31
  filterFn: (value: string[]) => (i: Record) => boolean;
32
+ formatFilterValue: (val: Array<any>) => number[] | undefined;
29
33
  };
30
34
  }
31
35
  export default BasicDataTime;
@@ -39,6 +39,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
39
39
  _defineProperty(this, "rules", void 0);
40
40
  _defineProperty(this, "componentConfig", void 0);
41
41
  _defineProperty(this, "isCombinationComponent", void 0);
42
+ _defineProperty(this, "canSort", void 0);
42
43
  _defineProperty(this, "children", void 0);
43
44
  _defineProperty(this, "getValue", function (value) {
44
45
  return Array.isArray(value) ? value.join('~') : value;
@@ -84,17 +85,26 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
84
85
  return {
85
86
  searchDefaultConditions: SYMBOL.between,
86
87
  type: item.type,
87
- id: item.id,
88
+ id: "".concat(item.id, "_dateTime"),
88
89
  // 过滤组件id
89
90
  name: item.name,
90
91
  // 过滤组件名称
91
92
  filterComponentType: 'Date',
92
- options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
93
+ props: {
94
+ options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
95
+ },
93
96
  filterFn: function filterFn(value) {
94
97
  return function (i) {
95
98
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'dateTime');
96
99
  return _filterFn.filterDateFn(value, recordDateTime);
97
100
  };
101
+ },
102
+ formatFilterValue: function formatFilterValue(val) {
103
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
104
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
105
+ return moment(v).valueOf();
106
+ });
107
+ }
98
108
  }
99
109
  };
100
110
  });
@@ -104,6 +114,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
104
114
  this.componentConfig = options.componentConfig;
105
115
  this.rules = [];
106
116
  this.isCombinationComponent = false;
117
+ this.canSort = true;
107
118
  this.children = [];
108
119
  });
109
120
  export default BasicDataTime;
@@ -8,6 +8,7 @@ declare class EItemEncode implements ComponentInterface {
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  effects: ComponentInterface["effects"];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  constructor(options: PickOption);
13
14
  renderClient: (record: any) => React.JSX.Element | null;
@@ -17,7 +18,7 @@ declare class EItemEncode implements ComponentInterface {
17
18
  renderExport: (value: unknown, record: Record) => any;
18
19
  editRender: () => React.JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
20
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "like";
21
22
  type: string;
22
23
  id: string;
23
24
  name: string;
@@ -24,6 +24,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
24
24
  _defineProperty(this, "componentConfig", void 0);
25
25
  _defineProperty(this, "effects", void 0);
26
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "canSort", void 0);
27
28
  _defineProperty(this, "children", void 0);
28
29
  _defineProperty(this, "renderClient", function (record) {
29
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -74,9 +75,9 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
74
75
  });
75
76
  _defineProperty(this, "filterConfig", function (item) {
76
77
  return {
77
- searchDefaultConditions: SYMBOL.in,
78
+ searchDefaultConditions: SYMBOL.like,
78
79
  type: item.type,
79
- id: item.id,
80
+ id: "".concat(item.id, "_itemList"),
80
81
  // 过滤组件id
81
82
  name: item.name,
82
83
  // 过滤组件名称
@@ -98,6 +99,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
98
99
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
99
100
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
100
101
  this.isCombinationComponent = false;
102
+ this.canSort = true;
101
103
  this.children = [];
102
104
  this.rules = this !== null && this !== void 0 && (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
103
105
  required: true,
@@ -8,6 +8,7 @@ declare class EItemId implements ComponentInterface {
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  effects: ComponentInterface["effects"];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  constructor(options: PickOption);
13
14
  renderClient: (record: any) => React.JSX.Element | null;
@@ -17,7 +18,7 @@ declare class EItemId implements ComponentInterface {
17
18
  renderExport: (value: any, record: any) => any;
18
19
  editRender: () => React.JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
20
- searchDefaultConditions: "in";
21
+ searchDefaultConditions: "like";
21
22
  type: string;
22
23
  id: string;
23
24
  name: string;