shineout 1.8.2 → 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.
Files changed (58) hide show
  1. package/css/AnimationList/AbsoluteList.js +1 -1
  2. package/css/Button/Button.js +1 -1
  3. package/css/Form/Field.js +11 -6
  4. package/css/Menu/Item.js +9 -1
  5. package/css/Scroll/Scroll.js +31 -11
  6. package/css/Select/Input.js +16 -3
  7. package/css/Table/SeperateTable.js +44 -48
  8. package/css/Table/SimpleTable.js +13 -7
  9. package/css/Table/Table.js +3 -1
  10. package/css/Table/TreeExpand.js +3 -2
  11. package/css/Table/index.d.ts +9 -0
  12. package/css/Table/index.js +1 -1
  13. package/css/Table/resizable.js +1 -1
  14. package/css/Table/styles/table.css +8 -8
  15. package/css/index.d.ts +1 -1
  16. package/css/index.js +1 -1
  17. package/dist/shineout.js +167 -112
  18. package/dist/shineout.js.map +1 -1
  19. package/dist/shineout.min.js +1 -1
  20. package/dist/theme.antd.css +1 -1
  21. package/dist/theme.antd2.css +1 -1
  22. package/dist/theme.default.css +1 -1
  23. package/dist/theme.shineout.css +1 -1
  24. package/es/AnimationList/AbsoluteList.js +1 -1
  25. package/es/Button/Button.js +1 -1
  26. package/es/Form/Field.js +11 -6
  27. package/es/Menu/Item.js +9 -1
  28. package/es/Scroll/Scroll.js +31 -11
  29. package/es/Select/Input.js +16 -3
  30. package/es/Table/SeperateTable.js +44 -48
  31. package/es/Table/SimpleTable.js +13 -7
  32. package/es/Table/Table.js +3 -1
  33. package/es/Table/TreeExpand.js +3 -2
  34. package/es/Table/index.d.ts +9 -0
  35. package/es/Table/index.js +1 -1
  36. package/es/Table/resizable.js +1 -1
  37. package/es/Table/styles/table.less +1 -1
  38. package/es/index.d.ts +1 -1
  39. package/es/index.js +1 -1
  40. package/es/styles/themes/shineout.less +1 -1
  41. package/lib/AnimationList/AbsoluteList.js +1 -1
  42. package/lib/Button/Button.js +1 -1
  43. package/lib/Form/Field.js +11 -6
  44. package/lib/Menu/Item.js +9 -1
  45. package/lib/Scroll/Scroll.js +31 -11
  46. package/lib/Select/Input.js +16 -3
  47. package/lib/Table/SeperateTable.js +44 -48
  48. package/lib/Table/SimpleTable.js +13 -7
  49. package/lib/Table/Table.js +3 -1
  50. package/lib/Table/TreeExpand.js +3 -2
  51. package/lib/Table/index.d.ts +9 -0
  52. package/lib/Table/index.js +1 -1
  53. package/lib/Table/resizable.js +1 -1
  54. package/lib/Table/styles/table.less +1 -1
  55. package/lib/index.d.ts +1 -1
  56. package/lib/index.js +1 -1
  57. package/lib/styles/themes/shineout.less +1 -1
  58. package/package.json +1 -1
package/dist/shineout.js CHANGED
@@ -4538,8 +4538,8 @@ var dropdownPosition = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];
4538
4538
  value: function componentDidUpdate(prevProps) {
4539
4539
  var _this2 = this;
4540
4540
 
4541
- if (Object(_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_12__["default"])(prevProps.value, this.props.value)) return;
4542
4541
  if (!this.props.focus) this.ajustdoc = false;
4542
+ if (Object(_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_12__["default"])(prevProps.value, this.props.value)) return;
4543
4543
  setTimeout(function () {
4544
4544
  _this2.forceUpdate();
4545
4545
  });
@@ -5654,7 +5654,7 @@ function (_PureComponent) {
5654
5654
  disabled: disabled
5655
5655
  }), this.props.className);
5656
5656
 
5657
- if (href) {
5657
+ if (href && !disabled) {
5658
5658
  return (
5659
5659
  /*#__PURE__*/
5660
5660
  react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("a", Object.assign({
@@ -19878,17 +19878,22 @@ function (_Component) {
19878
19878
  });
19879
19879
  }
19880
19880
 
19881
+ var cloneProps = {
19882
+ value: value,
19883
+ error: error,
19884
+ onChange: this.handleChange
19885
+ };
19886
+
19887
+ if (disabled !== undefined) {
19888
+ cloneProps.disabled = disabled;
19889
+ }
19890
+
19881
19891
  if (
19882
19892
  /*#__PURE__*/
19883
19893
  Object(react__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(children)) {
19884
19894
  return (
19885
19895
  /*#__PURE__*/
19886
- Object(react__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(children, {
19887
- value: value,
19888
- error: error,
19889
- onChange: this.handleChange,
19890
- disabled: disabled
19891
- })
19896
+ Object(react__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(children, cloneProps)
19892
19897
  );
19893
19898
  }
19894
19899
 
@@ -25890,7 +25895,9 @@ function (_PureComponent) {
25890
25895
 
25891
25896
  var key = _this.getKey(props);
25892
25897
 
25893
- var _props$bindItem = props.bindItem(_this.id, _this.update.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)), _this.updateOpen.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)), _this.updateInPath.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this))),
25898
+ var noop = function noop() {};
25899
+
25900
+ var _props$bindItem = props.bindItem(_this.id, noop, noop, noop),
25894
25901
  _props$bindItem2 = Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_props$bindItem, 3),
25895
25902
  activeUpdate = _props$bindItem2[0],
25896
25903
  openUpdate = _props$bindItem2[1],
@@ -25912,6 +25919,13 @@ function (_PureComponent) {
25912
25919
  }
25913
25920
 
25914
25921
  Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(Item, [{
25922
+ key: "componentDidMount",
25923
+ value: function componentDidMount() {
25924
+ Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_get__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__["default"])(Item.prototype), "componentDidMount", this).call(this);
25925
+
25926
+ this.props.bindItem(this.id, this.update.bind(this), this.updateOpen.bind(this), this.updateInPath.bind(this));
25927
+ }
25928
+ }, {
25915
25929
  key: "componentWillUnmount",
25916
25930
  value: function componentWillUnmount() {
25917
25931
  Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_get__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__["default"])(Item.prototype), "componentWillUnmount", this).call(this);
@@ -26101,7 +26115,7 @@ function (_PureComponent) {
26101
26115
  __self: this,
26102
26116
  __source: {
26103
26117
  fileName: _jsxFileName,
26104
- lineNumber: 182,
26118
+ lineNumber: 184,
26105
26119
  columnNumber: 9
26106
26120
  }
26107
26121
  }),
@@ -26114,7 +26128,7 @@ function (_PureComponent) {
26114
26128
  __self: this,
26115
26129
  __source: {
26116
26130
  fileName: _jsxFileName,
26117
- lineNumber: 183,
26131
+ lineNumber: 185,
26118
26132
  columnNumber: 11
26119
26133
  }
26120
26134
  }), item)
@@ -26127,7 +26141,7 @@ function (_PureComponent) {
26127
26141
  __self: this,
26128
26142
  __source: {
26129
26143
  fileName: _jsxFileName,
26130
- lineNumber: 190,
26144
+ lineNumber: 192,
26131
26145
  columnNumber: 7
26132
26146
  }
26133
26147
  }), item,
@@ -26140,7 +26154,7 @@ function (_PureComponent) {
26140
26154
  __self: this,
26141
26155
  __source: {
26142
26156
  fileName: _jsxFileName,
26143
- lineNumber: 192,
26157
+ lineNumber: 194,
26144
26158
  columnNumber: 9
26145
26159
  }
26146
26160
  }))
@@ -26200,7 +26214,7 @@ function (_PureComponent) {
26200
26214
  __self: this,
26201
26215
  __source: {
26202
26216
  fileName: _jsxFileName,
26203
- lineNumber: 250,
26217
+ lineNumber: 252,
26204
26218
  columnNumber: 7
26205
26219
  }
26206
26220
  }), this.renderItem(hasChilds, style), hasChilds &&
@@ -26226,7 +26240,7 @@ function (_PureComponent) {
26226
26240
  __self: this,
26227
26241
  __source: {
26228
26242
  fileName: _jsxFileName,
26229
- lineNumber: 253,
26243
+ lineNumber: 255,
26230
26244
  columnNumber: 11
26231
26245
  }
26232
26246
  }))
@@ -33413,6 +33427,7 @@ function (_PureComponent) {
33413
33427
  _this.handleTouchStart = _this.handleTouchStart.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this));
33414
33428
  _this.handleTouchMove = _this.handleTouchMove.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this));
33415
33429
  _this.setStartPoint = _this.setStartPoint.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this));
33430
+ _this.handleInnerScroll = _this.handleInnerScroll.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this));
33416
33431
  return _this;
33417
33432
  }
33418
33433
 
@@ -33431,6 +33446,7 @@ function (_PureComponent) {
33431
33446
  this.wheelElement.addEventListener('touchmove', this.handleTouchMove, {
33432
33447
  passive: false
33433
33448
  });
33449
+ this.inner.addEventListener('scroll', this.handleInnerScroll);
33434
33450
  }
33435
33451
  }, {
33436
33452
  key: "componentDidUpdate",
@@ -33449,6 +33465,7 @@ function (_PureComponent) {
33449
33465
  this.wheelElement.removeEventListener('wheel', this.handleWheel);
33450
33466
  this.wheelElement.removeEventListener('touchstart', this.handleTouchStart);
33451
33467
  this.wheelElement.removeEventListener('touchmove', this.handleTouchMove);
33468
+ this.inner.removeEventListener('scroll', this.handleInnerScroll);
33452
33469
  }
33453
33470
  }, {
33454
33471
  key: "getWheelRect",
@@ -33642,23 +33659,41 @@ function (_PureComponent) {
33642
33659
 
33643
33660
  this.setStartPoint(position);
33644
33661
  this.boundleScroll();
33645
- }
33662
+ } // inner scroll
33663
+
33646
33664
  }, {
33647
- key: "render",
33648
- value: function render() {
33665
+ key: "handleInnerScroll",
33666
+ value: function handleInnerScroll(e) {
33667
+ var target = e.target;
33649
33668
  var _this$props6 = this.props,
33650
- children = _this$props6.children,
33651
- scrollWidth = _this$props6.scrollWidth,
33652
- scrollHeight = _this$props6.scrollHeight,
33653
33669
  left = _this$props6.left,
33654
- top = _this$props6.top,
33655
- scrollX = _this$props6.scrollX,
33656
- scrollY = _this$props6.scrollY,
33657
- style = _this$props6.style;
33670
+ scrollWidth = _this$props6.scrollWidth;
33658
33671
 
33659
33672
  var _this$getWheelRect2 = this.getWheelRect(),
33660
- width = _this$getWheelRect2.width,
33661
- height = _this$getWheelRect2.height;
33673
+ width = _this$getWheelRect2.width;
33674
+
33675
+ if (target.scrollLeft) {
33676
+ this.handleScroll(left + target.scrollLeft / (scrollWidth - width), this.props.top, undefined, 0);
33677
+ target.scrollLeft = 0;
33678
+ target.scrollTop = 0;
33679
+ }
33680
+ }
33681
+ }, {
33682
+ key: "render",
33683
+ value: function render() {
33684
+ var _this$props7 = this.props,
33685
+ children = _this$props7.children,
33686
+ scrollWidth = _this$props7.scrollWidth,
33687
+ scrollHeight = _this$props7.scrollHeight,
33688
+ left = _this$props7.left,
33689
+ top = _this$props7.top,
33690
+ scrollX = _this$props7.scrollX,
33691
+ scrollY = _this$props7.scrollY,
33692
+ style = _this$props7.style;
33693
+
33694
+ var _this$getWheelRect3 = this.getWheelRect(),
33695
+ width = _this$getWheelRect3.width,
33696
+ height = _this$getWheelRect3.height;
33662
33697
 
33663
33698
  var rtl = Object(_config__WEBPACK_IMPORTED_MODULE_17__["isRTL"])();
33664
33699
  var className = classnames__WEBPACK_IMPORTED_MODULE_10___default()(Object(_styles__WEBPACK_IMPORTED_MODULE_15__["scrollClass"])('_', scrollX && 'show-x', scrollY && 'show-y', rtl && 'rtl'), this.props.className);
@@ -33674,7 +33709,7 @@ function (_PureComponent) {
33674
33709
  __self: this,
33675
33710
  __source: {
33676
33711
  fileName: _jsxFileName,
33677
- lineNumber: 234,
33712
+ lineNumber: 249,
33678
33713
  columnNumber: 7
33679
33714
  }
33680
33715
  },
@@ -33687,7 +33722,7 @@ function (_PureComponent) {
33687
33722
  __self: this,
33688
33723
  __source: {
33689
33724
  fileName: _jsxFileName,
33690
- lineNumber: 235,
33725
+ lineNumber: 250,
33691
33726
  columnNumber: 9
33692
33727
  }
33693
33728
  }),
@@ -33697,7 +33732,7 @@ function (_PureComponent) {
33697
33732
  __self: this,
33698
33733
  __source: {
33699
33734
  fileName: _jsxFileName,
33700
- lineNumber: 236,
33735
+ lineNumber: 251,
33701
33736
  columnNumber: 9
33702
33737
  }
33703
33738
  }),
@@ -33708,7 +33743,7 @@ function (_PureComponent) {
33708
33743
  __self: this,
33709
33744
  __source: {
33710
33745
  fileName: _jsxFileName,
33711
- lineNumber: 237,
33746
+ lineNumber: 252,
33712
33747
  columnNumber: 9
33713
33748
  }
33714
33749
  },
@@ -33722,7 +33757,7 @@ function (_PureComponent) {
33722
33757
  __self: this,
33723
33758
  __source: {
33724
33759
  fileName: _jsxFileName,
33725
- lineNumber: 238,
33760
+ lineNumber: 253,
33726
33761
  columnNumber: 11
33727
33762
  }
33728
33763
  }, children)), scrollY &&
@@ -33737,7 +33772,7 @@ function (_PureComponent) {
33737
33772
  __self: this,
33738
33773
  __source: {
33739
33774
  fileName: _jsxFileName,
33740
- lineNumber: 241,
33775
+ lineNumber: 256,
33741
33776
  columnNumber: 11
33742
33777
  }
33743
33778
  }), scrollX &&
@@ -33751,7 +33786,7 @@ function (_PureComponent) {
33751
33786
  __self: this,
33752
33787
  __source: {
33753
33788
  fileName: _jsxFileName,
33754
- lineNumber: 251,
33789
+ lineNumber: 266,
33755
33790
  columnNumber: 11
33756
33791
  }
33757
33792
  }))
@@ -34835,7 +34870,9 @@ function (_Component) {
34835
34870
  _this.handleBlur = _this.handleBlur.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this));
34836
34871
  _this.geHandleMax = _this.geHandleMax.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this));
34837
34872
  _this.handlePaste = _this.handlePaste.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this));
34838
- _this.focusInput = _this.focusInput.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this)); // for mutiple select
34873
+ _this.focusInput = _this.focusInput.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this));
34874
+ _this.handleCompositionStart = _this.handleCompositionStart.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this));
34875
+ _this.handleCompositionEnd = _this.handleCompositionEnd.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this)); // for mutiple select
34839
34876
 
34840
34877
  _this.props.setInputReset(_this.reset.bind(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this))); // set focus func to Select
34841
34878
 
@@ -34892,7 +34929,7 @@ function (_Component) {
34892
34929
  value: function geHandleMax(e) {
34893
34930
  var maxLength = this.props.maxLength;
34894
34931
 
34895
- if (!maxLength) {
34932
+ if (!maxLength || this.composition) {
34896
34933
  return true;
34897
34934
  }
34898
34935
 
@@ -35018,6 +35055,17 @@ function (_Component) {
35018
35055
  if (text === txt) return;
35019
35056
  this.props.onInputBlur(text);
35020
35057
  }
35058
+ }, {
35059
+ key: "handleCompositionStart",
35060
+ value: function handleCompositionStart() {
35061
+ this.composition = true;
35062
+ }
35063
+ }, {
35064
+ key: "handleCompositionEnd",
35065
+ value: function handleCompositionEnd(e) {
35066
+ this.composition = false;
35067
+ this.handleInput(e);
35068
+ }
35021
35069
  }, {
35022
35070
  key: "render",
35023
35071
  value: function render() {
@@ -35034,7 +35082,9 @@ function (_Component) {
35034
35082
  contentEditable: focus || this.state.editable,
35035
35083
  onFocus: handleFocus,
35036
35084
  onBlur: this.handleBlur,
35037
- title: !focus && Object(_utils_is__WEBPACK_IMPORTED_MODULE_12__["isString"])(value) ? value : null
35085
+ title: !focus && Object(_utils_is__WEBPACK_IMPORTED_MODULE_12__["isString"])(value) ? value : null,
35086
+ onCompositionStart: this.handleCompositionStart,
35087
+ onCompositionEnd: this.handleCompositionEnd
35038
35088
  };
35039
35089
 
35040
35090
  if (
@@ -35059,7 +35109,7 @@ function (_Component) {
35059
35109
  __self: this,
35060
35110
  __source: {
35061
35111
  fileName: _jsxFileName,
35062
- lineNumber: 192,
35112
+ lineNumber: 205,
35063
35113
  columnNumber: 12
35064
35114
  }
35065
35115
  }))
@@ -41443,6 +41493,23 @@ function (_PureComponent) {
41443
41493
  // }
41444
41494
 
41445
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
+ }
41446
41513
  }, {
41447
41514
  key: "checkScrollToIndex",
41448
41515
  value: function checkScrollToIndex(index, outerHeight) {
@@ -41466,7 +41533,7 @@ function (_PureComponent) {
41466
41533
  }, {
41467
41534
  key: "ajustBottom",
41468
41535
  value: function ajustBottom(dataChange) {
41469
- var _this2 = this;
41536
+ var _this3 = this;
41470
41537
 
41471
41538
  var reachBottom = this.lastScrollArgs[1] === 1;
41472
41539
  var drag = this.lastScrollArgs[8];
@@ -41475,7 +41542,7 @@ function (_PureComponent) {
41475
41542
  if (this.ajustBottomScroll) return;
41476
41543
  this.ajustBottomScroll = true;
41477
41544
  setTimeout(function () {
41478
- _this2.handleScroll.apply(_this2, 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"])(_this2.lastScrollArgs));
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));
41479
41546
  });
41480
41547
  }
41481
41548
  }
@@ -41540,11 +41607,9 @@ function (_PureComponent) {
41540
41607
  }, {
41541
41608
  key: "resetHeight",
41542
41609
  value: function resetHeight() {
41543
- var _this3 = this;
41610
+ var _this4 = this;
41544
41611
 
41545
- var _this$state2 = this.state,
41546
- scrollTop = _this$state2.scrollTop,
41547
- offsetLeft = _this$state2.offsetLeft;
41612
+ var scrollTop = this.state.scrollTop;
41548
41613
  var _this$props4 = this.props,
41549
41614
  treeColumnsName = _this$props4.treeColumnsName,
41550
41615
  changedByExpand = _this$props4.changedByExpand;
@@ -41575,32 +41640,16 @@ function (_PureComponent) {
41575
41640
  if (fullHeight <= scrollHeight) {
41576
41641
  index = 0;
41577
41642
  } else {
41578
- this.tbody.style.marginTop = "".concat(scrollHeight, "px");
41579
- Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), "-".concat(fullHeight, "px"));
41580
- this.lastScrollTop = fullHeight;
41643
+ this.setTop(scrollHeight, fullHeight, 1);
41581
41644
  return;
41582
41645
  }
41583
41646
  }
41584
41647
  }
41585
41648
 
41586
41649
  if (index === 0) {
41587
- this.lastScrollTop = 0;
41588
- setTimeout(function () {
41589
- _this3.setState({
41590
- scrollTop: 0
41591
- });
41592
- });
41593
- this.tbody.style.marginTop = '0px';
41594
- Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), '0px');
41650
+ this.setTop(scrollHeight, fullHeight, 0);
41595
41651
  } else if (fullHeight - this.lastScrollTop < (1 - this.lastScrollArgs[1]) * scrollHeight) {
41596
- this.tbody.style.marginTop = "".concat(scrollHeight, "px");
41597
- Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), "-".concat(fullHeight, "px"));
41598
- this.lastScrollTop = fullHeight;
41599
- setTimeout(function () {
41600
- _this3.setState({
41601
- scrollTop: 1
41602
- });
41603
- });
41652
+ this.setTop(scrollHeight, fullHeight, 1);
41604
41653
  } else {
41605
41654
  var keepTop = this.lastScrollTop - this.lastScrollArgs[1] * scrollHeight; // keepTop = scrollTopLength - scrollTopLength/fullHeight * scrollHeight
41606
41655
  // keepTop = (1 - scrollHeight / fullHeight) * scrollTopLength
@@ -41608,18 +41657,14 @@ function (_PureComponent) {
41608
41657
  var scrollTopLength = keepTop / (1 - scrollHeight / fullHeight);
41609
41658
  this.lastScrollTop = scrollTopLength;
41610
41659
  var st = this.lastScrollTop / fullHeight;
41611
- this.tbody.style.marginTop = "".concat(st * scrollHeight, "px");
41612
- Object(_utils_dom_translate__WEBPACK_IMPORTED_MODULE_15__["setTranslate"])(this.tbody, "-".concat(offsetLeft, "px"), "-".concat(this.lastScrollTop, "px"));
41613
- setTimeout(function () {
41614
- _this3.setState({
41615
- scrollTop: st
41616
- });
41617
- });
41660
+ this.setTop(scrollHeight, fullHeight, st);
41618
41661
  }
41619
41662
  } else if (this.lastScrollTop - height < 1) {
41620
41663
  setTimeout(function () {
41621
- _this3.setState({
41622
- scrollTop: _this3.lastScrollTop / fullHeight
41664
+ _this4.lastScrollArgs[1] = _this4.lastScrollTop / fullHeight;
41665
+
41666
+ _this4.setState({
41667
+ scrollTop: _this4.lastScrollTop / fullHeight
41623
41668
  });
41624
41669
  });
41625
41670
  }
@@ -41864,16 +41909,17 @@ function (_PureComponent) {
41864
41909
  rowHeight = _this$props7.rowHeight,
41865
41910
  columnResizable = _this$props7.columnResizable,
41866
41911
  innerScrollAttr = _this$props7.innerScrollAttr,
41867
- 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"]);
41912
+ bordered = _this$props7.bordered,
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"]);
41868
41914
 
41869
- var _this$state3 = this.state,
41870
- colgroup = _this$state3.colgroup,
41871
- scrollTop = _this$state3.scrollTop,
41872
- scrollLeft = _this$state3.scrollLeft,
41873
- offsetLeft = _this$state3.offsetLeft,
41874
- offsetRight = _this$state3.offsetRight,
41875
- currentIndex = _this$state3.currentIndex,
41876
- resize = _this$state3.resize;
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;
41877
41923
  var contentWidth = this.getContentWidth();
41878
41924
  var minWidthSup = columns.find(function (d) {
41879
41925
  return d.minWidth;
@@ -41886,7 +41932,7 @@ function (_PureComponent) {
41886
41932
  __self: this,
41887
41933
  __source: {
41888
41934
  fileName: _jsxFileName,
41889
- lineNumber: 498,
41935
+ lineNumber: 495,
41890
41936
  columnNumber: 14
41891
41937
  }
41892
41938
  })
@@ -41915,7 +41961,7 @@ function (_PureComponent) {
41915
41961
  __self: this,
41916
41962
  __source: {
41917
41963
  fileName: _jsxFileName,
41918
- lineNumber: 511,
41964
+ lineNumber: 508,
41919
41965
  columnNumber: 7
41920
41966
  }
41921
41967
  },
@@ -41929,7 +41975,7 @@ function (_PureComponent) {
41929
41975
  __self: this,
41930
41976
  __source: {
41931
41977
  fileName: _jsxFileName,
41932
- lineNumber: 521,
41978
+ lineNumber: 518,
41933
41979
  columnNumber: 9
41934
41980
  }
41935
41981
  },
@@ -41941,13 +41987,13 @@ function (_PureComponent) {
41941
41987
  __self: this,
41942
41988
  __source: {
41943
41989
  fileName: _jsxFileName,
41944
- lineNumber: 522,
41990
+ lineNumber: 519,
41945
41991
  columnNumber: 11
41946
41992
  }
41947
41993
  }),
41948
41994
  /*#__PURE__*/
41949
41995
  react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement("table", {
41950
- className: Object(_styles__WEBPACK_IMPORTED_MODULE_19__["tableClass"])(!colgroup && minWidthSup && 'init'),
41996
+ className: Object(_styles__WEBPACK_IMPORTED_MODULE_19__["tableClass"])(!colgroup && minWidthSup && 'init', bordered && 'table-bordered'),
41951
41997
  style: {
41952
41998
  width: width
41953
41999
  },
@@ -41955,7 +42001,7 @@ function (_PureComponent) {
41955
42001
  __self: this,
41956
42002
  __source: {
41957
42003
  fileName: _jsxFileName,
41958
- lineNumber: 523,
42004
+ lineNumber: 520,
41959
42005
  columnNumber: 11
41960
42006
  }
41961
42007
  },
@@ -41967,7 +42013,7 @@ function (_PureComponent) {
41967
42013
  __self: this,
41968
42014
  __source: {
41969
42015
  fileName: _jsxFileName,
41970
- lineNumber: 524,
42016
+ lineNumber: 525,
41971
42017
  columnNumber: 13
41972
42018
  }
41973
42019
  }),
@@ -41989,7 +42035,7 @@ function (_PureComponent) {
41989
42035
  __self: this,
41990
42036
  __source: {
41991
42037
  fileName: _jsxFileName,
41992
- lineNumber: 525,
42038
+ lineNumber: 526,
41993
42039
  columnNumber: 13
41994
42040
  }
41995
42041
  })))))
@@ -42014,7 +42060,7 @@ function (_PureComponent) {
42014
42060
  __self: this,
42015
42061
  __source: {
42016
42062
  fileName: _jsxFileName,
42017
- lineNumber: 552,
42063
+ lineNumber: 553,
42018
42064
  columnNumber: 7
42019
42065
  }
42020
42066
  },
@@ -42024,10 +42070,11 @@ function (_PureComponent) {
42024
42070
  width: width
42025
42071
  },
42026
42072
  ref: this.bindThead,
42073
+ className: Object(_styles__WEBPACK_IMPORTED_MODULE_19__["tableClass"])('table-bordered'),
42027
42074
  __self: this,
42028
42075
  __source: {
42029
42076
  fileName: _jsxFileName,
42030
- lineNumber: 553,
42077
+ lineNumber: 554,
42031
42078
  columnNumber: 9
42032
42079
  }
42033
42080
  },
@@ -42039,7 +42086,7 @@ function (_PureComponent) {
42039
42086
  __self: this,
42040
42087
  __source: {
42041
42088
  fileName: _jsxFileName,
42042
- lineNumber: 554,
42089
+ lineNumber: 555,
42043
42090
  columnNumber: 11
42044
42091
  }
42045
42092
  }),
@@ -42051,7 +42098,7 @@ function (_PureComponent) {
42051
42098
  __self: this,
42052
42099
  __source: {
42053
42100
  fileName: _jsxFileName,
42054
- lineNumber: 555,
42101
+ lineNumber: 556,
42055
42102
  columnNumber: 11
42056
42103
  }
42057
42104
  }))));
@@ -42067,7 +42114,7 @@ function (_PureComponent) {
42067
42114
  __self: this,
42068
42115
  __source: {
42069
42116
  fileName: _jsxFileName,
42070
- lineNumber: 563,
42117
+ lineNumber: 564,
42071
42118
  columnNumber: 9
42072
42119
  }
42073
42120
  }), header)
@@ -42082,9 +42129,9 @@ function (_PureComponent) {
42082
42129
  var _this$props9 = this.props,
42083
42130
  fixed = _this$props9.fixed,
42084
42131
  hideHeader = _this$props9.hideHeader;
42085
- var _this$state4 = this.state,
42086
- scrollLeft = _this$state4.scrollLeft,
42087
- floatFixed = _this$state4.floatFixed;
42132
+ var _this$state3 = this.state,
42133
+ scrollLeft = _this$state3.scrollLeft,
42134
+ floatFixed = _this$state3.floatFixed;
42088
42135
  var floatClass = [];
42089
42136
 
42090
42137
  if (floatFixed) {
@@ -42109,7 +42156,7 @@ function (_PureComponent) {
42109
42156
  __self: this,
42110
42157
  __source: {
42111
42158
  fileName: _jsxFileName,
42112
- lineNumber: 593,
42159
+ lineNumber: 594,
42113
42160
  columnNumber: 7
42114
42161
  }
42115
42162
  }, this.renderBody(floatClass))];
@@ -42367,7 +42414,8 @@ function (_PureComponent) {
42367
42414
  data = _this$props2.data,
42368
42415
  onResize = _this$props2.onResize,
42369
42416
  columnResizable = _this$props2.columnResizable,
42370
- sticky = _this$props2.sticky;
42417
+ sticky = _this$props2.sticky,
42418
+ bordered = _this$props2.bordered;
42371
42419
  var _this$state = this.state,
42372
42420
  colgroup = _this$state.colgroup,
42373
42421
  scrollAble = _this$state.scrollAble;
@@ -42377,6 +42425,7 @@ function (_PureComponent) {
42377
42425
  style: {
42378
42426
  width: width
42379
42427
  },
42428
+ className: Object(_styles__WEBPACK_IMPORTED_MODULE_10__["tableClass"])(bordered && 'table-bordered'),
42380
42429
  __self: this,
42381
42430
  __source: {
42382
42431
  fileName: _jsxFileName,
@@ -42454,7 +42503,8 @@ function (_PureComponent) {
42454
42503
  width = _this$props3.width,
42455
42504
  fixed = _this$props3.fixed,
42456
42505
  columnResizable = _this$props3.columnResizable,
42457
- 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_0__["default"])(_this$props3, ["columns", "width", "fixed", "columnResizable"]);
42506
+ bordered = _this$props3.bordered,
42507
+ 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_0__["default"])(_this$props3, ["columns", "width", "fixed", "columnResizable", "bordered"]);
42458
42508
 
42459
42509
  var _this$state2 = this.state,
42460
42510
  colgroup = _this$state2.colgroup,
@@ -42481,7 +42531,7 @@ function (_PureComponent) {
42481
42531
  style: {
42482
42532
  width: width
42483
42533
  },
42484
- className: Object(_styles__WEBPACK_IMPORTED_MODULE_10__["tableClass"])(!colgroup && minWidthSup && 'init'),
42534
+ className: Object(_styles__WEBPACK_IMPORTED_MODULE_10__["tableClass"])(!colgroup && minWidthSup && 'init', bordered && 'table-bordered'),
42485
42535
  __self: this,
42486
42536
  __source: {
42487
42537
  fileName: _jsxFileName,
@@ -42497,7 +42547,7 @@ function (_PureComponent) {
42497
42547
  __self: this,
42498
42548
  __source: {
42499
42549
  fileName: _jsxFileName,
42500
- lineNumber: 139,
42550
+ lineNumber: 142,
42501
42551
  columnNumber: 11
42502
42552
  }
42503
42553
  }),
@@ -42513,7 +42563,7 @@ function (_PureComponent) {
42513
42563
  __self: this,
42514
42564
  __source: {
42515
42565
  fileName: _jsxFileName,
42516
- lineNumber: 140,
42566
+ lineNumber: 143,
42517
42567
  columnNumber: 11
42518
42568
  }
42519
42569
  }))))
@@ -42526,18 +42576,20 @@ function (_PureComponent) {
42526
42576
  columns = _this$props4.columns,
42527
42577
  width = _this$props4.width,
42528
42578
  children = _this$props4.children,
42529
- hideHeader = _this$props4.hideHeader;
42579
+ hideHeader = _this$props4.hideHeader,
42580
+ bordered = _this$props4.bordered;
42530
42581
  if (!columns || columns.length === 0) return (
42531
42582
  /*#__PURE__*/
42532
42583
  react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("table", {
42533
42584
  style: {
42534
42585
  width: width
42535
42586
  },
42587
+ className: Object(_styles__WEBPACK_IMPORTED_MODULE_10__["tableClass"])(bordered && 'table-bordered'),
42536
42588
  __self: this,
42537
42589
  __source: {
42538
42590
  fileName: _jsxFileName,
42539
- lineNumber: 156,
42540
- columnNumber: 50
42591
+ lineNumber: 161,
42592
+ columnNumber: 9
42541
42593
  }
42542
42594
  }, children)
42543
42595
  );
@@ -42559,7 +42611,8 @@ SimpleTable.propTypes = {
42559
42611
  dataChangeResize: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
42560
42612
  columnResizable: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
42561
42613
  sticky: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool]),
42562
- hideHeader: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool
42614
+ hideHeader: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
42615
+ bordered: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool
42563
42616
  };
42564
42617
  SimpleTable.defaultProps = {
42565
42618
  data: undefined,
@@ -43000,6 +43053,7 @@ function (_Component) {
43000
43053
  }),
43001
43054
  /*#__PURE__*/
43002
43055
  react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(RenderTable, Object.assign({}, props, {
43056
+ bordered: bordered,
43003
43057
  __self: this,
43004
43058
  __source: {
43005
43059
  fileName: _jsxFileName,
@@ -45003,7 +45057,7 @@ var TREE_TABLE_DEFAULT_INDENT = 15;
45003
45057
  return (
45004
45058
  /*#__PURE__*/
45005
45059
  react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(WrappedComponent, Object.assign({}, this.props, {
45006
- changedByExpand: this.changedByExpand,
45060
+ changedByExpand: this.changedByExpand || this.props.changedByExpand,
45007
45061
  data: data,
45008
45062
  onTreeExpand: this.handleTreeExpand,
45009
45063
  treeExpandKeys: expandKeys,
@@ -45029,7 +45083,8 @@ var TREE_TABLE_DEFAULT_INDENT = 15;
45029
45083
  treeColumnsName: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
45030
45084
  defaultTreeExpandKeys: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
45031
45085
  treeExpandKeys: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
45032
- 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
45033
45088
  });
45034
45089
  TreeExpand.defaultProps = {
45035
45090
  defaultTreeExpandKeys: []
@@ -45349,7 +45404,7 @@ function _createSuper2(Derived) {
45349
45404
 
45350
45405
  var TableWithPagination = Object(_hoc_pagable__WEBPACK_IMPORTED_MODULE_11__["default"])(_Table__WEBPACK_IMPORTED_MODULE_12__["default"]);
45351
45406
  var TableWithTree = Object(_TreeExpand__WEBPACK_IMPORTED_MODULE_14__["default"])(_Table__WEBPACK_IMPORTED_MODULE_12__["default"]);
45352
- var TableWithPT = Object(_utils_func__WEBPACK_IMPORTED_MODULE_13__["compose"])(_TreeExpand__WEBPACK_IMPORTED_MODULE_14__["default"], _hoc_pagable__WEBPACK_IMPORTED_MODULE_11__["default"])(_Table__WEBPACK_IMPORTED_MODULE_12__["default"]);
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"]);
45353
45408
 
45354
45409
  var _default =
45355
45410
  /*#__PURE__*/
@@ -45842,7 +45897,7 @@ function _createSuper2(Derived) {
45842
45897
  var onColumnResize = this.props.onColumnResize;
45843
45898
  var changed = Object(immer__WEBPACK_IMPORTED_MODULE_8__["default"])(this.state, function (draft) {
45844
45899
  var column = draft.columns[index];
45845
- draft.delta += parseFloat(width - (column.width || 0));
45900
+ draft.delta += parseFloat(width - (column.width || colgroup[index] || 0));
45846
45901
  colgroup[index] = width;
45847
45902
  draft.columns.forEach(function (col, i) {
45848
45903
  var w = colgroup[i];
@@ -60258,7 +60313,7 @@ __webpack_require__.r(__webpack_exports__);
60258
60313
 
60259
60314
  /* harmony default export */ __webpack_exports__["default"] = ({
60260
60315
  utils: _utils__WEBPACK_IMPORTED_MODULE_0__,
60261
- version: '1.8.2'
60316
+ version: '1.8.7-beta.1'
60262
60317
  });
60263
60318
 
60264
60319