shineout 3.10.3-beta.3 → 3.10.3-beta.4

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.3-beta.3'
548
+ version: '3.10.3-beta.4'
549
549
  };
package/dist/shineout.js CHANGED
@@ -13736,7 +13736,7 @@ var handleStyle = function handleStyle(style) {
13736
13736
  };
13737
13737
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
13738
13738
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
13739
- /* harmony default export */ var version = ('3.10.3-beta.3');
13739
+ /* harmony default export */ var version = ('3.10.3-beta.4');
13740
13740
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
13741
13741
 
13742
13742
 
@@ -28694,7 +28694,8 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
28694
28694
  boxShadow: 'inset 8px 0 10px -6px rgba(2,11,24,.1)'
28695
28695
  // border: 'none',
28696
28696
  },
28697
- '&[dir=ltr]::after': {
28697
+ // tbody td 在 ltr 下不输出 dir 属性,用 :not([dir=rtl]) 匹配 ltr
28698
+ '&:not([dir=rtl])::after': {
28698
28699
  right: "-".concat(shadowWidth, "px")
28699
28700
  },
28700
28701
  '&[dir=rtl]::after': {
@@ -28731,7 +28732,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
28731
28732
  right: "-".concat(shadowWidth, "px"),
28732
28733
  boxShadow: 'inset 8px 0 10px -6px rgba(2,11,24,.1)'
28733
28734
  },
28734
- '&[dir=ltr]::before': {
28735
+ '&:not([dir=rtl])::before': {
28735
28736
  left: "-".concat(shadowWidth, "px")
28736
28737
  }
28737
28738
  },
@@ -29012,7 +29013,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
29012
29013
  textAlign: 'left'
29013
29014
  },
29014
29015
  '$bordered&': {
29015
- '& th:last-child[dir=ltr], & td:last-child[dir=ltr]': {
29016
+ '& th:last-child:not([dir=rtl]), & td:last-child:not([dir=rtl])': {
29016
29017
  borderRight: 'none'
29017
29018
  },
29018
29019
  '& th:last-child[dir=rtl], & td:last-child[dir=rtl]': {
@@ -69545,6 +69546,11 @@ var thead_toNum = toNum;
69545
69546
  }),
69546
69547
  context = _useRef.current;
69547
69548
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
69549
+ // 行高仅用于多级表头固定列的 sticky top,单行表头 top 恒为 0,跳过测量以避免强制同步布局
69550
+ if (columnLevel === 0) {
69551
+ context.trHeights = [];
69552
+ return;
69553
+ }
69548
69554
  var heights = trRefs.current.map(function (tr) {
69549
69555
  return (tr === null || tr === void 0 ? void 0 : tr.offsetHeight) || 0;
69550
69556
  });
@@ -70033,8 +70039,10 @@ function Td(props) {
70033
70039
  onMouseEnter: onMouseEnter,
70034
70040
  onMouseLeave: onMouseLeave,
70035
70041
  className: className,
70036
- style: props.style,
70037
- dir: direction,
70042
+ style: props.style
70043
+ // ltr 为默认方向,可从 table 继承,省略以减少大数据量下逐个单元格的 setAttribute
70044
+ ,
70045
+ dir: direction === 'rtl' ? direction : undefined,
70038
70046
  "data-role": role,
70039
70047
  onClick: onClick,
70040
70048
  children: renderContent(props.col, props.data)
@@ -80284,7 +80292,7 @@ var watermark_interface = __webpack_require__(6640);
80284
80292
 
80285
80293
 
80286
80294
  /* harmony default export */ var src_0 = ({
80287
- version: '3.10.3-beta.3'
80295
+ version: '3.10.3-beta.4'
80288
80296
  });
80289
80297
  }();
80290
80298
  /******/ return __webpack_exports__;