@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.
@@ -222,6 +222,9 @@ export var BaseTable = /*#__PURE__*/function (_React$Component) {
222
222
  var tableBodyHtmlTable = this.domHelper.getTableBodyHtmlTable();
223
223
  var innerTableWidth = tableBodyHtmlTable.offsetWidth;
224
224
  var artTableWidth = artTable.offsetWidth;
225
+ var artTableHeight = artTable.offsetHeight; // 表格隐藏后,不需要对表格的滚动条做额外的逻辑处理
226
+
227
+ if (artTableWidth === 0 && artTableHeight === 0) return;
225
228
  var stickyScrollHeightProp = this.props.stickyScrollHeight;
226
229
  var stickyScrollHeight = stickyScrollHeightProp === 'auto' ? this.getScrollBarWidth() : stickyScrollHeightProp; // stickyScroll.style.marginTop = `-${stickyScrollHeight + 1}px`
227
230
  // 设置滚动条高度
@@ -273,6 +273,9 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
273
273
  var tableBodyHtmlTable = this.domHelper.getTableBodyHtmlTable();
274
274
  var innerTableWidth = tableBodyHtmlTable.offsetWidth;
275
275
  var artTableWidth = artTable.offsetWidth;
276
+ var artTableHeight = artTable.offsetHeight; // 表格隐藏后,不需要对表格的滚动条做额外的逻辑处理
277
+
278
+ if (artTableWidth === 0 && artTableHeight === 0) return;
276
279
  var stickyScrollHeightProp = this.props.stickyScrollHeight;
277
280
  var stickyScrollHeight = stickyScrollHeightProp === 'auto' ? this.getScrollBarWidth() : stickyScrollHeightProp; // stickyScroll.style.marginTop = `-${stickyScrollHeight + 1}px`
278
281
  // 设置滚动条高度
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/table",
3
- "version": "1.2.0-canary.6",
3
+ "version": "1.2.0-canary.6-hotfix.1",
4
4
  "description": "金蝶 react table 组件",
5
5
  "title": "table",
6
6
  "keywords": [
@@ -56,6 +56,7 @@
56
56
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --skip-unstable",
57
57
  "pub": "npm run test:all && npm run build && cross-env PUB_ENV=pub np --no-cleanup --no-tests",
58
58
  "pub:canary": "npm run build && cross-env PUB_ENV=pub np --no-cleanup --anyBranch --no-tests --tag=canary",
59
+ "pub:canary-hotfix": "npm run build && cross-env PUB_ENV=pub np --no-cleanup --anyBranch --no-tests --tag=canaryHotFix",
59
60
  "new": "node scripts/create-component.js",
60
61
  "kd-ui": "npm install @kingdee-ui/kui --registry http://npm.kingdee.com/"
61
62
  },