shineout 3.9.11-beta.10 → 3.9.11-beta.11

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.11-beta.10'
525
+ version: '3.9.11-beta.11'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12402,7 +12402,7 @@ var handleStyle = function handleStyle(style) {
12402
12402
  };
12403
12403
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12405
- /* harmony default export */ var version = ('3.9.11-beta.10');
12405
+ /* harmony default export */ var version = ('3.9.11-beta.11');
12406
12406
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12407
12407
 
12408
12408
 
@@ -41627,11 +41627,13 @@ var Scroll = function Scroll(props) {
41627
41627
  };
41628
41628
 
41629
41629
  // 当滚动容器的高度为 0 时,paddingTop 为 0,避免滚动条抖动现象
41630
+ // 优先使用 props.height 计算 paddingTop,避免动画过程中 useResize 读到中间值导致滚动条闪烁
41631
+ var stableHeight = typeof props.height === 'number' ? props.height : height;
41630
41632
  var paddingTop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
41631
- var maxHeight = Math.max(0, scrollHeight - height);
41633
+ var maxHeight = Math.max(0, scrollHeight - stableHeight);
41632
41634
  if (keepScrollTop) return maxHeight;
41633
41635
  return height === 0 ? 0 : maxHeight;
41634
- }, [scrollHeight, height]);
41636
+ }, [scrollHeight, stableHeight, height]);
41635
41637
  var placeStyle = {
41636
41638
  paddingTop: paddingTop,
41637
41639
  width: scrollWidth,
@@ -58224,6 +58226,7 @@ var TreeVirtual = function TreeVirtual(props) {
58224
58226
  iconClass = props.iconClass,
58225
58227
  leafClass = props.leafClass,
58226
58228
  nodeClass = props.nodeClass,
58229
+ actionOnClick = props.actionOnClick,
58227
58230
  onNodeClick = props.onNodeClick,
58228
58231
  onToggle = props.onToggle,
58229
58232
  onChange = props.onChange;
@@ -58259,6 +58262,7 @@ var TreeVirtual = function TreeVirtual(props) {
58259
58262
  parentClickExpand: parentClickExpand,
58260
58263
  doubleClickExpand: doubleClickExpand,
58261
58264
  expanded: expanded,
58265
+ actionOnClick: actionOnClick,
58262
58266
  onNodeClick: onNodeClick,
58263
58267
  onToggle: onToggle,
58264
58268
  onChange: onChange,
@@ -75553,7 +75557,7 @@ var upload_interface = __webpack_require__(8821);
75553
75557
 
75554
75558
 
75555
75559
  /* harmony default export */ var src_0 = ({
75556
- version: '3.9.11-beta.10'
75560
+ version: '3.9.11-beta.11'
75557
75561
  });
75558
75562
  }();
75559
75563
  /******/ return __webpack_exports__;