shineout 3.3.3-beta.5 → 3.3.3-beta.6

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/cjs/index.js CHANGED
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.3.3-beta.5'
479
+ version: '3.3.3-beta.6'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
11968
11968
  };
11969
11969
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11970
11970
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11971
- /* harmony default export */ var version = ('3.3.3-beta.5');
11971
+ /* harmony default export */ var version = ('3.3.3-beta.6');
11972
11972
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11973
11973
 
11974
11974
 
@@ -56657,6 +56657,7 @@ var useTableRow = function useTableRow(props) {
56657
56657
 
56658
56658
 
56659
56659
 
56660
+
56660
56661
  var Tr = function Tr(props) {
56661
56662
  var _props$jssStyle, _props$jssStyle$table, _props$rowClassName;
56662
56663
  var treeFunc = props.treeFunc;
@@ -56710,12 +56711,22 @@ var Tr = function Tr(props) {
56710
56711
  columnKey: props.columns[colIndex].key
56711
56712
  });
56712
56713
  });
56713
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
56714
+ var setVirtualRowHeight = usePersistFn(function () {
56714
56715
  if (props.setRowHeight && trRef.current) {
56715
56716
  var expandHeight = expandRef.current ? expandRef.current.getBoundingClientRect().height : 0;
56716
56717
  props.setRowHeight(props.rowIndex, trRef.current.getBoundingClientRect().height + expandHeight);
56717
56718
  }
56718
- }, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
56719
+ });
56720
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(setVirtualRowHeight, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
56721
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
56722
+ if (!trRef.current) return;
56723
+ var cancelObserver = addResizeObserver(trRef.current, setVirtualRowHeight, {
56724
+ direction: 'y'
56725
+ });
56726
+ return function () {
56727
+ cancelObserver();
56728
+ };
56729
+ }, []);
56719
56730
  var renderTreeExpand = function renderTreeExpand(content) {
56720
56731
  var treeIndent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 22;
56721
56732
  var level = props.treeExpandLevel.get(props.originKey) || 0;
@@ -63661,7 +63672,7 @@ var upload_interface = __webpack_require__(8821);
63661
63672
 
63662
63673
 
63663
63674
  /* harmony default export */ var src_0 = ({
63664
- version: '3.3.3-beta.5'
63675
+ version: '3.3.3-beta.6'
63665
63676
  });
63666
63677
  }();
63667
63678
  /******/ return __webpack_exports__;