cloud-b2b 1.1.46 → 1.1.50

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 (109) hide show
  1. package/es/Area/Area.js +45 -16
  2. package/es/Card/Card.js +4 -3
  3. package/es/CodeInput/CodeInput.js +59 -30
  4. package/es/Control/Control.js +117 -58
  5. package/es/Control/event.js +14 -0
  6. package/es/Enhance/Dialogs.js +21 -6
  7. package/es/Enhance/Loading.js +46 -26
  8. package/es/Enhance/index.js +2 -0
  9. package/es/Header/Header.js +35 -3
  10. package/es/Header/Vertical.js +24 -1
  11. package/es/ImageView/ImageView.js +22 -5
  12. package/es/Indent/Indent.js +7 -3
  13. package/es/InpurCascader/InputCascader.js +36 -10
  14. package/es/InputEditor/InputEditor.js +52 -53
  15. package/es/InputSearch/InputSearch.js +71 -26
  16. package/es/InputSelect/InputSelect.js +48 -17
  17. package/es/InputTreeSelect/InputTreeSelect.js +147 -0
  18. package/es/InputTreeSelect/package.json +6 -0
  19. package/es/InputWriting/InputWriting.js +28 -6
  20. package/es/Layout/Layout.js +59 -28
  21. package/es/LayoutLink/LayoutLink.js +20 -11
  22. package/es/Link/Link.js +27 -4
  23. package/es/Loading/Loading.js +3 -1
  24. package/es/Loading2/Loading2.js +2 -0
  25. package/es/ModalWithDrag/ModalWithDrag.js +8 -3
  26. package/es/ModalWithDrag/drag.js +29 -12
  27. package/es/NumberInput/NumberInput.js +64 -24
  28. package/es/Search/Search.js +164 -54
  29. package/es/Sidebar/Sidebar.js +34 -13
  30. package/es/Sidebar2/Sidebar.js +30 -3
  31. package/es/SuperForm/SuperForm.js +164 -27
  32. package/es/SuperForm2/SuperForm.js +182 -31
  33. package/es/SuperIcon/SuperIcon.js +6 -3
  34. package/es/SuperPagination/SuperPagination.js +32 -15
  35. package/es/SuperTab/SuperTab.js +27 -4
  36. package/es/SuperTab2/SuperTab2.js +33 -11
  37. package/es/SuperTable/DragSortRow.js +34 -6
  38. package/es/SuperTable/FilterDropDown.js +34 -10
  39. package/es/SuperTable/SuperTable.js +216 -84
  40. package/es/SuperTable/fixed.js +9 -1
  41. package/es/SuperTable2/SuperTable2.js +226 -101
  42. package/es/SuperTable2/SuperTableCell.js +60 -16
  43. package/es/SuperTable3/FilterDropDown.js +34 -10
  44. package/es/SuperTable3/SuperTable.js +175 -50
  45. package/es/SuperTable3/fixed.js +9 -1
  46. package/es/SuperToolbar/SuperToolbar.js +49 -21
  47. package/es/SuperUpload/SuperUpload.js +233 -156
  48. package/es/Title/Title.js +15 -12
  49. package/es/Viewer/ImageViews.js +60 -7
  50. package/es/Viewer/Viewer.js +32 -5
  51. package/es/WingBlank/WingBlank.js +6 -2
  52. package/es/helper.js +29 -7
  53. package/es/history.js +2 -3
  54. package/lib/Area/Area.js +64 -16
  55. package/lib/Card/Card.js +13 -3
  56. package/lib/CodeInput/CodeInput.js +77 -30
  57. package/lib/Control/Control.js +160 -58
  58. package/lib/Control/event.js +16 -0
  59. package/lib/Enhance/Dialogs.js +32 -6
  60. package/lib/Enhance/Loading.js +62 -26
  61. package/lib/Enhance/index.js +9 -0
  62. package/lib/Header/Header.js +48 -3
  63. package/lib/Header/Vertical.js +36 -1
  64. package/lib/ImageView/ImageView.js +30 -5
  65. package/lib/Indent/Indent.js +13 -3
  66. package/lib/InpurCascader/InputCascader.js +50 -11
  67. package/lib/InputEditor/InputEditor.js +61 -53
  68. package/lib/InputSearch/InputSearch.js +78 -26
  69. package/lib/InputSelect/InputSelect.js +62 -17
  70. package/lib/InputTreeSelect/InputTreeSelect.js +169 -0
  71. package/lib/InputTreeSelect/package.json +6 -0
  72. package/lib/InputWriting/InputWriting.js +35 -6
  73. package/lib/Layout/Layout.js +76 -28
  74. package/lib/LayoutLink/LayoutLink.js +38 -11
  75. package/lib/Link/Link.js +40 -4
  76. package/lib/Loading/Loading.js +9 -1
  77. package/lib/Loading2/Loading2.js +8 -0
  78. package/lib/ModalWithDrag/ModalWithDrag.js +18 -3
  79. package/lib/ModalWithDrag/drag.js +34 -12
  80. package/lib/NumberInput/NumberInput.js +77 -24
  81. package/lib/Search/Search.js +171 -54
  82. package/lib/Sidebar/Sidebar.js +46 -13
  83. package/lib/Sidebar2/Sidebar.js +42 -3
  84. package/lib/SuperForm/SuperForm.js +162 -27
  85. package/lib/SuperForm2/SuperForm.js +175 -31
  86. package/lib/SuperIcon/SuperIcon.js +14 -3
  87. package/lib/SuperPagination/SuperPagination.js +42 -15
  88. package/lib/SuperTab/SuperTab.js +34 -4
  89. package/lib/SuperTab2/SuperTab2.js +48 -11
  90. package/lib/SuperTable/DragSortRow.js +42 -6
  91. package/lib/SuperTable/FilterDropDown.js +42 -10
  92. package/lib/SuperTable/SuperTable.js +211 -83
  93. package/lib/SuperTable/fixed.js +13 -1
  94. package/lib/SuperTable2/SuperTable2.js +240 -101
  95. package/lib/SuperTable2/SuperTableCell.js +67 -13
  96. package/lib/SuperTable3/FilterDropDown.js +42 -10
  97. package/lib/SuperTable3/SuperTable.js +170 -49
  98. package/lib/SuperTable3/fixed.js +13 -1
  99. package/lib/SuperToolbar/SuperToolbar.js +64 -20
  100. package/lib/SuperUpload/SuperUpload.js +267 -156
  101. package/lib/Title/Title.js +24 -12
  102. package/lib/Viewer/ImageViews.js +63 -7
  103. package/lib/Viewer/Viewer.js +41 -5
  104. package/lib/WingBlank/WingBlank.js +14 -2
  105. package/lib/helper.js +47 -6
  106. package/lib/history.js +5 -0
  107. package/lib/index.js +76 -0
  108. package/lib/variables.js +4 -0
  109. package/package.json +2 -2
@@ -8,7 +8,6 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
8
8
  import _Table from "antd/es/table";
9
9
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/objectWithoutProperties";
10
10
  import _Tooltip from "antd/es/tooltip";
11
- import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/objectDestructuringEmpty";
12
11
  import _extends from "@babel/runtime-corejs3/helpers/extends";
13
12
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
14
13
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
@@ -18,8 +17,11 @@ import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleC
18
17
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
19
18
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
20
19
  var _excluded = ["onRowClick"];
20
+
21
21
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
+
22
23
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context9, _context10; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(source), !0)).call(_context9, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context10 = ownKeys(Object(source))).call(_context10, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
24
+
23
25
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
24
26
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
25
27
  import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
@@ -35,8 +37,11 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
35
37
  import _bindInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/bind";
36
38
  import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
37
39
  import _parseFloat from "@babel/runtime-corejs3/core-js-stable/parse-float";
40
+
38
41
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
42
+
39
43
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
44
+
40
45
  import React from 'react';
41
46
  import PropTypes from 'prop-types';
42
47
  import ReactDOM from 'react-dom';
@@ -45,7 +50,6 @@ import FilterDropDown from './FilterDropDown';
45
50
  import fixed from './fixed';
46
51
  import DragSortRow from './DragSortRow';
47
52
  import variables from '../variables';
48
-
49
53
  /**
50
54
  * sorter: [可选],不传表示该列不支持排序;为string表示按字符串排序;为number表示按数字大小排序
51
55
  * filter: [可选],是否支持过滤,默认为false
@@ -54,6 +58,7 @@ import variables from '../variables';
54
58
  * isDateFilterByStartAndEnd: [可选],为true时做过滤操作会显示时间段搜索,默认为false
55
59
  *
56
60
  */
61
+
57
62
  var ColType = {
58
63
  key: PropTypes.string.isRequired,
59
64
  title: PropTypes.string,
@@ -70,7 +75,6 @@ var ColType = {
70
75
  var ItemType = {
71
76
  checked: PropTypes.bool
72
77
  };
73
-
74
78
  /**
75
79
  * onCheck:点击复选框时触发,原型func(isAll, checked, rowIndex);isolation为true时,原型为onCheck(checkedRows)
76
80
  * onRadio: 点击单选按钮时触发,原型为func(checkedRows)
@@ -79,6 +83,7 @@ var ItemType = {
79
83
  * onTableChange: 排序信息改变时触发,原型为func(sortInfo, filterInfo)
80
84
  * onMoveRow:行拖曳排序时触发,原型为func(dragIndex, targetIndex)
81
85
  */
86
+
82
87
  var CallbackType = {
83
88
  onCheck: PropTypes.func,
84
89
  onRadio: PropTypes.func,
@@ -87,7 +92,6 @@ var CallbackType = {
87
92
  onTableChange: PropTypes.func,
88
93
  onMoveRow: PropTypes.func
89
94
  };
90
-
91
95
  /**
92
96
  * checkbox: [可选],是否有复选框,默认为true
93
97
  * isPaging: [可选],是否分页,默认为false
@@ -105,39 +109,52 @@ var CallbackType = {
105
109
  * pageTotal: [可选], 为true表示开启表格末行自动汇总表格列数据,默认为false || searchTotal,当开启时,需要汇总的列需设置属性total为true,当dragSort为true时,该选项失效
106
110
  * searchTotal: [可选], 表格汇总数据对象,该属性不为空时pageTotal默认开启,当dragSort为true时,该选项失效
107
111
  */
112
+
108
113
  var SuperTable = /*#__PURE__*/function (_React$Component) {
109
114
  _inherits(SuperTable, _React$Component);
115
+
110
116
  var _super = _createSuper(SuperTable);
117
+
111
118
  function SuperTable() {
112
119
  var _context;
120
+
113
121
  var _this;
122
+
114
123
  _classCallCheck(this, SuperTable);
124
+
115
125
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
116
126
  args[_key] = arguments[_key];
117
127
  }
128
+
118
129
  _this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
130
+
119
131
  _defineProperty(_assertThisInitialized(_this), "state", {
120
132
  filterVisibleKey: ''
121
133
  });
134
+
122
135
  _defineProperty(_assertThisInitialized(_this), "onTableChange", function (pagination, filters, sorter) {
123
136
  var _ref = _this.props.callback || {},
124
- onTableChange = _ref.onTableChange;
137
+ onTableChange = _ref.onTableChange;
138
+
125
139
  var _this$props$filterInf = _this.props.filterInfo,
126
- filterInfo = _this$props$filterInf === void 0 ? null : _this$props$filterInf;
140
+ filterInfo = _this$props$filterInf === void 0 ? null : _this$props$filterInf;
127
141
  onTableChange && onTableChange(sorter, filterInfo);
128
142
  });
143
+
129
144
  _defineProperty(_assertThisInitialized(_this), "onChange", function () {
130
145
  var selectedKeyArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
146
+
131
147
  var _ref2 = _this.props.callback || {},
132
- onCheck = _ref2.onCheck;
148
+ onCheck = _ref2.onCheck;
149
+
133
150
  if (onCheck) {
134
151
  var _this$props = _this.props,
135
- _this$props$items = _this$props.items,
136
- items = _this$props$items === void 0 ? [] : _this$props$items,
137
- _this$props$isWeaken = _this$props.isWeaken,
138
- isWeaken = _this$props$isWeaken === void 0 ? false : _this$props$isWeaken,
139
- pageTotal = _this$props.pageTotal,
140
- searchTotal = _this$props.searchTotal;
152
+ _this$props$items = _this$props.items,
153
+ items = _this$props$items === void 0 ? [] : _this$props$items,
154
+ _this$props$isWeaken = _this$props.isWeaken,
155
+ isWeaken = _this$props$isWeaken === void 0 ? false : _this$props$isWeaken,
156
+ pageTotal = _this$props.pageTotal,
157
+ searchTotal = _this$props.searchTotal;
141
158
  var offset = 0;
142
159
  pageTotal && offset--;
143
160
  searchTotal && offset--;
@@ -148,19 +165,23 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
148
165
  var newItems = isWeaken ? _filterInstanceProperty(items).call(items, function (o) {
149
166
  return !o.__isWeaken;
150
167
  }) : items;
168
+
151
169
  if (selectedKeys.length === 0) {
152
170
  onCheck(true, false, -1);
153
171
  } else if (selectedKeys.length === newItems.length) {
154
172
  var checked = _everyInstanceProperty(newItems).call(newItems, function (o) {
155
173
  return o.checked;
156
174
  });
175
+
157
176
  onCheck(true, !checked, -1);
158
177
  } else {
159
178
  var defaultSelectedKeys = _this.getSelectedRowKeys(newItems);
179
+
160
180
  if (selectedKeys.length > defaultSelectedKeys.length) {
161
181
  if (_this.props.isPaging && selectedKeys.length - defaultSelectedKeys.length > 1) {
162
182
  return onCheck(true, true, -1);
163
183
  }
184
+
164
185
  onCheck(false, true, selectedKeys[selectedKeys.length - 1]);
165
186
  } else {
166
187
  var index = _findIndexInstanceProperty(defaultSelectedKeys).call(defaultSelectedKeys, function (key) {
@@ -168,41 +189,51 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
168
189
  return select === key;
169
190
  });
170
191
  });
192
+
171
193
  onCheck(false, false, defaultSelectedKeys[index]);
172
194
  }
173
195
  }
174
196
  }
175
197
  });
198
+
176
199
  _defineProperty(_assertThisInitialized(_this), "onCheckChange", function (selectedKeys) {
177
200
  var _ref3 = _this.props.callback || {},
178
- onCheck = _ref3.onCheck;
201
+ onCheck = _ref3.onCheck;
202
+
179
203
  onCheck && onCheck(selectedKeys);
180
204
  });
205
+
181
206
  _defineProperty(_assertThisInitialized(_this), "onRadioChange", function (selectedKeys) {
182
207
  var _ref4 = _this.props.callback || {},
183
- onRadio = _ref4.onRadio;
208
+ onRadio = _ref4.onRadio;
209
+
184
210
  onRadio && onRadio(selectedKeys);
185
211
  });
212
+
186
213
  _defineProperty(_assertThisInitialized(_this), "onRadioRowClick", function (record) {
187
214
  var _ref5 = _this.props.callback || {},
188
- onRadio = _ref5.onRadio;
215
+ onRadio = _ref5.onRadio;
216
+
189
217
  onRadio && onRadio([record.key]);
190
218
  });
219
+
191
220
  _defineProperty(_assertThisInitialized(_this), "onRowClick", function (record) {
192
221
  var _this$props2 = _this.props,
193
- _this$props2$isWeaken = _this$props2.isWeaken,
194
- isWeaken = _this$props2$isWeaken === void 0 ? false : _this$props2$isWeaken,
195
- items = _this$props2.items;
222
+ _this$props2$isWeaken = _this$props2.isWeaken,
223
+ isWeaken = _this$props2$isWeaken === void 0 ? false : _this$props2$isWeaken,
224
+ items = _this$props2.items;
196
225
  if (items.length <= record.key) return;
197
226
  clearTimeout(_this.timer);
198
227
  _this.timer = _setTimeout(function () {
199
228
  var _ref6 = _this.props.callback || {},
200
- onCheck = _ref6.onCheck;
229
+ onCheck = _ref6.onCheck;
230
+
201
231
  if (onCheck) {
202
232
  var _this$props3 = _this.props,
203
- isolation = _this$props3.isolation,
204
- _this$props3$checkedR = _this$props3.checkedRows,
205
- checkedRows = _this$props3$checkedR === void 0 ? [] : _this$props3$checkedR;
233
+ isolation = _this$props3.isolation,
234
+ _this$props3$checkedR = _this$props3.checkedRows,
235
+ checkedRows = _this$props3$checkedR === void 0 ? [] : _this$props3$checkedR;
236
+
206
237
  if (isolation) {
207
238
  if (_includesInstanceProperty(checkedRows).call(checkedRows, record.key)) {
208
239
  onCheck(_filterInstanceProperty(checkedRows).call(checkedRows, function (key) {
@@ -218,39 +249,49 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
218
249
  }
219
250
  }, 250);
220
251
  });
252
+
221
253
  _defineProperty(_assertThisInitialized(_this), "onDoubleClick", function (record) {
222
254
  clearTimeout(_this.timer);
255
+
223
256
  var _ref7 = _this.props.callback || {},
224
- onDoubleClick = _ref7.onDoubleClick;
257
+ onDoubleClick = _ref7.onDoubleClick;
258
+
225
259
  onDoubleClick && onDoubleClick(record.key);
226
260
  });
261
+
227
262
  _defineProperty(_assertThisInitialized(_this), "onLink", function (key, index, item, e) {
228
263
  var _ref8 = _this.props.callback || {},
229
- onLink = _ref8.onLink;
264
+ onLink = _ref8.onLink;
265
+
230
266
  onLink && onLink(key, index, item);
231
267
  e.stopPropagation();
232
268
  });
269
+
233
270
  _defineProperty(_assertThisInitialized(_this), "onLinkDouble", function (e) {
234
271
  e.stopPropagation();
235
272
  });
273
+
236
274
  _defineProperty(_assertThisInitialized(_this), "onMoveRow", function (dragIndex, targetIndex) {
237
275
  var _ref9 = _this.props.callback || {},
238
- onMoveRow = _ref9.onMoveRow;
276
+ onMoveRow = _ref9.onMoveRow;
277
+
239
278
  onMoveRow && onMoveRow(dragIndex, targetIndex);
240
279
  });
280
+
241
281
  _defineProperty(_assertThisInitialized(_this), "getSelectedRowKeys", function (items) {
242
282
  return _reduceInstanceProperty(items).call(items, function (result, item, index) {
243
283
  item.checked && result.push(index);
244
284
  return result;
245
285
  }, []);
246
286
  });
287
+
247
288
  _defineProperty(_assertThisInitialized(_this), "getIndexInfo", function () {
248
289
  var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
249
290
  var _this$props4 = _this.props,
250
- _this$props4$index = _this$props4.index,
251
- index = _this$props4$index === void 0 ? true : _this$props4$index,
252
- _this$props4$indexTit = _this$props4.indexTitle,
253
- indexTitle = _this$props4$indexTit === void 0 ? '序号' : _this$props4$indexTit;
291
+ _this$props4$index = _this$props4.index,
292
+ index = _this$props4$index === void 0 ? true : _this$props4$index,
293
+ _this$props4$indexTit = _this$props4.indexTitle,
294
+ indexTitle = _this$props4$indexTit === void 0 ? '序号' : _this$props4$indexTit;
254
295
  return index ? [{
255
296
  key: 'index',
256
297
  title: indexTitle,
@@ -259,12 +300,15 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
259
300
  }
260
301
  }] : [];
261
302
  });
303
+
262
304
  _defineProperty(_assertThisInitialized(_this), "setSortInfo", function (col, sortInfo) {
263
305
  if (col.sorter === 'string') {
264
306
  col.sortOrder = sortInfo.columnKey === col.key && sortInfo.order;
307
+
265
308
  col.sorter = function (row1, row2) {
266
309
  var a = !col.link ? row1[col.key] : row1[col.key].props.children;
267
310
  var b = !col.link ? row2[col.key] : row2[col.key].props.children;
311
+
268
312
  if (a > b) {
269
313
  return 1;
270
314
  } else if (a === b) {
@@ -275,6 +319,7 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
275
319
  };
276
320
  } else if (col.sorter === 'number') {
277
321
  col.sortOrder = sortInfo.columnKey === col.key && sortInfo.order;
322
+
278
323
  col.sorter = function (a, b) {
279
324
  return a[col.key] - b[col.key];
280
325
  };
@@ -282,35 +327,45 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
282
327
  delete col.sorter;
283
328
  }
284
329
  });
330
+
285
331
  _defineProperty(_assertThisInitialized(_this), "setFilterInfo", function (col, filterInfo, visibleKey) {
286
332
  if (_filterInstanceProperty(col)) {
287
333
  var _col$isDateFilterBySt = col.isDateFilterByStartAndEnd,
288
- isDateFilterByStartAndEnd = _col$isDateFilterBySt === void 0 ? false : _col$isDateFilterBySt;
334
+ isDateFilterByStartAndEnd = _col$isDateFilterBySt === void 0 ? false : _col$isDateFilterBySt;
335
+
289
336
  var onSearch = function onSearch(value) {
290
337
  var _ref10 = _this.props.callback || {},
291
- onTableChange = _ref10.onTableChange;
338
+ onTableChange = _ref10.onTableChange;
339
+
292
340
  var _this$props$sortInfo = _this.props.sortInfo,
293
- sortInfo = _this$props$sortInfo === void 0 ? null : _this$props$sortInfo;
341
+ sortInfo = _this$props$sortInfo === void 0 ? null : _this$props$sortInfo;
342
+
294
343
  var newFilterInfo = _Object$assign({}, filterInfo, _defineProperty({}, col.key, value));
344
+
295
345
  _this.setState({
296
346
  filterVisibleKey: ''
297
347
  });
348
+
298
349
  onTableChange && onTableChange(sortInfo, newFilterInfo);
299
350
  };
351
+
300
352
  var value = filterInfo[col.key];
301
353
  col.filteredValue = value ? [value] : null;
302
354
  col.filterDropdownVisible = visibleKey === col.key;
355
+
303
356
  var onClose = function onClose() {
304
357
  _this.setState({
305
358
  filterVisibleKey: ''
306
359
  });
307
360
  };
361
+
308
362
  col.filterDropdown = /*#__PURE__*/React.createElement(FilterDropDown, {
309
363
  value: value,
310
364
  onSearch: onSearch,
311
365
  onClose: onClose,
312
366
  isDateFilterByStartAndEnd: isDateFilterByStartAndEnd
313
367
  });
368
+
314
369
  col.onFilterDropdownVisibleChange = function (visible) {
315
370
  if (isDateFilterByStartAndEnd) {
316
371
  visible && _this.setState({
@@ -322,10 +377,13 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
322
377
  });
323
378
  }
324
379
  };
380
+
325
381
  col.onFilter = function (value, record) {
326
382
  var items = _this.getItems();
383
+
327
384
  if (items[record.key].__total) return true;
328
385
  var content = !col.link ? record[col.key] : record[col.key].props.children;
386
+
329
387
  if (!col.isDateFilterByStartAndEnd) {
330
388
  var con = _Array$isArray(content) ? content : String(content);
331
389
  return _includesInstanceProperty(con).call(con, value);
@@ -334,15 +392,20 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
334
392
  }
335
393
  };
336
394
  }
395
+
337
396
  delete col.filter;
338
397
  });
398
+
339
399
  _defineProperty(_assertThisInitialized(_this), "linkList", function (key, index, item) {
340
400
  var linkTitleKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'fileName';
341
401
  var list = item[key] || [];
342
402
  return /*#__PURE__*/React.createElement("div", null, _mapInstanceProperty(list).call(list, function (item2, index2) {
343
403
  var _context2, _context3;
404
+
344
405
  var split = index2 === list.length - 1 ? '' : ',';
406
+
345
407
  var onClick = _bindInstanceProperty(_context2 = _this.onLink).call(_context2, null, key, index, item2);
408
+
346
409
  return /*#__PURE__*/React.createElement("a", {
347
410
  key: index2,
348
411
  onClick: onClick,
@@ -350,6 +413,7 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
350
413
  }, _concatInstanceProperty(_context3 = "".concat(item2[linkTitleKey])).call(_context3, split));
351
414
  }));
352
415
  });
416
+
353
417
  _defineProperty(_assertThisInitialized(_this), "waring", function (key, index, item, warningKey) {
354
418
  var text = item[key] ? item[key] : '';
355
419
  var color = item[warningKey] == 1 ? 'red' : 'rgba(0, 0, 0, 0.65)';
@@ -359,32 +423,42 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
359
423
  }
360
424
  }, text.title ? text.title : text));
361
425
  });
426
+
362
427
  _defineProperty(_assertThisInitialized(_this), "defaultList", function (key, index, item, text, link) {
363
428
  var _context4;
429
+
364
430
  var onClick = _bindInstanceProperty(_context4 = _this.onLink).call(_context4, null, key, index, item);
431
+
365
432
  if (link && typeof link === 'string') {
366
433
  return /*#__PURE__*/React.createElement("a", {
367
434
  onClick: onClick,
368
435
  onDoubleClick: _this.onLinkDouble
369
436
  }, text);
370
437
  }
438
+
371
439
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, text));
372
440
  });
441
+
373
442
  _defineProperty(_assertThisInitialized(_this), "getColumns", function (cols, items) {
374
443
  var _context5, _context6;
444
+
375
445
  var _this$props5 = _this.props,
376
- sortInfo = _this$props5.sortInfo,
377
- filterInfo = _this$props5.filterInfo;
446
+ sortInfo = _this$props5.sortInfo,
447
+ filterInfo = _this$props5.filterInfo;
378
448
  var filterVisibleKey = _this.state.filterVisibleKey;
379
449
  return _mapInstanceProperty(_context5 = _concatInstanceProperty(_context6 = _this.getIndexInfo(items)).call(_context6, _filterInstanceProperty(cols).call(cols, function (col) {
380
450
  return !col.hide;
381
451
  }))).call(_context5, function (_ref11) {
382
- var col = _extends({}, (_objectDestructuringEmpty(_ref11), _ref11));
452
+ var col = _extends({}, _ref11);
453
+
383
454
  col.dataIndex = col.key;
384
455
  col.className = col.key === 'index' ? 'ant-table-selection-column' : col.align ? variables('SuperTable')[col.align] : '';
385
456
  col.noWrap && (col.className = variables('SuperTable').noWrap);
457
+
386
458
  _this.setSortInfo(col, sortInfo || {});
459
+
387
460
  _this.setFilterInfo(col, filterInfo || {}, filterVisibleKey);
461
+
388
462
  if (col.defaultValue) {
389
463
  col.render = function (text, record, index) {
390
464
  return _this.defaultList(col.key, index, items[index], col.defaultValue, col.link);
@@ -406,9 +480,11 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
406
480
  return _this.tooltip(col.key, index, items[index], col);
407
481
  };
408
482
  }
483
+
409
484
  return col;
410
485
  });
411
486
  });
487
+
412
488
  _defineProperty(_assertThisInitialized(_this), "getText", function (value, options) {
413
489
  if (_Array$isArray(value)) {
414
490
  return _mapInstanceProperty(value).call(value, function (v) {
@@ -418,29 +494,38 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
418
494
  return getTitle(value, options);
419
495
  }
420
496
  });
497
+
421
498
  _defineProperty(_assertThisInitialized(_this), "link", function (key, index, item, text) {
422
499
  var _context7;
500
+
423
501
  var onClick = _bindInstanceProperty(_context7 = _this.onLink).call(_context7, null, key, index, item);
502
+
424
503
  return /*#__PURE__*/React.createElement("a", {
425
504
  onClick: onClick,
426
505
  onDoubleClick: _this.onLinkDouble
427
506
  }, text);
428
507
  });
508
+
429
509
  _defineProperty(_assertThisInitialized(_this), "tooltip", function (key, index, item, _ref12) {
430
510
  var tipLen = _ref12.tooltip,
431
- options = _ref12.options;
511
+ options = _ref12.options;
512
+
432
513
  var text = _this.getText(item[key], options);
514
+
433
515
  var needTip = tipLen > 1 && text && typeof text === 'string' && text.length > tipLen;
434
516
  return needTip ? /*#__PURE__*/React.createElement(_Tooltip, {
435
517
  title: text
436
518
  }, /*#__PURE__*/React.createElement("span", null, _sliceInstanceProperty(text).call(text, 0, tipLen) + '...')) : /*#__PURE__*/React.createElement("span", null, _Array$isArray(text) ? text.join(',') : text);
437
519
  });
520
+
438
521
  _defineProperty(_assertThisInitialized(_this), "getImgSrc", function (value, options) {
439
522
  var index = _findIndexInstanceProperty(options).call(options, function (obj) {
440
523
  return obj.value == value;
441
524
  });
525
+
442
526
  return index === -1 ? null : options[index].img;
443
527
  });
528
+
444
529
  /**
445
530
  *
446
531
  * @param item{array}:列数据
@@ -450,6 +535,7 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
450
535
  */
451
536
  _defineProperty(_assertThisInitialized(_this), "getSourceText", function (item, key, options, dataSource) {
452
537
  var value = {};
538
+
453
539
  if (typeof dataSource === 'string') {
454
540
  value = item[dataSource] || {};
455
541
  } else if (_Array$isArray(dataSource)) {
@@ -463,28 +549,36 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
463
549
  });
464
550
  }
465
551
  /*如果上面已经取到结果则不进入*/
552
+
553
+
466
554
  if (typeof value !== 'string') {
467
555
  value = value[key];
468
556
  }
557
+
469
558
  return _this.getText(value, options);
470
559
  });
560
+
471
561
  _defineProperty(_assertThisInitialized(_this), "getDataSource", function (items, cols) {
472
562
  return _mapInstanceProperty(items).call(items, function (item, index) {
473
563
  return _reduceInstanceProperty(cols).call(cols, function (result, _ref13) {
474
564
  var key = _ref13.key,
475
- options = _ref13.options,
476
- link = _ref13.link,
477
- icon = _ref13.icon,
478
- dataSource = _ref13.dataSource;
565
+ options = _ref13.options,
566
+ link = _ref13.link,
567
+ icon = _ref13.icon,
568
+ dataSource = _ref13.dataSource;
569
+
479
570
  if (link) {
480
571
  if (typeof link === 'boolean') {
481
572
  result[key] = _this.link(key, index, item, _this.getText(item[key], options));
482
573
  }
483
574
  } else if (icon) {
484
575
  var _context8;
576
+
485
577
  //单独的icon列,icon=true数据值根据options获得显示的图片url
486
578
  var src = _this.getImgSrc(item[key], options);
579
+
487
580
  var onClick = _bindInstanceProperty(_context8 = _this.onLink).call(_context8, null, key, index, item);
581
+
488
582
  result[key] = src ? /*#__PURE__*/React.createElement("img", {
489
583
  src: src,
490
584
  onClick: onClick
@@ -494,6 +588,7 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
494
588
  } else {
495
589
  result[key] = _this.getText(item[key], options);
496
590
  }
591
+
497
592
  return result;
498
593
  }, {
499
594
  key: index,
@@ -501,35 +596,42 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
501
596
  });
502
597
  });
503
598
  });
599
+
504
600
  _defineProperty(_assertThisInitialized(_this), "getPropsByCheckbox", function (items) {
505
601
  var _this$props6 = _this.props,
506
- _this$props6$checkbox = _this$props6.checkbox,
507
- checkbox = _this$props6$checkbox === void 0 ? true : _this$props6$checkbox,
508
- _this$props6$radio = _this$props6.radio,
509
- radio = _this$props6$radio === void 0 ? false : _this$props6$radio,
510
- isolation = _this$props6.isolation,
511
- _this$props6$checkedR = _this$props6.checkedRows,
512
- checkedRows = _this$props6$checkedR === void 0 ? [] : _this$props6$checkedR,
513
- _this$props6$isEmphas = _this$props6.isEmphasized,
514
- isEmphasized = _this$props6$isEmphas === void 0 ? false : _this$props6$isEmphas,
515
- _this$props6$isWeaken = _this$props6.isWeaken,
516
- isWeaken = _this$props6$isWeaken === void 0 ? true : _this$props6$isWeaken;
602
+ _this$props6$checkbox = _this$props6.checkbox,
603
+ checkbox = _this$props6$checkbox === void 0 ? true : _this$props6$checkbox,
604
+ _this$props6$radio = _this$props6.radio,
605
+ radio = _this$props6$radio === void 0 ? false : _this$props6$radio,
606
+ isolation = _this$props6.isolation,
607
+ _this$props6$checkedR = _this$props6.checkedRows,
608
+ checkedRows = _this$props6$checkedR === void 0 ? [] : _this$props6$checkedR,
609
+ _this$props6$isEmphas = _this$props6.isEmphasized,
610
+ isEmphasized = _this$props6$isEmphas === void 0 ? false : _this$props6$isEmphas,
611
+ _this$props6$isWeaken = _this$props6.isWeaken,
612
+ isWeaken = _this$props6$isWeaken === void 0 ? true : _this$props6$isWeaken;
613
+
517
614
  var rowClassName1 = function rowClassName1(record) {
518
615
  if (items[record.key].__total) return variables('SuperTable').totalRow;
519
616
  if (items[record.key].__warningRow) return variables('SuperTable').warningRow;
520
617
  return _includesInstanceProperty(checkedRows).call(checkedRows, record.key) ? variables('SuperTable').select : '';
521
618
  };
619
+
522
620
  var rowClassName2 = function rowClassName2(record) {
523
621
  if (items[record.key].__total) return variables('SuperTable').totalRow;
524
622
  if (items[record.key].__warningRow) return variables('SuperTable').warningRow;
623
+
525
624
  if (isEmphasized && items[record.key].__isEmphasized) {
526
625
  return items[record.key].checked ? variables('SuperTable').emphasizedSelectRow : variables('SuperTable').emphasizedUnselectRow;
527
626
  }
627
+
528
628
  if (isWeaken && items[record.key].__isWeaken) {
529
629
  return items[record.key].checked ? variables('SuperTable').weakenedSelectRow : variables('SuperTable').weakenedUnselectRow;
530
630
  }
631
+
531
632
  return items[record.key].checked ? variables('SuperTable').select : '';
532
633
  };
634
+
533
635
  if (checkbox) {
534
636
  if (radio) {
535
637
  return {
@@ -550,6 +652,7 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
550
652
  onChange: _this.onCheckChange,
551
653
  getCheckboxProps: function getCheckboxProps(record) {
552
654
  var checked = _includesInstanceProperty(checkedRows).call(checkedRows, record.key);
655
+
553
656
  return {
554
657
  checked: checked,
555
658
  disabled: items[record.key].__isWeaken,
@@ -586,6 +689,7 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
586
689
  };
587
690
  }
588
691
  });
692
+
589
693
  _defineProperty(_assertThisInitialized(_this), "getRowProps", function (onRowClick) {
590
694
  return function (record) {
591
695
  return {
@@ -598,6 +702,7 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
598
702
  };
599
703
  };
600
704
  });
705
+
601
706
  _defineProperty(_assertThisInitialized(_this), "getRowPropsForDrag", function () {
602
707
  return function (record, index) {
603
708
  return {
@@ -606,34 +711,40 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
606
711
  };
607
712
  };
608
713
  });
714
+
609
715
  _defineProperty(_assertThisInitialized(_this), "getItems", function () {
610
716
  var _this$props7 = _this.props,
611
- items = _this$props7.items,
612
- cols = _this$props7.cols,
613
- _this$props7$dragSort = _this$props7.dragSort,
614
- dragSort = _this$props7$dragSort === void 0 ? false : _this$props7$dragSort,
615
- _this$props7$pageTota = _this$props7.pageTotal,
616
- pageTotal = _this$props7$pageTota === void 0 ? false : _this$props7$pageTota,
617
- searchTotal = _this$props7.searchTotal;
717
+ items = _this$props7.items,
718
+ cols = _this$props7.cols,
719
+ _this$props7$dragSort = _this$props7.dragSort,
720
+ dragSort = _this$props7$dragSort === void 0 ? false : _this$props7$dragSort,
721
+ _this$props7$pageTota = _this$props7.pageTotal,
722
+ pageTotal = _this$props7$pageTota === void 0 ? false : _this$props7$pageTota,
723
+ searchTotal = _this$props7.searchTotal;
618
724
  var resItems = items;
725
+
619
726
  if (!dragSort && items.length > 1) {
620
727
  if (pageTotal || searchTotal) {
621
728
  var totalItem = _reduceInstanceProperty(cols).call(cols, function (result, _ref14) {
622
729
  var key = _ref14.key,
623
- _ref14$total = _ref14.total,
624
- total = _ref14$total === void 0 ? false : _ref14$total;
730
+ _ref14$total = _ref14.total,
731
+ total = _ref14$total === void 0 ? false : _ref14$total;
732
+
625
733
  if (total) {
626
734
  result[key] = _parseFloat(Number(_reduceInstanceProperty(items).call(items, function (result, item) {
627
735
  return _parseFloat(String(item[key] || 0)) + result;
628
736
  }, 0)).toFixed(4));
629
737
  }
738
+
630
739
  return result;
631
740
  }, {
632
741
  __total: true,
633
742
  __totalIndexTitle: '本页汇总'
634
743
  });
744
+
635
745
  resItems = _concatInstanceProperty(resItems).call(resItems, [totalItem]);
636
746
  }
747
+
637
748
  if (searchTotal) {
638
749
  resItems = _concatInstanceProperty(resItems).call(resItems, [_objectSpread(_objectSpread({}, searchTotal), {}, {
639
750
  __total: true,
@@ -641,17 +752,21 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
641
752
  })]);
642
753
  }
643
754
  }
755
+
644
756
  return resItems;
645
757
  });
758
+
646
759
  _defineProperty(_assertThisInitialized(_this), "toTotalFooter", function () {
647
760
  var _this$props8 = _this.props,
648
- cols = _this$props8.cols,
649
- items = _this$props8.items,
650
- isolation = _this$props8.isolation,
651
- checkedRows = _this$props8.checkedRows;
761
+ cols = _this$props8.cols,
762
+ items = _this$props8.items,
763
+ isolation = _this$props8.isolation,
764
+ checkedRows = _this$props8.checkedRows;
765
+
652
766
  var totalCols = _filterInstanceProperty(cols).call(cols, function (item) {
653
767
  return item.total;
654
768
  });
769
+
655
770
  if (totalCols.length > 0) {
656
771
  var checkedItems = isolation ? _filterInstanceProperty(items).call(items, function (item, index) {
657
772
  return _includesInstanceProperty(checkedRows).call(checkedRows, index);
@@ -659,19 +774,23 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
659
774
  return item.checked;
660
775
  });
661
776
  var countItems = checkedItems.length ? checkedItems : items;
777
+
662
778
  var totalItems = _mapInstanceProperty(totalCols).call(totalCols, function (_ref15) {
663
779
  var title = _ref15.title,
664
- key = _ref15.key,
665
- _ref15$props = _ref15.props,
666
- props = _ref15$props === void 0 ? {} : _ref15$props;
780
+ key = _ref15.key,
781
+ _ref15$props = _ref15.props,
782
+ props = _ref15$props === void 0 ? {} : _ref15$props;
783
+
667
784
  var value = _reduceInstanceProperty(countItems).call(countItems, function (result, item) {
668
785
  return _parseFloat((result + Number(item[key] || 0)).toFixed(props.precision || 6));
669
786
  }, 0);
787
+
670
788
  return {
671
789
  title: title,
672
790
  value: value
673
791
  };
674
792
  });
793
+
675
794
  return /*#__PURE__*/React.createElement("div", {
676
795
  style: {
677
796
  height: '36px',
@@ -683,7 +802,7 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
683
802
  }
684
803
  }, checkedItems.length ? '【当页勾选汇总】' : '【当页汇总】'), _mapInstanceProperty(totalItems).call(totalItems, function (_ref16, index) {
685
804
  var title = _ref16.title,
686
- value = _ref16.value;
805
+ value = _ref16.value;
687
806
  return /*#__PURE__*/React.createElement("span", {
688
807
  key: index,
689
808
  style: {
@@ -699,22 +818,26 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
699
818
  return null;
700
819
  }
701
820
  });
821
+
702
822
  _defineProperty(_assertThisInitialized(_this), "getProps", function () {
703
823
  var _this$props9 = _this.props,
704
- cols = _this$props9.cols,
705
- _this$props9$isPaging = _this$props9.isPaging,
706
- isPaging = _this$props9$isPaging === void 0 ? false : _this$props9$isPaging,
707
- _this$props9$isEmphas = _this$props9.isEmphasized,
708
- isEmphasized = _this$props9$isEmphas === void 0 ? false : _this$props9$isEmphas,
709
- _this$props9$isWeaken = _this$props9.isWeaken,
710
- isWeaken = _this$props9$isWeaken === void 0 ? false : _this$props9$isWeaken,
711
- dragSort = _this$props9.dragSort,
712
- _this$props9$footer = _this$props9.footer,
713
- footer = _this$props9$footer === void 0 ? null : _this$props9$footer;
824
+ cols = _this$props9.cols,
825
+ _this$props9$isPaging = _this$props9.isPaging,
826
+ isPaging = _this$props9$isPaging === void 0 ? false : _this$props9$isPaging,
827
+ _this$props9$isEmphas = _this$props9.isEmphasized,
828
+ isEmphasized = _this$props9$isEmphas === void 0 ? false : _this$props9$isEmphas,
829
+ _this$props9$isWeaken = _this$props9.isWeaken,
830
+ isWeaken = _this$props9$isWeaken === void 0 ? false : _this$props9$isWeaken,
831
+ dragSort = _this$props9.dragSort,
832
+ _this$props9$footer = _this$props9.footer,
833
+ footer = _this$props9$footer === void 0 ? null : _this$props9$footer;
834
+
714
835
  var items = _this.getItems();
836
+
715
837
  var _this$getPropsByCheck = _this.getPropsByCheckbox(items),
716
- onRowClick = _this$getPropsByCheck.onRowClick,
717
- extraProps = _objectWithoutProperties(_this$getPropsByCheck, _excluded);
838
+ onRowClick = _this$getPropsByCheck.onRowClick,
839
+ extraProps = _objectWithoutProperties(_this$getPropsByCheck, _excluded);
840
+
718
841
  var renderProps = _objectSpread({
719
842
  className: !isEmphasized || !isWeaken ? variables('SuperTable') : variables('SuperTable').noTransition,
720
843
  columns: _this.getColumns(cols, items),
@@ -733,13 +856,16 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
733
856
  } : {},
734
857
  footer: footer ? footer : _this.toTotalFooter
735
858
  }, extraProps);
859
+
736
860
  return renderProps;
737
861
  });
862
+
738
863
  _defineProperty(_assertThisInitialized(_this), "setScroll", function () {
739
864
  var _this$props10 = _this.props,
740
- maxHeight = _this$props10.maxHeight,
741
- pageTotal = _this$props10.pageTotal,
742
- searchTotal = _this$props10.searchTotal;
865
+ maxHeight = _this$props10.maxHeight,
866
+ pageTotal = _this$props10.pageTotal,
867
+ searchTotal = _this$props10.searchTotal;
868
+
743
869
  if (maxHeight && _this.getItems().length) {
744
870
  var root = ReactDOM.findDOMNode(_assertThisInitialized(_this));
745
871
  var container = root.getElementsByClassName('ant-table-body')[0];
@@ -754,12 +880,15 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
754
880
  });
755
881
  }
756
882
  });
883
+
757
884
  return _this;
758
885
  }
886
+
759
887
  _createClass(SuperTable, [{
760
888
  key: "shouldComponentUpdate",
761
889
  value: function shouldComponentUpdate(props, state) {
762
890
  var _this2 = this;
891
+
763
892
  var keys = ['cols', 'items', 'maxHeight', 'checkedRows', 'sortInfo', 'filterInfo'];
764
893
  return _someInstanceProperty(keys).call(keys, function (key) {
765
894
  return props[key] !== _this2.props[key];
@@ -783,8 +912,10 @@ var SuperTable = /*#__PURE__*/function (_React$Component) {
783
912
  }));
784
913
  }
785
914
  }]);
915
+
786
916
  return SuperTable;
787
917
  }(React.Component);
918
+
788
919
  _defineProperty(SuperTable, "propTypes", {
789
920
  cols: PropTypes.arrayOf(PropTypes.shape(ColType)).isRequired,
790
921
  items: PropTypes.arrayOf(PropTypes.shape(ItemType)).isRequired,
@@ -805,4 +936,5 @@ _defineProperty(SuperTable, "propTypes", {
805
936
  pageTotal: PropTypes.bool,
806
937
  searchTotal: PropTypes.object
807
938
  });
939
+
808
940
  export default SuperTable;