shineout 1.8.5 → 1.8.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/Table/SeperateTable.js +39 -45
- package/css/Table/TreeExpand.js +3 -2
- package/css/Table/index.d.ts +9 -0
- package/css/Table/index.js +1 -1
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +58 -62
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Table/SeperateTable.js +39 -45
- package/es/Table/TreeExpand.js +3 -2
- package/es/Table/index.d.ts +9 -0
- package/es/Table/index.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Table/SeperateTable.js +39 -45
- package/lib/Table/TreeExpand.js +3 -2
- package/lib/Table/index.d.ts +9 -0
- package/lib/Table/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -225,6 +225,22 @@ function (_PureComponent) {
|
|
|
225
225
|
|
|
226
226
|
};
|
|
227
227
|
|
|
228
|
+
_proto.setTop = function setTop(scrollHeight, fullHeight, top) {
|
|
229
|
+
var _this2 = this;
|
|
230
|
+
|
|
231
|
+
var offsetLeft = this.state.offsetLeft;
|
|
232
|
+
this.tbody.style.marginTop = scrollHeight * top + "px";
|
|
233
|
+
this.lastScrollTop = fullHeight * top;
|
|
234
|
+
(0, _translate.setTranslate)(this.tbody, "-" + offsetLeft + "px", "-" + this.lastScrollTop + "px");
|
|
235
|
+
setTimeout(function () {
|
|
236
|
+
_this2.setState({
|
|
237
|
+
scrollTop: top
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
_this2.lastScrollArgs[1] = top;
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
|
|
228
244
|
_proto.checkScrollToIndex = function checkScrollToIndex(index, outerHeight) {
|
|
229
245
|
var _this$props3 = this.props,
|
|
230
246
|
data = _this$props3.data,
|
|
@@ -245,7 +261,7 @@ function (_PureComponent) {
|
|
|
245
261
|
};
|
|
246
262
|
|
|
247
263
|
_proto.ajustBottom = function ajustBottom(dataChange) {
|
|
248
|
-
var
|
|
264
|
+
var _this3 = this;
|
|
249
265
|
|
|
250
266
|
var reachBottom = this.lastScrollArgs[1] === 1;
|
|
251
267
|
var drag = this.lastScrollArgs[8];
|
|
@@ -254,7 +270,7 @@ function (_PureComponent) {
|
|
|
254
270
|
if (this.ajustBottomScroll) return;
|
|
255
271
|
this.ajustBottomScroll = true;
|
|
256
272
|
setTimeout(function () {
|
|
257
|
-
|
|
273
|
+
_this3.handleScroll.apply(_this3, _this3.lastScrollArgs);
|
|
258
274
|
});
|
|
259
275
|
}
|
|
260
276
|
};
|
|
@@ -314,11 +330,9 @@ function (_PureComponent) {
|
|
|
314
330
|
};
|
|
315
331
|
|
|
316
332
|
_proto.resetHeight = function resetHeight() {
|
|
317
|
-
var
|
|
333
|
+
var _this4 = this;
|
|
318
334
|
|
|
319
|
-
var
|
|
320
|
-
scrollTop = _this$state2.scrollTop,
|
|
321
|
-
offsetLeft = _this$state2.offsetLeft;
|
|
335
|
+
var scrollTop = this.state.scrollTop;
|
|
322
336
|
var _this$props4 = this.props,
|
|
323
337
|
treeColumnsName = _this$props4.treeColumnsName,
|
|
324
338
|
changedByExpand = _this$props4.changedByExpand;
|
|
@@ -349,32 +363,16 @@ function (_PureComponent) {
|
|
|
349
363
|
if (fullHeight <= scrollHeight) {
|
|
350
364
|
index = 0;
|
|
351
365
|
} else {
|
|
352
|
-
this.
|
|
353
|
-
(0, _translate.setTranslate)(this.tbody, "-" + offsetLeft + "px", "-" + fullHeight + "px");
|
|
354
|
-
this.lastScrollTop = fullHeight;
|
|
366
|
+
this.setTop(scrollHeight, fullHeight, 1);
|
|
355
367
|
return;
|
|
356
368
|
}
|
|
357
369
|
}
|
|
358
370
|
}
|
|
359
371
|
|
|
360
372
|
if (index === 0) {
|
|
361
|
-
this.
|
|
362
|
-
setTimeout(function () {
|
|
363
|
-
_this3.setState({
|
|
364
|
-
scrollTop: 0
|
|
365
|
-
});
|
|
366
|
-
});
|
|
367
|
-
this.tbody.style.marginTop = '0px';
|
|
368
|
-
(0, _translate.setTranslate)(this.tbody, "-" + offsetLeft + "px", '0px');
|
|
373
|
+
this.setTop(scrollHeight, fullHeight, 0);
|
|
369
374
|
} else if (fullHeight - this.lastScrollTop < (1 - this.lastScrollArgs[1]) * scrollHeight) {
|
|
370
|
-
this.
|
|
371
|
-
(0, _translate.setTranslate)(this.tbody, "-" + offsetLeft + "px", "-" + fullHeight + "px");
|
|
372
|
-
this.lastScrollTop = fullHeight;
|
|
373
|
-
setTimeout(function () {
|
|
374
|
-
_this3.setState({
|
|
375
|
-
scrollTop: 1
|
|
376
|
-
});
|
|
377
|
-
});
|
|
375
|
+
this.setTop(scrollHeight, fullHeight, 1);
|
|
378
376
|
} else {
|
|
379
377
|
var keepTop = this.lastScrollTop - this.lastScrollArgs[1] * scrollHeight; // keepTop = scrollTopLength - scrollTopLength/fullHeight * scrollHeight
|
|
380
378
|
// keepTop = (1 - scrollHeight / fullHeight) * scrollTopLength
|
|
@@ -382,18 +380,14 @@ function (_PureComponent) {
|
|
|
382
380
|
var scrollTopLength = keepTop / (1 - scrollHeight / fullHeight);
|
|
383
381
|
this.lastScrollTop = scrollTopLength;
|
|
384
382
|
var st = this.lastScrollTop / fullHeight;
|
|
385
|
-
this.
|
|
386
|
-
(0, _translate.setTranslate)(this.tbody, "-" + offsetLeft + "px", "-" + this.lastScrollTop + "px");
|
|
387
|
-
setTimeout(function () {
|
|
388
|
-
_this3.setState({
|
|
389
|
-
scrollTop: st
|
|
390
|
-
});
|
|
391
|
-
});
|
|
383
|
+
this.setTop(scrollHeight, fullHeight, st);
|
|
392
384
|
}
|
|
393
385
|
} else if (this.lastScrollTop - height < 1) {
|
|
394
386
|
setTimeout(function () {
|
|
395
|
-
|
|
396
|
-
|
|
387
|
+
_this4.lastScrollArgs[1] = _this4.lastScrollTop / fullHeight;
|
|
388
|
+
|
|
389
|
+
_this4.setState({
|
|
390
|
+
scrollTop: _this4.lastScrollTop / fullHeight
|
|
397
391
|
});
|
|
398
392
|
});
|
|
399
393
|
}
|
|
@@ -637,14 +631,14 @@ function (_PureComponent) {
|
|
|
637
631
|
innerScrollAttr = _this$props7.innerScrollAttr,
|
|
638
632
|
bordered = _this$props7.bordered,
|
|
639
633
|
others = (0, _objectWithoutPropertiesLoose2.default)(_this$props7, ["data", "rowsInView", "columns", "width", "fixed", "rowHeight", "columnResizable", "innerScrollAttr", "bordered"]);
|
|
640
|
-
var _this$
|
|
641
|
-
colgroup = _this$
|
|
642
|
-
scrollTop = _this$
|
|
643
|
-
scrollLeft = _this$
|
|
644
|
-
offsetLeft = _this$
|
|
645
|
-
offsetRight = _this$
|
|
646
|
-
currentIndex = _this$
|
|
647
|
-
resize = _this$
|
|
634
|
+
var _this$state2 = this.state,
|
|
635
|
+
colgroup = _this$state2.colgroup,
|
|
636
|
+
scrollTop = _this$state2.scrollTop,
|
|
637
|
+
scrollLeft = _this$state2.scrollLeft,
|
|
638
|
+
offsetLeft = _this$state2.offsetLeft,
|
|
639
|
+
offsetRight = _this$state2.offsetRight,
|
|
640
|
+
currentIndex = _this$state2.currentIndex,
|
|
641
|
+
resize = _this$state2.resize;
|
|
648
642
|
var contentWidth = this.getContentWidth();
|
|
649
643
|
var minWidthSup = columns.find(function (d) {
|
|
650
644
|
return d.minWidth;
|
|
@@ -753,9 +747,9 @@ function (_PureComponent) {
|
|
|
753
747
|
var _this$props9 = this.props,
|
|
754
748
|
fixed = _this$props9.fixed,
|
|
755
749
|
hideHeader = _this$props9.hideHeader;
|
|
756
|
-
var _this$
|
|
757
|
-
scrollLeft = _this$
|
|
758
|
-
floatFixed = _this$
|
|
750
|
+
var _this$state3 = this.state,
|
|
751
|
+
scrollLeft = _this$state3.scrollLeft,
|
|
752
|
+
floatFixed = _this$state3.floatFixed;
|
|
759
753
|
var floatClass = [];
|
|
760
754
|
|
|
761
755
|
if (floatFixed) {
|
package/css/Table/TreeExpand.js
CHANGED
|
@@ -169,7 +169,7 @@ var _default = function _default(WrappedComponent) {
|
|
|
169
169
|
}).length === 0;
|
|
170
170
|
var treeIndent = this.getTreeIndent();
|
|
171
171
|
return _react.default.createElement(WrappedComponent, (0, _extends2.default)({}, this.props, {
|
|
172
|
-
changedByExpand: this.changedByExpand,
|
|
172
|
+
changedByExpand: this.changedByExpand || this.props.changedByExpand,
|
|
173
173
|
data: data,
|
|
174
174
|
onTreeExpand: this.handleTreeExpand,
|
|
175
175
|
treeExpandKeys: expandKeys,
|
|
@@ -187,7 +187,8 @@ var _default = function _default(WrappedComponent) {
|
|
|
187
187
|
treeColumnsName: _propTypes.default.string,
|
|
188
188
|
defaultTreeExpandKeys: _propTypes.default.array,
|
|
189
189
|
treeExpandKeys: _propTypes.default.array,
|
|
190
|
-
onTreeExpand: _propTypes.default.func
|
|
190
|
+
onTreeExpand: _propTypes.default.func,
|
|
191
|
+
changedByExpand: _propTypes.default.bool
|
|
191
192
|
});
|
|
192
193
|
TreeExpand.defaultProps = {
|
|
193
194
|
defaultTreeExpandKeys: []
|
package/css/Table/index.d.ts
CHANGED
|
@@ -542,6 +542,15 @@ export interface TableProps<Value, TRD> extends StandardProps, ListItemStandardP
|
|
|
542
542
|
*/
|
|
543
543
|
columnResizable?: boolean
|
|
544
544
|
|
|
545
|
+
/**
|
|
546
|
+
* Enable in specific scenarios (tree data expansion is controlled) Used to change the default behavior of scroll reset
|
|
547
|
+
*
|
|
548
|
+
* 在特定场景(树形数据展开受控)下开启 用来改变滚动条重置的默认行为
|
|
549
|
+
*
|
|
550
|
+
* default: false
|
|
551
|
+
*/
|
|
552
|
+
changedByExpand?: boolean
|
|
553
|
+
|
|
545
554
|
}
|
|
546
555
|
|
|
547
556
|
declare class Table<Value = any, TRD = TableRowData> extends React.Component<TableProps<Value, TRD>, {}> {
|
package/css/Table/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var _TreeExpand = _interopRequireDefault(require("./TreeExpand"));
|
|
|
33
33
|
|
|
34
34
|
var TableWithPagination = (0, _pagable.default)(_Table.default);
|
|
35
35
|
var TableWithTree = (0, _TreeExpand.default)(_Table.default);
|
|
36
|
-
var TableWithPT = (0, _func.compose)(
|
|
36
|
+
var TableWithPT = (0, _func.compose)(_pagable.default, _TreeExpand.default)(_Table.default);
|
|
37
37
|
|
|
38
38
|
var _default =
|
|
39
39
|
/*#__PURE__*/
|
package/css/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import './styles/normalize.less'
|
|
3
3
|
import * as utils from './utils'
|
|
4
4
|
|
|
5
|
-
export default { utils, version: '1.8.
|
|
5
|
+
export default { utils, version: '1.8.7-beta.1' }
|
|
6
6
|
export { utils }
|
|
7
7
|
export { setLocale } from './locale'
|
|
8
8
|
export { color, style } from './utils/expose'
|
package/css/index.js
CHANGED
package/dist/shineout.js
CHANGED
|
@@ -41493,6 +41493,23 @@ function (_PureComponent) {
|
|
|
41493
41493
|
// }
|
|
41494
41494
|
|
|
41495
41495
|
}
|
|
41496
|
+
}, {
|
|
41497
|
+
key: "setTop",
|
|
41498
|
+
value: function setTop(scrollHeight, fullHeight, top) {
|
|
41499
|
+
var _this2 = this;
|
|
41500
|
+
|
|
41501
|
+
var offsetLeft = this.state.offsetLeft;
|
|
41502
|
+
this.tbody.style.marginTop = "".concat(scrollHeight * top, "px");
|
|
41503
|
+
this.lastScrollTop = fullHeight * top;
|
|
41504
|
+
Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), "-".concat(this.lastScrollTop, "px"));
|
|
41505
|
+
setTimeout(function () {
|
|
41506
|
+
_this2.setState({
|
|
41507
|
+
scrollTop: top
|
|
41508
|
+
});
|
|
41509
|
+
|
|
41510
|
+
_this2.lastScrollArgs[1] = top;
|
|
41511
|
+
});
|
|
41512
|
+
}
|
|
41496
41513
|
}, {
|
|
41497
41514
|
key: "checkScrollToIndex",
|
|
41498
41515
|
value: function checkScrollToIndex(index, outerHeight) {
|
|
@@ -41516,7 +41533,7 @@ function (_PureComponent) {
|
|
|
41516
41533
|
}, {
|
|
41517
41534
|
key: "ajustBottom",
|
|
41518
41535
|
value: function ajustBottom(dataChange) {
|
|
41519
|
-
var
|
|
41536
|
+
var _this3 = this;
|
|
41520
41537
|
|
|
41521
41538
|
var reachBottom = this.lastScrollArgs[1] === 1;
|
|
41522
41539
|
var drag = this.lastScrollArgs[8];
|
|
@@ -41525,7 +41542,7 @@ function (_PureComponent) {
|
|
|
41525
41542
|
if (this.ajustBottomScroll) return;
|
|
41526
41543
|
this.ajustBottomScroll = true;
|
|
41527
41544
|
setTimeout(function () {
|
|
41528
|
-
|
|
41545
|
+
_this3.handleScroll.apply(_this3, Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_this3.lastScrollArgs));
|
|
41529
41546
|
});
|
|
41530
41547
|
}
|
|
41531
41548
|
}
|
|
@@ -41590,11 +41607,9 @@ function (_PureComponent) {
|
|
|
41590
41607
|
}, {
|
|
41591
41608
|
key: "resetHeight",
|
|
41592
41609
|
value: function resetHeight() {
|
|
41593
|
-
var
|
|
41610
|
+
var _this4 = this;
|
|
41594
41611
|
|
|
41595
|
-
var
|
|
41596
|
-
scrollTop = _this$state2.scrollTop,
|
|
41597
|
-
offsetLeft = _this$state2.offsetLeft;
|
|
41612
|
+
var scrollTop = this.state.scrollTop;
|
|
41598
41613
|
var _this$props4 = this.props,
|
|
41599
41614
|
treeColumnsName = _this$props4.treeColumnsName,
|
|
41600
41615
|
changedByExpand = _this$props4.changedByExpand;
|
|
@@ -41625,32 +41640,16 @@ function (_PureComponent) {
|
|
|
41625
41640
|
if (fullHeight <= scrollHeight) {
|
|
41626
41641
|
index = 0;
|
|
41627
41642
|
} else {
|
|
41628
|
-
this.
|
|
41629
|
-
Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), "-".concat(fullHeight, "px"));
|
|
41630
|
-
this.lastScrollTop = fullHeight;
|
|
41643
|
+
this.setTop(scrollHeight, fullHeight, 1);
|
|
41631
41644
|
return;
|
|
41632
41645
|
}
|
|
41633
41646
|
}
|
|
41634
41647
|
}
|
|
41635
41648
|
|
|
41636
41649
|
if (index === 0) {
|
|
41637
|
-
this.
|
|
41638
|
-
setTimeout(function () {
|
|
41639
|
-
_this3.setState({
|
|
41640
|
-
scrollTop: 0
|
|
41641
|
-
});
|
|
41642
|
-
});
|
|
41643
|
-
this.tbody.style.marginTop = '0px';
|
|
41644
|
-
Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), '0px');
|
|
41650
|
+
this.setTop(scrollHeight, fullHeight, 0);
|
|
41645
41651
|
} else if (fullHeight - this.lastScrollTop < (1 - this.lastScrollArgs[1]) * scrollHeight) {
|
|
41646
|
-
this.
|
|
41647
|
-
Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), "-".concat(fullHeight, "px"));
|
|
41648
|
-
this.lastScrollTop = fullHeight;
|
|
41649
|
-
setTimeout(function () {
|
|
41650
|
-
_this3.setState({
|
|
41651
|
-
scrollTop: 1
|
|
41652
|
-
});
|
|
41653
|
-
});
|
|
41652
|
+
this.setTop(scrollHeight, fullHeight, 1);
|
|
41654
41653
|
} else {
|
|
41655
41654
|
var keepTop = this.lastScrollTop - this.lastScrollArgs[1] * scrollHeight; // keepTop = scrollTopLength - scrollTopLength/fullHeight * scrollHeight
|
|
41656
41655
|
// keepTop = (1 - scrollHeight / fullHeight) * scrollTopLength
|
|
@@ -41658,18 +41657,14 @@ function (_PureComponent) {
|
|
|
41658
41657
|
var scrollTopLength = keepTop / (1 - scrollHeight / fullHeight);
|
|
41659
41658
|
this.lastScrollTop = scrollTopLength;
|
|
41660
41659
|
var st = this.lastScrollTop / fullHeight;
|
|
41661
|
-
this.
|
|
41662
|
-
Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), "-".concat(this.lastScrollTop, "px"));
|
|
41663
|
-
setTimeout(function () {
|
|
41664
|
-
_this3.setState({
|
|
41665
|
-
scrollTop: st
|
|
41666
|
-
});
|
|
41667
|
-
});
|
|
41660
|
+
this.setTop(scrollHeight, fullHeight, st);
|
|
41668
41661
|
}
|
|
41669
41662
|
} else if (this.lastScrollTop - height < 1) {
|
|
41670
41663
|
setTimeout(function () {
|
|
41671
|
-
|
|
41672
|
-
|
|
41664
|
+
_this4.lastScrollArgs[1] = _this4.lastScrollTop / fullHeight;
|
|
41665
|
+
|
|
41666
|
+
_this4.setState({
|
|
41667
|
+
scrollTop: _this4.lastScrollTop / fullHeight
|
|
41673
41668
|
});
|
|
41674
41669
|
});
|
|
41675
41670
|
}
|
|
@@ -41917,14 +41912,14 @@ function (_PureComponent) {
|
|
|
41917
41912
|
bordered = _this$props7.bordered,
|
|
41918
41913
|
others = Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props7, ["data", "rowsInView", "columns", "width", "fixed", "rowHeight", "columnResizable", "innerScrollAttr", "bordered"]);
|
|
41919
41914
|
|
|
41920
|
-
var _this$
|
|
41921
|
-
colgroup = _this$
|
|
41922
|
-
scrollTop = _this$
|
|
41923
|
-
scrollLeft = _this$
|
|
41924
|
-
offsetLeft = _this$
|
|
41925
|
-
offsetRight = _this$
|
|
41926
|
-
currentIndex = _this$
|
|
41927
|
-
resize = _this$
|
|
41915
|
+
var _this$state2 = this.state,
|
|
41916
|
+
colgroup = _this$state2.colgroup,
|
|
41917
|
+
scrollTop = _this$state2.scrollTop,
|
|
41918
|
+
scrollLeft = _this$state2.scrollLeft,
|
|
41919
|
+
offsetLeft = _this$state2.offsetLeft,
|
|
41920
|
+
offsetRight = _this$state2.offsetRight,
|
|
41921
|
+
currentIndex = _this$state2.currentIndex,
|
|
41922
|
+
resize = _this$state2.resize;
|
|
41928
41923
|
var contentWidth = this.getContentWidth();
|
|
41929
41924
|
var minWidthSup = columns.find(function (d) {
|
|
41930
41925
|
return d.minWidth;
|
|
@@ -41937,7 +41932,7 @@ function (_PureComponent) {
|
|
|
41937
41932
|
__self: this,
|
|
41938
41933
|
__source: {
|
|
41939
41934
|
fileName: _jsxFileName,
|
|
41940
|
-
lineNumber:
|
|
41935
|
+
lineNumber: 495,
|
|
41941
41936
|
columnNumber: 14
|
|
41942
41937
|
}
|
|
41943
41938
|
})
|
|
@@ -41966,7 +41961,7 @@ function (_PureComponent) {
|
|
|
41966
41961
|
__self: this,
|
|
41967
41962
|
__source: {
|
|
41968
41963
|
fileName: _jsxFileName,
|
|
41969
|
-
lineNumber:
|
|
41964
|
+
lineNumber: 508,
|
|
41970
41965
|
columnNumber: 7
|
|
41971
41966
|
}
|
|
41972
41967
|
},
|
|
@@ -41980,7 +41975,7 @@ function (_PureComponent) {
|
|
|
41980
41975
|
__self: this,
|
|
41981
41976
|
__source: {
|
|
41982
41977
|
fileName: _jsxFileName,
|
|
41983
|
-
lineNumber:
|
|
41978
|
+
lineNumber: 518,
|
|
41984
41979
|
columnNumber: 9
|
|
41985
41980
|
}
|
|
41986
41981
|
},
|
|
@@ -41992,7 +41987,7 @@ function (_PureComponent) {
|
|
|
41992
41987
|
__self: this,
|
|
41993
41988
|
__source: {
|
|
41994
41989
|
fileName: _jsxFileName,
|
|
41995
|
-
lineNumber:
|
|
41990
|
+
lineNumber: 519,
|
|
41996
41991
|
columnNumber: 11
|
|
41997
41992
|
}
|
|
41998
41993
|
}),
|
|
@@ -42006,7 +42001,7 @@ function (_PureComponent) {
|
|
|
42006
42001
|
__self: this,
|
|
42007
42002
|
__source: {
|
|
42008
42003
|
fileName: _jsxFileName,
|
|
42009
|
-
lineNumber:
|
|
42004
|
+
lineNumber: 520,
|
|
42010
42005
|
columnNumber: 11
|
|
42011
42006
|
}
|
|
42012
42007
|
},
|
|
@@ -42018,7 +42013,7 @@ function (_PureComponent) {
|
|
|
42018
42013
|
__self: this,
|
|
42019
42014
|
__source: {
|
|
42020
42015
|
fileName: _jsxFileName,
|
|
42021
|
-
lineNumber:
|
|
42016
|
+
lineNumber: 525,
|
|
42022
42017
|
columnNumber: 13
|
|
42023
42018
|
}
|
|
42024
42019
|
}),
|
|
@@ -42040,7 +42035,7 @@ function (_PureComponent) {
|
|
|
42040
42035
|
__self: this,
|
|
42041
42036
|
__source: {
|
|
42042
42037
|
fileName: _jsxFileName,
|
|
42043
|
-
lineNumber:
|
|
42038
|
+
lineNumber: 526,
|
|
42044
42039
|
columnNumber: 13
|
|
42045
42040
|
}
|
|
42046
42041
|
})))))
|
|
@@ -42065,7 +42060,7 @@ function (_PureComponent) {
|
|
|
42065
42060
|
__self: this,
|
|
42066
42061
|
__source: {
|
|
42067
42062
|
fileName: _jsxFileName,
|
|
42068
|
-
lineNumber:
|
|
42063
|
+
lineNumber: 553,
|
|
42069
42064
|
columnNumber: 7
|
|
42070
42065
|
}
|
|
42071
42066
|
},
|
|
@@ -42079,7 +42074,7 @@ function (_PureComponent) {
|
|
|
42079
42074
|
__self: this,
|
|
42080
42075
|
__source: {
|
|
42081
42076
|
fileName: _jsxFileName,
|
|
42082
|
-
lineNumber:
|
|
42077
|
+
lineNumber: 554,
|
|
42083
42078
|
columnNumber: 9
|
|
42084
42079
|
}
|
|
42085
42080
|
},
|
|
@@ -42091,7 +42086,7 @@ function (_PureComponent) {
|
|
|
42091
42086
|
__self: this,
|
|
42092
42087
|
__source: {
|
|
42093
42088
|
fileName: _jsxFileName,
|
|
42094
|
-
lineNumber:
|
|
42089
|
+
lineNumber: 555,
|
|
42095
42090
|
columnNumber: 11
|
|
42096
42091
|
}
|
|
42097
42092
|
}),
|
|
@@ -42103,7 +42098,7 @@ function (_PureComponent) {
|
|
|
42103
42098
|
__self: this,
|
|
42104
42099
|
__source: {
|
|
42105
42100
|
fileName: _jsxFileName,
|
|
42106
|
-
lineNumber:
|
|
42101
|
+
lineNumber: 556,
|
|
42107
42102
|
columnNumber: 11
|
|
42108
42103
|
}
|
|
42109
42104
|
}))));
|
|
@@ -42119,7 +42114,7 @@ function (_PureComponent) {
|
|
|
42119
42114
|
__self: this,
|
|
42120
42115
|
__source: {
|
|
42121
42116
|
fileName: _jsxFileName,
|
|
42122
|
-
lineNumber:
|
|
42117
|
+
lineNumber: 564,
|
|
42123
42118
|
columnNumber: 9
|
|
42124
42119
|
}
|
|
42125
42120
|
}), header)
|
|
@@ -42134,9 +42129,9 @@ function (_PureComponent) {
|
|
|
42134
42129
|
var _this$props9 = this.props,
|
|
42135
42130
|
fixed = _this$props9.fixed,
|
|
42136
42131
|
hideHeader = _this$props9.hideHeader;
|
|
42137
|
-
var _this$
|
|
42138
|
-
scrollLeft = _this$
|
|
42139
|
-
floatFixed = _this$
|
|
42132
|
+
var _this$state3 = this.state,
|
|
42133
|
+
scrollLeft = _this$state3.scrollLeft,
|
|
42134
|
+
floatFixed = _this$state3.floatFixed;
|
|
42140
42135
|
var floatClass = [];
|
|
42141
42136
|
|
|
42142
42137
|
if (floatFixed) {
|
|
@@ -42161,7 +42156,7 @@ function (_PureComponent) {
|
|
|
42161
42156
|
__self: this,
|
|
42162
42157
|
__source: {
|
|
42163
42158
|
fileName: _jsxFileName,
|
|
42164
|
-
lineNumber:
|
|
42159
|
+
lineNumber: 594,
|
|
42165
42160
|
columnNumber: 7
|
|
42166
42161
|
}
|
|
42167
42162
|
}, this.renderBody(floatClass))];
|
|
@@ -45062,7 +45057,7 @@ var TREE_TABLE_DEFAULT_INDENT = 15;
|
|
|
45062
45057
|
return (
|
|
45063
45058
|
/*#__PURE__*/
|
|
45064
45059
|
react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(WrappedComponent, Object.assign({}, this.props, {
|
|
45065
|
-
changedByExpand: this.changedByExpand,
|
|
45060
|
+
changedByExpand: this.changedByExpand || this.props.changedByExpand,
|
|
45066
45061
|
data: data,
|
|
45067
45062
|
onTreeExpand: this.handleTreeExpand,
|
|
45068
45063
|
treeExpandKeys: expandKeys,
|
|
@@ -45088,7 +45083,8 @@ var TREE_TABLE_DEFAULT_INDENT = 15;
|
|
|
45088
45083
|
treeColumnsName: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
|
|
45089
45084
|
defaultTreeExpandKeys: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
|
|
45090
45085
|
treeExpandKeys: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
|
|
45091
|
-
onTreeExpand: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func
|
|
45086
|
+
onTreeExpand: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
|
|
45087
|
+
changedByExpand: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool
|
|
45092
45088
|
});
|
|
45093
45089
|
TreeExpand.defaultProps = {
|
|
45094
45090
|
defaultTreeExpandKeys: []
|
|
@@ -45408,7 +45404,7 @@ function _createSuper2(Derived) {
|
|
|
45408
45404
|
|
|
45409
45405
|
var TableWithPagination = Object(_hoc_pagable__WEBPACK_IMPORTED_MODULE_11__["default"])(_Table__WEBPACK_IMPORTED_MODULE_12__["default"]);
|
|
45410
45406
|
var TableWithTree = Object(_TreeExpand__WEBPACK_IMPORTED_MODULE_14__["default"])(_Table__WEBPACK_IMPORTED_MODULE_12__["default"]);
|
|
45411
|
-
var TableWithPT = Object(_utils_func__WEBPACK_IMPORTED_MODULE_13__["compose"])(
|
|
45407
|
+
var TableWithPT = Object(_utils_func__WEBPACK_IMPORTED_MODULE_13__["compose"])(_hoc_pagable__WEBPACK_IMPORTED_MODULE_11__["default"], _TreeExpand__WEBPACK_IMPORTED_MODULE_14__["default"])(_Table__WEBPACK_IMPORTED_MODULE_12__["default"]);
|
|
45412
45408
|
|
|
45413
45409
|
var _default =
|
|
45414
45410
|
/*#__PURE__*/
|
|
@@ -60317,7 +60313,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60317
60313
|
|
|
60318
60314
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
60319
60315
|
utils: _utils__WEBPACK_IMPORTED_MODULE_0__,
|
|
60320
|
-
version: '1.8.
|
|
60316
|
+
version: '1.8.7-beta.1'
|
|
60321
60317
|
});
|
|
60322
60318
|
|
|
60323
60319
|
|