vxe-table 3.14.0-beta.4 → 3.14.0-beta.5

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/lib/index.umd.js CHANGED
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
2220
2220
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2221
2221
 
2222
2222
 
2223
- const version = "3.14.0-beta.4";
2223
+ const version = "3.14.0-beta.5";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2843,7 +2843,7 @@ function isNodeElement(elem) {
2843
2843
  const {
2844
2844
  log: log_log
2845
2845
  } = core_.VxeUI;
2846
- const log_version = `table v${"3.14.0-beta.4"}`;
2846
+ const log_version = `table v${"3.14.0-beta.5"}`;
2847
2847
  const warnLog = log_log.create('warn', log_version);
2848
2848
  const errLog = log_log.create('error', log_version);
2849
2849
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -7709,14 +7709,27 @@ const Methods = {
7709
7709
  * 获取父容器的高度
7710
7710
  */
7711
7711
  getParentHeight() {
7712
+ const $xeTable = this;
7713
+ const $xeGrid = $xeTable.$xeGrid;
7714
+ const props = $xeTable;
7712
7715
  const {
7713
- $el,
7714
- $xegrid,
7715
7716
  height
7716
- } = this;
7717
- const parentElem = $el.parentNode;
7718
- const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
7719
- return Math.floor($xegrid ? $xegrid.getParentHeight() : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getComputedStyle(parentElem).height) - parentPaddingSize);
7717
+ } = props;
7718
+ const el = $xeTable.$refs.refElem;
7719
+ if (el) {
7720
+ const parentElem = el.parentNode;
7721
+ const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
7722
+ let parentWrapperHeight = 0;
7723
+ if (parentElem) {
7724
+ if ($xeGrid && hasClass(parentElem, 'vxe-grid--table-wrapper')) {
7725
+ parentWrapperHeight = $xeGrid.getParentHeight();
7726
+ } else {
7727
+ parentWrapperHeight = parentElem.clientHeight;
7728
+ }
7729
+ }
7730
+ return Math.floor(parentWrapperHeight - parentPaddingSize);
7731
+ }
7732
+ return 0;
7720
7733
  },
7721
7734
  /**
7722
7735
  * 获取需要排除的高度