shineout 3.10.0-beta.13 → 3.10.0-beta.14

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
@@ -545,5 +545,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
545
545
  // 此文件由脚本自动生成,请勿直接修改。
546
546
  // This file was generated automatically by a script. Please do not modify it directly.
547
547
  var _default = exports.default = {
548
- version: '3.10.0-beta.13'
548
+ version: '3.10.0-beta.14'
549
549
  };
package/dist/shineout.js CHANGED
@@ -12345,7 +12345,7 @@ var handleStyle = function handleStyle(style) {
12345
12345
  };
12346
12346
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12347
12347
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12348
- /* harmony default export */ var version = ('3.10.0-beta.13');
12348
+ /* harmony default export */ var version = ('3.10.0-beta.14');
12349
12349
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12350
12350
 
12351
12351
 
@@ -66040,7 +66040,9 @@ var useTableLayout = function useTableLayout(props) {
66040
66040
  context.clientWidth = scrollEl.clientWidth;
66041
66041
  if (scrollEl.clientHeight === 0) return;
66042
66042
  var overHeight = scrollEl.scrollHeight > scrollEl.clientHeight;
66043
- var overWidth = scrollEl.scrollWidth > context.clientWidth;
66043
+ // 使用 > 1 容差,与 checkFloat 中 floatRight 的判断保持一致
66044
+ // 避免缩放比例下亚像素误差导致 isScrollX=true 但 floatRight=false 的不一致状态
66045
+ var overWidth = scrollEl.scrollWidth - context.clientWidth > 1;
66044
66046
  var newScrollBarWidth = overHeight ? scrollEl.offsetWidth - scrollEl.clientWidth : 0;
66045
66047
  if (newScrollBarWidth !== scrollBarWidth) setScrollBarWidth(newScrollBarWidth);
66046
66048
  if (overWidth !== isScrollX) setIsScrollX(overWidth);
@@ -66241,7 +66243,6 @@ var useTableLayout = function useTableLayout(props) {
66241
66243
  var handleResize = use_persist_fn(function (_, dir) {
66242
66244
  checkScroll();
66243
66245
  syncScrollWidth();
66244
- checkFloat();
66245
66246
  if (dir.x) {
66246
66247
  //table 宽度发生变化的时候, 需要同步 colgroup 宽度 给拖拽列或者固定列使用
66247
66248
  resetColGroup();
@@ -78226,7 +78227,7 @@ var watermark_interface = __webpack_require__(6640);
78226
78227
 
78227
78228
 
78228
78229
  /* harmony default export */ var src_0 = ({
78229
- version: '3.10.0-beta.13'
78230
+ version: '3.10.0-beta.14'
78230
78231
  });
78231
78232
  }();
78232
78233
  /******/ return __webpack_exports__;