@ccs-ui/rc-pro 1.1.24-beta-5 → 1.1.24-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.
@@ -31,6 +31,7 @@ export default /*#__PURE__*/memo(function (props) {
31
31
  display: active ? 'block' : 'none'
32
32
  },
33
33
  autoHide: true,
34
+ className: "ccs-table-item-scroll",
34
35
  children: /*#__PURE__*/_jsx("div", {
35
36
  style: {
36
37
  margin: 16
@@ -53,16 +53,18 @@ var onTableInTabItem = function onTableInTabItem(node) {
53
53
  var parent = node.parentNode;
54
54
  if (!parent) return false;
55
55
  if ( // 通过指定dom吸顶
56
- (_parent$classList6 = parent.classList) !== null && _parent$classList6 !== void 0 && _parent$classList6.contains('ccs-tab-item')) {
56
+ (_parent$classList6 = parent.classList) !== null && _parent$classList6 !== void 0 && _parent$classList6.contains('ccs-table-item-scroll')) {
57
57
  return {
58
58
  getContainer: function getContainer() {
59
- return parent;
59
+ return node;
60
60
  }
61
61
  };
62
62
  }
63
63
  return onTableInTabItem(parent);
64
64
  };
65
65
 
66
+ // ccs-table-item-scroll
67
+
66
68
  // 根据ID查找树形节点
67
69
  var getDataById = function getDataById(data, rowKey, id) {
68
70
  if (!_isArray(data)) return;
@@ -458,6 +460,7 @@ var InternalProTable = function InternalProTable(props) {
458
460
  var dom = stickyRef.current.getContainer();
459
461
  var _window$getComputedSt = window.getComputedStyle(dom),
460
462
  paddingTop = _window$getComputedSt.paddingTop;
463
+ console.log('dom', dom);
461
464
  if (paddingTop) {
462
465
  stickyRef.current = _objectSpread(_objectSpread({}, stickyRef.current), {}, {
463
466
  offsetHeader: -parseInt(paddingTop.replace('px', ''))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.1.24-beta-5",
3
+ "version": "1.1.24-beta-6",
4
4
  "description": "修复table双滚动条问题;",
5
5
  "license": "MIT",
6
6
  "author": {