@kdcloudjs/table 1.2.2-canary.14-hotfix.1 → 1.2.2-canary.14-hotfix.2

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.
@@ -322,7 +322,9 @@ function RowDetail(props) {
322
322
  useEffect(function () {
323
323
  // 这时候行才渲染完,只能在这里设置偏移量
324
324
  var offsetTop = domHelper.getRowTop(rowIndex) || 0;
325
- detailRef.current.style.transform = "translateY(".concat(offsetTop + 'px', ")");
325
+ setTimeout(function () {
326
+ detailRef.current.style.transform = "translateY(".concat(offsetTop + 'px', ")");
327
+ }, 0);
326
328
  });
327
329
  return /*#__PURE__*/React.createElement("div", {
328
330
  ref: detailRef,
@@ -335,7 +335,9 @@ function RowDetail(props) {
335
335
  (0, _react.useEffect)(function () {
336
336
  // 这时候行才渲染完,只能在这里设置偏移量
337
337
  var offsetTop = domHelper.getRowTop(rowIndex) || 0;
338
- detailRef.current.style.transform = "translateY(".concat(offsetTop + 'px', ")");
338
+ setTimeout(function () {
339
+ detailRef.current.style.transform = "translateY(".concat(offsetTop + 'px', ")");
340
+ }, 0);
339
341
  });
340
342
  return /*#__PURE__*/_react.default.createElement("div", {
341
343
  ref: detailRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/table",
3
- "version": "1.2.2-canary.14-hotfix.1",
3
+ "version": "1.2.2-canary.14-hotfix.2",
4
4
  "description": "金蝶 react table 组件",
5
5
  "title": "table",
6
6
  "keywords": [