cloud-b2b 1.1.26 → 1.1.28

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