vxe-table 3.12.5 → 3.12.7

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.12.5";
2223
+ const version = "3.12.7";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2814,7 +2814,7 @@ function isNodeElement(elem) {
2814
2814
  const {
2815
2815
  log: log_log
2816
2816
  } = core_.VxeUI;
2817
- const log_version = `table v${"3.12.5"}`;
2817
+ const log_version = `table v${"3.12.7"}`;
2818
2818
  const warnLog = log_log.create('warn', log_version);
2819
2819
  const errLog = log_log.create('error', log_version);
2820
2820
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -5745,8 +5745,9 @@ const calcCellHeight = $xeTable => {
5745
5745
  rowRest.height = scrollXLoad ? Math.max(rowRest.height, height) : height;
5746
5746
  }
5747
5747
  });
5748
+ reactData.isCalcCellHeight++;
5748
5749
  }
5749
- // updateCellOffset($xeTable)
5750
+ // updateCellOffset()
5750
5751
  };
5751
5752
  function getOrderField(_vm, column) {
5752
5753
  const {
@@ -6114,14 +6115,14 @@ function loadScrollYData($xeTable) {
6114
6115
  endIndex,
6115
6116
  offsetSize
6116
6117
  } = scrollYStore;
6117
- const offsetYSize = showOverflow ? offsetSize : offsetSize + Math.min(8, Math.ceil(tableHeight / 200));
6118
+ const autoOffsetYSize = showOverflow ? offsetSize : offsetSize + Math.min(8, Math.ceil(tableHeight / 200));
6118
6119
  const {
6119
6120
  toVisibleIndex,
6120
6121
  visibleSize
6121
6122
  } = handleVirtualYVisible($xeTable);
6122
6123
  const offsetItem = {
6123
- startIndex: Math.max(0, toVisibleIndex - 1 - offsetYSize),
6124
- endIndex: toVisibleIndex + visibleSize + offsetYSize
6124
+ startIndex: Math.max(0, toVisibleIndex - 1 - offsetSize),
6125
+ endIndex: toVisibleIndex + visibleSize + autoOffsetYSize
6125
6126
  };
6126
6127
  calculateMergerOffsetIndex(mergeList, offsetItem, 'row');
6127
6128
  const {
@@ -6150,11 +6151,12 @@ function checkLastSyncScroll($xeTable, isRollX, isRollY) {
6150
6151
  clearTimeout(lcsTimeout);
6151
6152
  }
6152
6153
  internalData.lcsTimeout = setTimeout(() => {
6154
+ internalData.lcsRunTime = Date.now();
6153
6155
  internalData.lcsTimeout = undefined;
6154
6156
  internalData.inVirtualScroll = false;
6155
6157
  internalData.inBodyScroll = false;
6156
- internalData.bodyScrollType = '';
6157
6158
  internalData.inFooterScroll = false;
6159
+ internalData.bodyScrollType = '';
6158
6160
  if (isRollX && scrollXLoad) {
6159
6161
  $xeTable.updateScrollXData().then(() => {
6160
6162
  loadScrollXData($xeTable);
@@ -10486,7 +10488,7 @@ const Methods = {
10486
10488
  }
10487
10489
  vLen++;
10488
10490
  });
10489
- const isSelected = sLen >= vLen;
10491
+ const isSelected = rootList.length > 0 && sLen >= vLen;
10490
10492
  const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
10491
10493
  reactData.isAllSelected = isSelected;
10492
10494
  reactData.isIndeterminate = halfSelect;