@kdcloudjs/table 1.2.0-canary.6 → 1.2.0-canary.6-hotfix.1
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/dist/@kdcloudjs/table.css +1 -1
- package/dist/@kdcloudjs/table.js +4 -1
- package/dist/@kdcloudjs/table.js.map +1 -1
- package/dist/@kdcloudjs/table.min.css +1 -1
- package/dist/@kdcloudjs/table.min.js +2 -2
- package/dist/@kdcloudjs/table.min.js.map +1 -1
- package/es/table/base/table.js +3 -0
- package/lib/table/base/table.js +3 -0
- package/package.json +2 -1
package/dist/@kdcloudjs/table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/table v1.2.0-canary.
|
|
3
|
+
* @kdcloudjs/table v1.2.0-canary.6
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -3715,6 +3715,9 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
3715
3715
|
var tableBodyHtmlTable = this.domHelper.getTableBodyHtmlTable();
|
|
3716
3716
|
var innerTableWidth = tableBodyHtmlTable.offsetWidth;
|
|
3717
3717
|
var artTableWidth = artTable.offsetWidth;
|
|
3718
|
+
var artTableHeight = artTable.offsetHeight; // 表格隐藏后,不需要对表格的滚动条做额外的逻辑处理
|
|
3719
|
+
|
|
3720
|
+
if (artTableWidth === 0 && artTableHeight === 0) return;
|
|
3718
3721
|
var stickyScrollHeightProp = this.props.stickyScrollHeight;
|
|
3719
3722
|
var stickyScrollHeight = stickyScrollHeightProp === 'auto' ? this.getScrollBarWidth() : stickyScrollHeightProp; // stickyScroll.style.marginTop = `-${stickyScrollHeight + 1}px`
|
|
3720
3723
|
// 设置滚动条高度
|