@kdcloudjs/table 1.1.6-canary.1 → 1.1.6-canary.3

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.
@@ -394,13 +394,13 @@ export var BaseTable = /*#__PURE__*/function (_React$Component) {
394
394
  last: footerDataSource.length - 1,
395
395
  limit: Infinity
396
396
  }
397
- }), /*#__PURE__*/React.createElement("div", {
397
+ }), footerDataSource.length > 0 ? /*#__PURE__*/React.createElement("div", {
398
398
  className: Classes.verticalScrollPlaceholder,
399
399
  style: this.hasScrollY ? {
400
400
  width: this.getScrollBarWidth(),
401
401
  visibility: 'initial'
402
402
  } : undefined
403
- }));
403
+ }) : null);
404
404
  }
405
405
  }, {
406
406
  key: "renderLockShadows",
@@ -119,7 +119,7 @@ function getColumnWidthSum(pipeline) {
119
119
 
120
120
  if (isLeafNode(col) && code !== FILL_COLUMN_CODE) {
121
121
  var resizeColumn = pipeline.getFeatureOptions(COLUMN_SIZE_KEY);
122
- return acc + (resizeColumn && resizeColumn[code]) || width;
122
+ return acc + (resizeColumn && resizeColumn[code] || width);
123
123
  } else {
124
124
  return acc + dfs(col.children);
125
125
  }
@@ -443,13 +443,13 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
443
443
  last: footerDataSource.length - 1,
444
444
  limit: Infinity
445
445
  }
446
- }), /*#__PURE__*/_react.default.createElement("div", {
446
+ }), footerDataSource.length > 0 ? /*#__PURE__*/_react.default.createElement("div", {
447
447
  className: _styles.Classes.verticalScrollPlaceholder,
448
448
  style: this.hasScrollY ? {
449
449
  width: this.getScrollBarWidth(),
450
450
  visibility: 'initial'
451
451
  } : undefined
452
- }));
452
+ }) : null);
453
453
  }
454
454
  }, {
455
455
  key: "renderLockShadows",
@@ -138,7 +138,7 @@ function getColumnWidthSum(pipeline) {
138
138
 
139
139
  if ((0, _utils.isLeafNode)(col) && code !== FILL_COLUMN_CODE) {
140
140
  var resizeColumn = pipeline.getFeatureOptions(_columnResizeWidth.COLUMN_SIZE_KEY);
141
- return acc + (resizeColumn && resizeColumn[code]) || width;
141
+ return acc + (resizeColumn && resizeColumn[code] || width);
142
142
  } else {
143
143
  return acc + dfs(col.children);
144
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/table",
3
- "version": "1.1.6-canary.1",
3
+ "version": "1.1.6-canary.3",
4
4
  "description": "金蝶 react table 组件",
5
5
  "title": "table",
6
6
  "keywords": [