linkmore-design 1.0.82 → 1.0.83

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 (88) hide show
  1. package/dist/Form/style/index.d.ts +0 -3
  2. package/dist/LmEditTable/EditTable.d.ts +6 -0
  3. package/dist/LmEditTable/util.d.ts +1 -0
  4. package/dist/LmTable/components/customRenderEmpty.d.ts +2 -0
  5. package/dist/LmTable/demos/virtual.d.ts +2 -0
  6. package/dist/LmTable/util.d.ts +16 -0
  7. package/dist/LmTable/virTual/VirtualRow.d.ts +6 -0
  8. package/dist/LmTable/virTual/VirtualTable.d.ts +3 -0
  9. package/dist/LmTable/virTual/VirtualWrapper.d.ts +3 -0
  10. package/dist/LmTable/virTual/context.d.ts +13 -0
  11. package/dist/LmTable/virTual/index.d.ts +4 -0
  12. package/dist/TestTable/LmBox.d.ts +12 -0
  13. package/dist/TestTable/demos/basic.d.ts +6 -0
  14. package/dist/TestTable/index.d.ts +2 -0
  15. package/dist/TestTable/style/index.d.ts +1 -0
  16. package/dist/index.umd.js +764 -369
  17. package/dist/index.umd.min.js +3 -3
  18. package/es/Form/style/form.css +603 -0
  19. package/es/Form/style/grid.css +5185 -0
  20. package/es/Form/style/index.css +6 -1
  21. package/es/Form/style/index.d.ts +0 -3
  22. package/es/Form/style/index.js +0 -4
  23. package/es/Form/style/tooltip.css +275 -0
  24. package/es/LmEditTable/EditTable.d.ts +6 -0
  25. package/es/LmEditTable/EditTable.js +63 -81
  26. package/es/LmEditTable/sortableItemCol.js +6 -3
  27. package/es/LmEditTable/style/index.css +7 -0
  28. package/es/LmEditTable/util.d.ts +1 -0
  29. package/es/LmEditTable/util.js +5 -0
  30. package/es/LmTable/Table.js +308 -173
  31. package/es/LmTable/components/customRenderEmpty.d.ts +2 -0
  32. package/es/LmTable/components/customRenderEmpty.js +15 -0
  33. package/es/LmTable/components/sheelTableCell.js +14 -8
  34. package/es/LmTable/style/index.css +177 -152
  35. package/es/LmTable/util.js +105 -0
  36. package/es/LmTable/virTual/VirtualRow.d.ts +6 -0
  37. package/es/LmTable/virTual/VirtualRow.js +102 -0
  38. package/es/LmTable/virTual/VirtualTable.d.ts +3 -0
  39. package/es/LmTable/virTual/VirtualTable.js +52 -0
  40. package/es/LmTable/virTual/VirtualWrapper.d.ts +3 -0
  41. package/es/LmTable/virTual/VirtualWrapper.js +61 -0
  42. package/es/LmTable/virTual/context.d.ts +13 -0
  43. package/es/LmTable/virTual/context.js +54 -0
  44. package/es/LmTable/virTual/index.d.ts +4 -0
  45. package/es/LmTable/virTual/index.js +4 -0
  46. package/es/TestTable/LmBox.d.ts +12 -0
  47. package/es/TestTable/LmBox.js +6 -0
  48. package/es/TestTable/index.d.ts +2 -0
  49. package/es/TestTable/index.js +2 -0
  50. package/es/TestTable/style/index.css +10 -0
  51. package/es/TestTable/style/index.js +3 -0
  52. package/es/hooks/useFullscreen/index.js +23 -2
  53. package/lib/Form/style/form.css +603 -0
  54. package/lib/Form/style/grid.css +5185 -0
  55. package/lib/Form/style/index.css +6 -1
  56. package/lib/Form/style/index.d.ts +0 -3
  57. package/lib/Form/style/index.js +0 -6
  58. package/lib/Form/style/tooltip.css +275 -0
  59. package/lib/LmEditTable/EditTable.d.ts +6 -0
  60. package/lib/LmEditTable/EditTable.js +64 -80
  61. package/lib/LmEditTable/sortableItemCol.js +6 -3
  62. package/lib/LmEditTable/style/index.css +7 -0
  63. package/lib/LmEditTable/util.d.ts +1 -0
  64. package/lib/LmEditTable/util.js +12 -0
  65. package/lib/LmTable/Table.js +308 -173
  66. package/lib/LmTable/components/customRenderEmpty.d.ts +2 -0
  67. package/lib/LmTable/components/customRenderEmpty.js +25 -0
  68. package/lib/LmTable/components/sheelTableCell.js +14 -8
  69. package/lib/LmTable/style/index.css +177 -152
  70. package/lib/LmTable/util.js +105 -0
  71. package/lib/LmTable/virTual/VirtualRow.d.ts +6 -0
  72. package/lib/LmTable/virTual/VirtualRow.js +115 -0
  73. package/lib/LmTable/virTual/VirtualTable.d.ts +3 -0
  74. package/lib/LmTable/virTual/VirtualTable.js +69 -0
  75. package/lib/LmTable/virTual/VirtualWrapper.d.ts +3 -0
  76. package/lib/LmTable/virTual/VirtualWrapper.js +74 -0
  77. package/lib/LmTable/virTual/context.d.ts +13 -0
  78. package/lib/LmTable/virTual/context.js +64 -0
  79. package/lib/LmTable/virTual/index.d.ts +4 -0
  80. package/lib/LmTable/virTual/index.js +31 -0
  81. package/lib/TestTable/LmBox.d.ts +12 -0
  82. package/lib/TestTable/LmBox.js +17 -0
  83. package/lib/TestTable/index.d.ts +2 -0
  84. package/lib/TestTable/index.js +13 -0
  85. package/lib/TestTable/style/index.css +10 -0
  86. package/lib/TestTable/style/index.js +3 -0
  87. package/lib/hooks/useFullscreen/index.js +23 -2
  88. package/package.json +1 -1
@@ -29,7 +29,9 @@ var _sortable = require("@dnd-kit/sortable");
29
29
 
30
30
  var _classnames = _interopRequireDefault(require("classnames"));
31
31
 
32
- var _linkmoreDesign = require("linkmore-design");
32
+ var _Empty = _interopRequireDefault(require("../Empty"));
33
+
34
+ var _IconFont = _interopRequireDefault(require("../IconFont"));
33
35
 
34
36
  var _lodash = require("lodash");
35
37
 
@@ -53,16 +55,24 @@ var _sheelTableCell = _interopRequireDefault(require("./components/sheelTableCel
53
55
 
54
56
  var _tableChartsModal = _interopRequireDefault(require("./components/tableChartsModal"));
55
57
 
58
+ var _customRenderEmpty = _interopRequireDefault(require("./components/customRenderEmpty"));
59
+
60
+ var _util = require("./util");
61
+
56
62
  var _resetConfig = _interopRequireDefault(require("./resetConfig"));
57
63
 
58
- var _excluded = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "groupInfo", "emptyProps"],
64
+ var _virTual = require("./virTual");
65
+
66
+ var _excluded = ["columns", "dataSource", "autoSize", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "groupInfo", "emptyProps", "columnKeys"],
59
67
  _excluded2 = ["className", "style"],
60
68
  _excluded3 = ["onResize", "width", "onResizeStop"];
61
69
  var Summary = _proTable.default.Summary;
62
70
  exports.Summary = Summary;
63
71
 
64
72
  var isEmpty = function isEmpty(obj) {
65
- return Object.keys(obj).length === 0;
73
+ var _Object$keys;
74
+
75
+ return ((_Object$keys = Object.keys(obj || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 0;
66
76
  };
67
77
 
68
78
  var defaultParsePaste = function defaultParsePaste(str) {
@@ -84,7 +94,7 @@ var range = function range(start, end) {
84
94
 
85
95
 
86
96
  var DragHandle = (0, _reactSortableHoc.SortableHandle)(function () {
87
- return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
97
+ return /*#__PURE__*/_react.default.createElement(_IconFont.default, {
88
98
  type: "lmweb-icon-m-receipt1",
89
99
  style: {
90
100
  cursor: 'move',
@@ -103,9 +113,9 @@ var sortDefaultColumnItem = {
103
113
  }
104
114
  };
105
115
  var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
106
- var dataSource = props.dataSource,
116
+ var columns = props.columns,
117
+ dataSource = props.dataSource,
107
118
  autoSize = props.autoSize,
108
- columns = props.columns,
109
119
  rowClick = props.rowClick,
110
120
  _onDoubleClick = props.onDoubleClick,
111
121
  checkConfig = props.checkConfig,
@@ -138,6 +148,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
138
148
  dataChange = props.dataChange,
139
149
  groupInfo = props.groupInfo,
140
150
  emptyProps = props.emptyProps,
151
+ columnKeys = props.columnKeys,
141
152
  resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
142
153
  var _resetProps$rowKey = resetProps.rowKey,
143
154
  rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
@@ -185,7 +196,8 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
185
196
  selecting: false,
186
197
  forceEdit: false,
187
198
  editing: {},
188
- clear: {}
199
+ clear: {},
200
+ commiting: {}
189
201
  }),
190
202
  _useState10 = (0, _slicedToArray2.default)(_useState9, 2),
191
203
  sheelStataus = _useState10[0],
@@ -197,47 +209,53 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
197
209
  selecting: false,
198
210
  forceEdit: false,
199
211
  editing: {},
200
- clear: {}
212
+ clear: {},
213
+ commiting: {}
201
214
  });
202
215
 
203
216
  var _useState11 = (0, _react.useState)(false),
204
217
  _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
205
218
  selectIng = _useState12[0],
206
- SetSelectIng = _useState12[1];
219
+ setSelectIng = _useState12[1];
207
220
 
208
221
  var _useState13 = (0, _react.useState)(false),
209
222
  _useState14 = (0, _slicedToArray2.default)(_useState13, 2),
210
223
  editIng = _useState14[0],
211
224
  setEditIng = _useState14[1];
212
- /** 右键菜单是否显示 */
213
-
214
225
 
215
226
  var _useState15 = (0, _react.useState)(false),
216
227
  _useState16 = (0, _slicedToArray2.default)(_useState15, 2),
217
- contextMenuStatus = _useState16[0],
218
- setContextMenuStatus = _useState16[1];
228
+ commitIng = _useState16[0],
229
+ setCommitIng = _useState16[1];
230
+ /** 右键菜单是否显示 */
231
+
232
+
233
+ var _useState17 = (0, _react.useState)(false),
234
+ _useState18 = (0, _slicedToArray2.default)(_useState17, 2),
235
+ contextMenuStatus = _useState18[0],
236
+ setContextMenuStatus = _useState18[1];
219
237
  /** 右键按钮的位置 */
220
238
 
221
239
 
222
- var _useState17 = (0, _react.useState)({
240
+ var _useState19 = (0, _react.useState)({
223
241
  position: 'fixed',
224
242
  left: 300,
225
243
  top: 200
226
244
  }),
227
- _useState18 = (0, _slicedToArray2.default)(_useState17, 2),
228
- style = _useState18[0],
229
- setStyle = _useState18[1];
230
-
231
- var _useState19 = (0, _react.useState)(null),
232
245
  _useState20 = (0, _slicedToArray2.default)(_useState19, 2),
233
- chartsModalStatus = _useState20[0],
234
- setChartsModalStatus = _useState20[1]; // 列设置
235
-
246
+ style = _useState20[0],
247
+ setStyle = _useState20[1];
236
248
 
237
- var _useState21 = (0, _react.useState)(false),
249
+ var _useState21 = (0, _react.useState)(null),
238
250
  _useState22 = (0, _slicedToArray2.default)(_useState21, 2),
239
- columnsStateMap = _useState22[0],
240
- setColumnsStateMap = _useState22[1];
251
+ chartsModalStatus = _useState22[0],
252
+ setChartsModalStatus = _useState22[1]; // 列设置
253
+
254
+
255
+ var _useState23 = (0, _react.useState)(false),
256
+ _useState24 = (0, _slicedToArray2.default)(_useState23, 2),
257
+ columnsStateMap = _useState24[0],
258
+ setColumnsStateMap = _useState24[1];
241
259
 
242
260
  var SortableItem = (0, _reactSortableHoc.SortableElement)(function (props) {
243
261
  return /*#__PURE__*/_react.default.createElement("tr", props);
@@ -274,20 +292,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
274
292
  }
275
293
 
276
294
  return groupBy(dataSource, groupInfo);
277
- }, [dataSource, groupInfo]); // const deepDataSource = useMemo(() => {
278
- // let source = []
279
- // const deepChildren = (arr) => {
280
- // arr.forEach((item) => {
281
- // source.push(omit(item, 'children'))
282
- // if (item?.children && expandedRowKeys.includes(item.key)) {
283
- // deepChildren(item?.children)
284
- // }
285
- // })
286
- // }
287
- // deepChildren(groupDataSource)
288
- // return source
289
- // }, [groupDataSource, expandedRowKeys])
290
-
295
+ }, [dataSource, groupInfo]);
291
296
  (0, _react.useEffect)(function () {
292
297
  var source = [];
293
298
 
@@ -377,22 +382,50 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
377
382
  var _shellStatusRef$curre = shellStatusRef.current,
378
383
  start = _shellStatusRef$curre.start,
379
384
  end = _shellStatusRef$curre.end,
380
- editing = _shellStatusRef$curre.editing;
385
+ editing = _shellStatusRef$curre.editing,
386
+ commiting = _shellStatusRef$curre.commiting;
381
387
  var maxi = Math.max(start === null || start === void 0 ? void 0 : start.i, end.i);
382
388
  var mini = Math.min(start === null || start === void 0 ? void 0 : start.i, end.i);
383
389
  var maxj = Math.max(start === null || start === void 0 ? void 0 : start.j, end.j);
384
390
  var minj = Math.min(start === null || start === void 0 ? void 0 : start.j, end.j);
385
- var posX = j >= start.j && j <= end.j;
386
- var negX = j <= start.j && j >= end.j;
387
- var posY = i >= start.i && i <= end.i;
388
- var negY = i <= start.i && i >= end.i;
391
+ var isSelected = (0, _util.checkIsSelectd)(i, j, start, end);
389
392
  return {
390
- isSelected: posX && posY || negX && posY || negX && negY || posX && negY,
393
+ /** 是否选中 */
394
+ isSelected: isSelected,
395
+
396
+ /** 是否尾行 */
391
397
  isEnd: i === maxi && j >= minj && j <= maxj,
398
+
399
+ /** 是否尾列 */
392
400
  isRightEnd: j === maxj && i >= mini && i <= maxi,
393
- isEditing: (editing === null || editing === void 0 ? void 0 : editing.i) === i && (editing === null || editing === void 0 ? void 0 : editing.j) === j
401
+
402
+ /** 是否在编辑中 */
403
+ isEditing: (editing === null || editing === void 0 ? void 0 : editing.i) === i && (editing === null || editing === void 0 ? void 0 : editing.j) === j,
404
+
405
+ /** 是否有效拉伸 */
406
+ isVaildCommit: isEmpty(commiting) ? false : isSelected && !(0, _util.checkIsSelectd)(i, j, commiting === null || commiting === void 0 ? void 0 : commiting.start, commiting === null || commiting === void 0 ? void 0 : commiting.end)
394
407
  };
395
408
  };
409
+
410
+ var getSelectDatas = function getSelectDatas(start, end) {
411
+ return range(start.i, end.i).map(function (i) {
412
+ return range(start.j, end.j).map(function (j) {
413
+ var _columns$j, _columns$j2;
414
+
415
+ var columnKey = (_columns$j = columns[j]) === null || _columns$j === void 0 ? void 0 : _columns$j.dataIndex;
416
+ var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
417
+ var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
418
+
419
+ if ((_columns$j2 = columns[j]) === null || _columns$j2 === void 0 ? void 0 : _columns$j2.render) {
420
+ var _columns$j3, _columns$j3$render;
421
+
422
+ return (_columns$j3 = columns[j]) === null || _columns$j3 === void 0 ? void 0 : (_columns$j3$render = _columns$j3.render) === null || _columns$j3$render === void 0 ? void 0 : _columns$j3$render.call(_columns$j3, cell, dataItem, i);
423
+ }
424
+
425
+ return cell;
426
+ }).join('\t');
427
+ }).join('\n');
428
+ };
396
429
  /** 复制功能 */
397
430
 
398
431
 
@@ -402,27 +435,11 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
402
435
  if (isEmpty((_shellStatusRef$curre2 = shellStatusRef.current) === null || _shellStatusRef$curre2 === void 0 ? void 0 : _shellStatusRef$curre2.editing)) {
403
436
  var _e$clipboardData;
404
437
 
405
- e.preventDefault();
438
+ e === null || e === void 0 ? void 0 : e.preventDefault();
406
439
  var _shellStatusRef$curre3 = shellStatusRef.current,
407
440
  start = _shellStatusRef$curre3.start,
408
441
  end = _shellStatusRef$curre3.end;
409
- var text = range(start.i, end.i).map(function (i) {
410
- return range(start.j, end.j).map(function (j) {
411
- var _columns$j, _columns$j2;
412
-
413
- var columnKey = (_columns$j = columns[j]) === null || _columns$j === void 0 ? void 0 : _columns$j.dataIndex;
414
- var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
415
- var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
416
-
417
- if ((_columns$j2 = columns[j]) === null || _columns$j2 === void 0 ? void 0 : _columns$j2.render) {
418
- var _columns$j3, _columns$j3$render;
419
-
420
- return (_columns$j3 = columns[j]) === null || _columns$j3 === void 0 ? void 0 : (_columns$j3$render = _columns$j3.render) === null || _columns$j3$render === void 0 ? void 0 : _columns$j3$render.call(_columns$j3, cell, dataItem, i);
421
- }
422
-
423
- return cell;
424
- }).join('\t');
425
- }).join('\n');
442
+ var text = getSelectDatas(start, end);
426
443
 
427
444
  if (window.clipboardData && window.clipboardData.setData) {
428
445
  window.clipboardData.setData('Text', text);
@@ -441,42 +458,165 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
441
458
  };
442
459
 
443
460
  var onMouseOver = function onMouseOver(i, j) {
444
- var _shellStatusRef$curre4, _shellStatusRef$curre5;
461
+ var _shellStatusRef$curre4;
445
462
 
446
- if (((_shellStatusRef$curre4 = shellStatusRef.current) === null || _shellStatusRef$curre4 === void 0 ? void 0 : _shellStatusRef$curre4.selecting) && isEmpty((_shellStatusRef$curre5 = shellStatusRef.current) === null || _shellStatusRef$curre5 === void 0 ? void 0 : _shellStatusRef$curre5.editing)) {
447
- shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
448
- end: {
449
- i: i,
450
- j: j
451
- }
452
- });
453
- setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
454
- end: {
455
- i: i,
456
- j: j
457
- }
458
- }));
463
+ if (isEmpty(shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre4 = shellStatusRef.current) === null || _shellStatusRef$curre4 === void 0 ? void 0 : _shellStatusRef$curre4.commiting)) {
464
+ var _shellStatusRef$curre5, _shellStatusRef$curre6;
465
+
466
+ if ((shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre5 = shellStatusRef.current) === null || _shellStatusRef$curre5 === void 0 ? void 0 : _shellStatusRef$curre5.selecting) && isEmpty(shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre6 = shellStatusRef.current) === null || _shellStatusRef$curre6 === void 0 ? void 0 : _shellStatusRef$curre6.editing)) {
467
+ shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
468
+ end: {
469
+ i: i,
470
+ j: j
471
+ }
472
+ });
473
+ setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
474
+ end: {
475
+ i: i,
476
+ j: j
477
+ }
478
+ }));
479
+ }
480
+ } else {
481
+ var _shellStatusRef$curre7, _checkStatus, _shellStatusRef$curre8;
482
+
483
+ if (!isEmpty((shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre7 = shellStatusRef.current) === null || _shellStatusRef$curre7 === void 0 ? void 0 : _shellStatusRef$curre7.commiting) || {}) && ((_checkStatus = (0, _util.checkStatus)(i, j, shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre8 = shellStatusRef.current) === null || _shellStatusRef$curre8 === void 0 ? void 0 : _shellStatusRef$curre8.commiting)) === null || _checkStatus === void 0 ? void 0 : _checkStatus.isVaildCommit)) {
484
+ shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
485
+ end: {
486
+ i: i,
487
+ j: j
488
+ }
489
+ });
490
+ setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
491
+ end: {
492
+ i: i,
493
+ j: j
494
+ }
495
+ }));
496
+ }
459
497
  }
460
498
  };
461
499
  /** sheel 表格 鼠标松开 */
462
500
 
463
501
 
464
502
  var sheelOnMouseUp = function sheelOnMouseUp() {
465
- setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
466
- selecting: false
467
- }));
468
- shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
469
- selecting: false
470
- });
503
+ var _shellStatusRef$curre9;
504
+
505
+ if (!isEmpty((_shellStatusRef$curre9 = shellStatusRef.current) === null || _shellStatusRef$curre9 === void 0 ? void 0 : _shellStatusRef$curre9.commiting)) {
506
+ var _commiting$start, _commiting$end, _commiting$start2, _commiting$end2, _difference, _difference2, _obj$i;
507
+
508
+ var _shellStatusRef$curre10 = shellStatusRef.current,
509
+ start = _shellStatusRef$curre10.start,
510
+ end = _shellStatusRef$curre10.end,
511
+ commiting = _shellStatusRef$curre10.commiting;
512
+ var columnsKeysList = columns.map(function (item) {
513
+ return item.dataIndex;
514
+ });
515
+ var rowtext = range(commiting === null || commiting === void 0 ? void 0 : commiting.start.i, commiting === null || commiting === void 0 ? void 0 : commiting.end.i).map(function (i) {
516
+ return columnsKeysList.map(function (j) {
517
+ var columnKey = j;
518
+ var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
519
+ var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
520
+ return cell;
521
+ });
522
+ });
523
+ var coltext = range(commiting === null || commiting === void 0 ? void 0 : commiting.start.i, commiting === null || commiting === void 0 ? void 0 : commiting.end.i).map(function (i) {
524
+ return range(commiting === null || commiting === void 0 ? void 0 : commiting.start.j, commiting === null || commiting === void 0 ? void 0 : commiting.end.j).map(function (j) {
525
+ var _columns$j4, _columns$j5;
526
+
527
+ var columnKey = (_columns$j4 = columns[j]) === null || _columns$j4 === void 0 ? void 0 : _columns$j4.dataIndex;
528
+ var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
529
+ var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
530
+
531
+ if ((_columns$j5 = columns[j]) === null || _columns$j5 === void 0 ? void 0 : _columns$j5.render) {
532
+ var _columns$j6, _columns$j6$render;
533
+
534
+ return (_columns$j6 = columns[j]) === null || _columns$j6 === void 0 ? void 0 : (_columns$j6$render = _columns$j6.render) === null || _columns$j6$render === void 0 ? void 0 : _columns$j6$render.call(_columns$j6, cell, dataItem, i);
535
+ }
536
+
537
+ return cell;
538
+ });
539
+ });
540
+ var selectedRange = {
541
+ i: range(start.i, end.i),
542
+ j: range(start.j, end.j)
543
+ };
544
+ var commitRange = {
545
+ i: range(commiting === null || commiting === void 0 ? void 0 : (_commiting$start = commiting.start) === null || _commiting$start === void 0 ? void 0 : _commiting$start.i, commiting === null || commiting === void 0 ? void 0 : (_commiting$end = commiting.end) === null || _commiting$end === void 0 ? void 0 : _commiting$end.i),
546
+ j: range(commiting === null || commiting === void 0 ? void 0 : (_commiting$start2 = commiting.start) === null || _commiting$start2 === void 0 ? void 0 : _commiting$start2.j, commiting === null || commiting === void 0 ? void 0 : (_commiting$end2 = commiting.end) === null || _commiting$end2 === void 0 ? void 0 : _commiting$end2.j)
547
+ };
548
+ var obj = {
549
+ i: [],
550
+ j: []
551
+ };
552
+ var type = '';
553
+
554
+ if ((_difference = (0, _lodash.difference)(selectedRange.i, commitRange.i)) === null || _difference === void 0 ? void 0 : _difference.length) {
555
+ obj = {
556
+ i: (0, _lodash.difference)(selectedRange.i, commitRange.i),
557
+ j: selectedRange.j
558
+ };
559
+ type = 'row';
560
+ } else if ((_difference2 = (0, _lodash.difference)(selectedRange.j, commitRange.j)) === null || _difference2 === void 0 ? void 0 : _difference2.length) {
561
+ obj = {
562
+ i: selectedRange.i,
563
+ j: (0, _lodash.difference)(selectedRange.j, commitRange.j)
564
+ };
565
+ type = 'col';
566
+ }
567
+
568
+ var data = (0, _lodash.cloneDeep)(dataSourceRef.current);
569
+ (_obj$i = obj.i) === null || _obj$i === void 0 ? void 0 : _obj$i.map(function (tri, index) {
570
+ var _obj$j;
571
+
572
+ (_obj$j = obj.j) === null || _obj$j === void 0 ? void 0 : _obj$j.map(function (tdj) {
573
+ var _isSelected;
574
+
575
+ if ((_isSelected = isSelected(tri, tdj)) === null || _isSelected === void 0 ? void 0 : _isSelected.isSelected) {
576
+ if (type === 'row') {
577
+ var _rowtext;
578
+
579
+ data[tri][columnsKeysList[tdj]] = (_rowtext = rowtext[index % rowtext.length]) === null || _rowtext === void 0 ? void 0 : _rowtext[tdj];
580
+ } else {
581
+ var _coltext;
582
+
583
+ data[tri][columnsKeysList[tdj]] = (_coltext = coltext[index % coltext.length]) === null || _coltext === void 0 ? void 0 : _coltext[tdj % coltext[index % coltext.length].length];
584
+ }
585
+ }
586
+ });
587
+ });
588
+
589
+ if (editSheet) {
590
+ dataChange === null || dataChange === void 0 ? void 0 : dataChange(data);
591
+ }
592
+
593
+ setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
594
+ selecting: false,
595
+ commiting: {}
596
+ }));
597
+ shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
598
+ selecting: false,
599
+ commiting: {}
600
+ });
601
+ setCommitIng(false);
602
+ } else {
603
+ setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
604
+ selecting: false
605
+ }));
606
+ shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
607
+ selecting: false
608
+ });
609
+ }
610
+
471
611
  document.removeEventListener('mouseup', sheelOnMouseUp);
472
612
  };
473
613
  /** 剪切内容 */
474
614
 
475
615
 
476
616
  var handleCut = function handleCut(e) {
477
- var _shellStatusRef$curre6;
617
+ var _shellStatusRef$curre11;
478
618
 
479
- if (isEmpty((_shellStatusRef$curre6 = shellStatusRef.current) === null || _shellStatusRef$curre6 === void 0 ? void 0 : _shellStatusRef$curre6.editing)) {
619
+ if (isEmpty((_shellStatusRef$curre11 = shellStatusRef.current) === null || _shellStatusRef$curre11 === void 0 ? void 0 : _shellStatusRef$curre11.editing)) {
480
620
  e.preventDefault();
481
621
  handleCopy(e);
482
622
  /** 暂时先不隐藏 */
@@ -488,12 +628,12 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
488
628
 
489
629
 
490
630
  var handlePaste = function handlePaste(e) {
491
- var _shellStatusRef$curre7;
631
+ var _shellStatusRef$curre12;
492
632
 
493
- if (isEmpty((_shellStatusRef$curre7 = shellStatusRef.current) === null || _shellStatusRef$curre7 === void 0 ? void 0 : _shellStatusRef$curre7.editing)) {
494
- var _shellStatusRef$curre8 = shellStatusRef.current,
495
- start = _shellStatusRef$curre8.start,
496
- end = _shellStatusRef$curre8.end;
633
+ if (isEmpty((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing)) {
634
+ var _shellStatusRef$curre13 = shellStatusRef.current,
635
+ start = _shellStatusRef$curre13.start,
636
+ end = _shellStatusRef$curre13.end;
497
637
  start = {
498
638
  i: Math.min(start.i, end.i),
499
639
  j: Math.min(start.j, end.j)
@@ -530,9 +670,9 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
530
670
  });
531
671
  var res = (0, _immer.produce)(dataSourceRef.current, function (draft) {
532
672
  resultEnd.forEach(function (item) {
533
- var _isSelected;
673
+ var _isSelected2;
534
674
 
535
- if ((_isSelected = isSelected(item.i, item.j)) === null || _isSelected === void 0 ? void 0 : _isSelected.isSelected) {
675
+ if ((_isSelected2 = isSelected(item.i, item.j)) === null || _isSelected2 === void 0 ? void 0 : _isSelected2.isSelected) {
536
676
  draft[item.i][columnsKeysList[item.j]] = item.value;
537
677
  }
538
678
  });
@@ -556,9 +696,10 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
556
696
  selecting: false,
557
697
  forceEdit: false,
558
698
  editing: {},
559
- clear: {}
699
+ clear: {},
700
+ commiting: {}
560
701
  };
561
- SetSelectIng(false);
702
+ setSelectIng(false);
562
703
  document.removeEventListener('mousedown', pageClick);
563
704
  document.removeEventListener('mouseup', sheelOnMouseUp);
564
705
  document.removeEventListener('cut', handleCut);
@@ -576,15 +717,22 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
576
717
  };
577
718
  /** sheel 表格 鼠标点击 */
578
719
 
720
+ /**
721
+ * i 行
722
+ * j 列
723
+ * e 点击元素
724
+ * commitStatus boolena 是否点击了快速选择
725
+ */
579
726
 
580
- var sheelMouseDown = function sheelMouseDown(i, j, e) {
581
- var _shellStatusRef$curre9, _shellStatusRef$curre10, _shellStatusRef$curre11, _shellStatusRef$curre12, _shellStatusRef$curre13, _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17;
582
727
 
583
- var isNowEditingSameCell = !isEmpty((_shellStatusRef$curre9 = shellStatusRef.current) === null || _shellStatusRef$curre9 === void 0 ? void 0 : _shellStatusRef$curre9.editing) && ((_shellStatusRef$curre10 = shellStatusRef.current) === null || _shellStatusRef$curre10 === void 0 ? void 0 : _shellStatusRef$curre10.editing.i) === i && ((_shellStatusRef$curre11 = shellStatusRef.current) === null || _shellStatusRef$curre11 === void 0 ? void 0 : _shellStatusRef$curre11.editing.j) === j;
584
- var editing = isEmpty((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing) || ((_shellStatusRef$curre13 = shellStatusRef.current) === null || _shellStatusRef$curre13 === void 0 ? void 0 : _shellStatusRef$curre13.editing.i) !== i || ((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing.j) !== j ? {} : (_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing;
728
+ var sheelMouseDown = function sheelMouseDown(i, j, e, commitStatus) {
729
+ var _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17, _shellStatusRef$curre18, _shellStatusRef$curre19, _shellStatusRef$curre20, _shellStatusRef$curre21, _shellStatusRef$curre22, _shellStatusRef$curre23;
730
+
731
+ var isNowEditingSameCell = !isEmpty((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing) && ((_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing.i) === i && ((_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.editing.j) === j;
732
+ var editing = isEmpty((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing) || ((_shellStatusRef$curre18 = shellStatusRef.current) === null || _shellStatusRef$curre18 === void 0 ? void 0 : _shellStatusRef$curre18.editing.i) !== i || ((_shellStatusRef$curre19 = shellStatusRef.current) === null || _shellStatusRef$curre19 === void 0 ? void 0 : _shellStatusRef$curre19.editing.j) !== j ? {} : (_shellStatusRef$curre20 = shellStatusRef.current) === null || _shellStatusRef$curre20 === void 0 ? void 0 : _shellStatusRef$curre20.editing;
585
733
  shellStatusRef.current = {
586
734
  selecting: !isNowEditingSameCell,
587
- start: (e === null || e === void 0 ? void 0 : e.shiftKey) ? (_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.start : {
735
+ start: (e === null || e === void 0 ? void 0 : e.shiftKey) || commitStatus ? (_shellStatusRef$curre21 = shellStatusRef.current) === null || _shellStatusRef$curre21 === void 0 ? void 0 : _shellStatusRef$curre21.start : {
588
736
  i: i,
589
737
  j: j
590
738
  },
@@ -593,11 +741,22 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
593
741
  j: j
594
742
  },
595
743
  editing: editing,
596
- forceEdit: !!isNowEditingSameCell
744
+ forceEdit: !!isNowEditingSameCell,
745
+ commiting: commitStatus ? {
746
+ start: (_shellStatusRef$curre22 = shellStatusRef.current) === null || _shellStatusRef$curre22 === void 0 ? void 0 : _shellStatusRef$curre22.start,
747
+ end: {
748
+ i: i,
749
+ j: j
750
+ }
751
+ } : {}
597
752
  };
598
- SetSelectIng(!isNowEditingSameCell);
753
+ setSelectIng(!isNowEditingSameCell);
599
754
 
600
- if (isEmpty((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing)) {
755
+ if (commitStatus) {
756
+ setCommitIng(true);
757
+ }
758
+
759
+ if (isEmpty((_shellStatusRef$curre23 = shellStatusRef.current) === null || _shellStatusRef$curre23 === void 0 ? void 0 : _shellStatusRef$curre23.editing)) {
601
760
  setEditIng(false);
602
761
  }
603
762
 
@@ -607,17 +766,24 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
607
766
  document.addEventListener('copy', handleCopy);
608
767
  document.addEventListener('paste', handlePaste);
609
768
  };
769
+ /** 鼠标右键点击事件 */
770
+
610
771
 
611
772
  var onContextMenu = function onContextMenu(evt, i, j) {
612
773
  evt.preventDefault();
613
- var _shellStatusRef$curre18 = shellStatusRef.current,
614
- start = _shellStatusRef$curre18.start,
615
- end = _shellStatusRef$curre18.end;
774
+ var _shellStatusRef$curre24 = shellStatusRef.current,
775
+ start = _shellStatusRef$curre24.start,
776
+ end = _shellStatusRef$curre24.end;
777
+ /** 如果表格当前没有选择,则把当前的右击的td块默认选中 */
616
778
 
617
779
  if (isEmpty(start) && isEmpty(end)) {
618
780
  sheelMouseDown(i, j, evt);
619
781
  }
620
782
 
783
+ if (!(0, _util.checkIsSelectd)(i, j, start, end)) {
784
+ sheelMouseDown(i, j, evt);
785
+ }
786
+
621
787
  setContextMenuStatus(true); // 获得点击的位置
622
788
 
623
789
  var clientX = evt.clientX,
@@ -705,6 +871,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
705
871
  colIndex: index,
706
872
  selectIng: selectIng,
707
873
  editIng: editIng,
874
+ commitIng: commitIng,
708
875
  rowIndex: rowIndex,
709
876
  onMouseDown: sheelMouseDown,
710
877
  onMouseOver: onMouseOver,
@@ -728,7 +895,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
728
895
  }
729
896
 
730
897
  return sortOpen ? [sortDefaultColumnItem].concat((0, _toConsumableArray2.default)(result)) : result;
731
- }, [useColumns, sortOpen, selectIng, dataSource, groupInfo]);
898
+ }, [useColumns, sortOpen, selectIng, dataSource, groupInfo, commitIng]);
732
899
  (0, _react.useEffect)(function () {
733
900
  setColumns(columns);
734
901
  }, [columns]); // 行点击事件
@@ -908,19 +1075,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
908
1075
  selectedRows: []
909
1076
  });
910
1077
  }, [loading]);
911
- /** 自定义空状态 */
912
-
913
- var customizeRenderEmpty = function customizeRenderEmpty() {
914
- return /*#__PURE__*/_react.default.createElement("div", {
915
- className: "lm_table_empty"
916
- }, /*#__PURE__*/_react.default.createElement("div", {
917
- className: "empty_img",
918
- style: {
919
- width: '130px',
920
- height: '80px'
921
- }
922
- }), /*#__PURE__*/_react.default.createElement("span", null, "\u6682\u65E0\u6570\u636E"));
923
- };
924
1078
 
925
1079
  var onTableChange = function onTableChange(pagination, filters, sorter, extra) {
926
1080
  var resultColumns = useColumns.map(function (item) {
@@ -992,49 +1146,28 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
992
1146
  }));
993
1147
  }, [columns]);
994
1148
  var tableComponents = (0, _react.useMemo)(function () {
995
- var obj = {// table: (record) => {
1149
+ var _ref5 = components || {},
1150
+ _ref5$body = _ref5.body,
1151
+ body = _ref5$body === void 0 ? {} : _ref5$body,
1152
+ _ref5$header = _ref5.header,
1153
+ header = _ref5$header === void 0 ? {} : _ref5$header;
1154
+
1155
+ return {
1156
+ // table: (record) => {
996
1157
  // return <div style={record.style}>{record.children}</div>
997
1158
  // }
1159
+ table: virtual ? _virTual.VirtualTable : null,
1160
+ header: (0, _objectSpread2.default)({
1161
+ row: colSortOpen ? colDraggableContainer : null,
1162
+ cell: resizeable ? ResizableTitle : null
1163
+ }, header),
1164
+ body: (0, _objectSpread2.default)((0, _objectSpread2.default)({
1165
+ wrapper: sortOpen ? DraggableContainer : virtual ? _virTual.VirtualWrapper : null,
1166
+ row: sortOpen ? DraggableBodyRow : virtual ? _virTual.VirtualRow : null
1167
+ }, body), {}, {
1168
+ cell: openSheet ? _sheelTableCell.default : null
1169
+ })
998
1170
  };
999
-
1000
- if (sortOpen) {
1001
- obj.body = {
1002
- wrapper: DraggableContainer,
1003
- row: DraggableBodyRow
1004
- };
1005
- }
1006
-
1007
- if (resizeable) {
1008
- obj.header = {
1009
- cell: ResizableTitle
1010
- };
1011
- }
1012
-
1013
- if (colSortOpen) {
1014
- obj.header = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, obj.header), {}, {
1015
- row: colDraggableContainer
1016
- });
1017
- }
1018
-
1019
- if (components) {
1020
- var _components$body = components.body,
1021
- body = _components$body === void 0 ? {} : _components$body,
1022
- _components$header = components.header,
1023
- header = _components$header === void 0 ? {} : _components$header;
1024
- obj.body = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, obj.body), body);
1025
- obj.header = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, obj.header), header);
1026
- }
1027
-
1028
- if (openSheet) {
1029
- if (obj.body) {
1030
- obj.body.cell = _sheelTableCell.default;
1031
- } else {
1032
- obj.body = {};
1033
- obj.body.cell = _sheelTableCell.default;
1034
- }
1035
- }
1036
-
1037
- return obj;
1038
1171
  }, [sortOpen, resizeable, components, colSortOpen]);
1039
1172
  return /*#__PURE__*/_react.default.createElement("div", {
1040
1173
  style: {
@@ -1046,8 +1179,8 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1046
1179
  renderEmpty: loading ? function () {
1047
1180
  return null;
1048
1181
  } : emptyProps ? function () {
1049
- return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Empty, emptyProps, (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.footer) || null);
1050
- } : customizeRenderEmpty
1182
+ return /*#__PURE__*/_react.default.createElement(_Empty.default, emptyProps, (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.footer) || null);
1183
+ } : _customRenderEmpty.default
1051
1184
  }, colSortOpen ? /*#__PURE__*/_react.default.createElement(_DndContainer.default, {
1052
1185
  move: onColSortEnd
1053
1186
  }, /*#__PURE__*/_react.default.createElement(_sortableBoxCol.default, {
@@ -1067,7 +1200,8 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1067
1200
  selecting: false,
1068
1201
  forceEdit: false,
1069
1202
  editing: {},
1070
- clear: {}
1203
+ clear: {},
1204
+ commiting: {}
1071
1205
  };
1072
1206
  },
1073
1207
  expandedRowKeys: expandedRowKeys,
@@ -1092,7 +1226,8 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1092
1226
  selecting: false,
1093
1227
  forceEdit: false,
1094
1228
  editing: {},
1095
- clear: {}
1229
+ clear: {},
1230
+ commiting: {}
1096
1231
  };
1097
1232
  },
1098
1233
  expandedRowKeys: expandedRowKeys,
@@ -1148,13 +1283,13 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1148
1283
  var _props$autoSizer = props.autoSizer,
1149
1284
  autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer;
1150
1285
 
1151
- var _useState23 = (0, _react.useState)({
1286
+ var _useState25 = (0, _react.useState)({
1152
1287
  width: '100%',
1153
1288
  height: '100%'
1154
1289
  }),
1155
- _useState24 = (0, _slicedToArray2.default)(_useState23, 2),
1156
- tableSize = _useState24[0],
1157
- setTableSize = _useState24[1];
1290
+ _useState26 = (0, _slicedToArray2.default)(_useState25, 2),
1291
+ tableSize = _useState26[0],
1292
+ setTableSize = _useState26[1];
1158
1293
 
1159
1294
  var defaultRef = ref || (0, _react.useRef)(null);
1160
1295
  var tableWarpRef = (0, _react.useRef)(null);
@@ -1212,11 +1347,11 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1212
1347
 
1213
1348
  var value = props.summary ? 48 : 0;
1214
1349
 
1215
- var _ref5 = ((_tableWarpRef$current = tableWarpRef.current) === null || _tableWarpRef$current === void 0 ? void 0 : _tableWarpRef$current.getBoundingClientRect()) || {},
1216
- _ref5$width = _ref5.width,
1217
- width = _ref5$width === void 0 ? '100%' : _ref5$width,
1218
- _ref5$height = _ref5.height,
1219
- height = _ref5$height === void 0 ? '100%' : _ref5$height;
1350
+ var _ref6 = ((_tableWarpRef$current = tableWarpRef.current) === null || _tableWarpRef$current === void 0 ? void 0 : _tableWarpRef$current.getBoundingClientRect()) || {},
1351
+ _ref6$width = _ref6.width,
1352
+ width = _ref6$width === void 0 ? '100%' : _ref6$width,
1353
+ _ref6$height = _ref6.height,
1354
+ height = _ref6$height === void 0 ? '100%' : _ref6$height;
1220
1355
 
1221
1356
  setTableSize({
1222
1357
  width: width,