@ccs-ui/rc-pro 2.3.6-beta-3 → 2.3.6-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/es/table/index.js CHANGED
@@ -82,22 +82,27 @@ var CustomTable = function CustomTable(props) {
82
82
  if (!tableBody) return;
83
83
  var headerHeight = 0,
84
84
  pageHeight = 0,
85
- footerHeight = 0;
85
+ footerHeight = 0,
86
+ summaryHeight = 0;
86
87
  var _pagination = tableTarget.getElementsByClassName('ant-pagination');
87
88
  if (_pagination && _pagination.length > 0) {
88
89
  pageHeight = _pagination[0].clientHeight;
89
90
  }
90
91
  var header = tableTarget.getElementsByClassName('ant-table-header');
91
92
  var footer = tableTarget.getElementsByClassName('ant-table-footer');
93
+ var summary = tableTarget.getElementsByClassName('ant-table-summary');
92
94
  if (footer && footer.length > 0) {
93
95
  footerHeight = footer[0].clientHeight;
94
96
  }
95
97
  if (header && header.length > 0) {
96
98
  headerHeight = header[0].clientHeight;
97
99
  }
100
+ if (summary && summary.length > 0) {
101
+ summaryHeight = summary[0].clientHeight;
102
+ }
98
103
 
99
104
  // 计算table数据区高度
100
- var scrollHeight = (((_tableContentRef$curr = tableContentRef.current) === null || _tableContentRef$curr === void 0 ? void 0 : _tableContentRef$curr.clientHeight) || 0) - headerHeight - pageHeight - footerHeight;
105
+ var scrollHeight = (((_tableContentRef$curr = tableContentRef.current) === null || _tableContentRef$curr === void 0 ? void 0 : _tableContentRef$curr.clientHeight) || 0) - headerHeight - pageHeight - footerHeight - summaryHeight;
101
106
 
102
107
  // 固定tbody高度
103
108
  tableBody.style.height = "".concat(scrollHeight, "px");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.6-beta-3",
3
+ "version": "2.3.6-beta-4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {