vxe-table 3.15.15 → 3.15.17

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.
@@ -3207,7 +3207,7 @@ function loadTableData($xeTable, datas, isReset) {
3207
3207
  // }
3208
3208
  // }
3209
3209
  if (!(props.height || props.maxHeight)) {
3210
- (0, _log.errLog)('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
3210
+ (0, _log.errLog)('vxe.error.reqProp', ['height | max-height | virtual-y-config={enabled: false}']);
3211
3211
  }
3212
3212
  // if (!props.showOverflow) {
3213
3213
  // warnLog('vxe.error.reqProp', ['table.show-overflow'])
@@ -3751,10 +3751,15 @@ const wheelScrollTopTo = (diffNum, cb) => {
3751
3751
  requestAnimationFrame(step);
3752
3752
  };
3753
3753
  function updateHeight($xeTable) {
3754
+ const reactData = $xeTable;
3754
3755
  const internalData = $xeTable;
3755
3756
  internalData.customHeight = calcTableHeight($xeTable, 'height');
3756
3757
  internalData.customMinHeight = calcTableHeight($xeTable, 'minHeight');
3757
3758
  internalData.customMaxHeight = calcTableHeight($xeTable, 'maxHeight');
3759
+ // 如果启用虚拟滚动,默认高度
3760
+ if (reactData.scrollYLoad && !(internalData.customHeight || internalData.customMinHeight)) {
3761
+ internalData.customHeight = 300;
3762
+ }
3758
3763
  }
3759
3764
  function calcColumnAutoWidth(column, wrapperEl) {
3760
3765
  const cellElemList = wrapperEl.querySelectorAll(`.vxe-cell--wrapper[colid="${column.id}"]`);
@@ -5137,15 +5142,10 @@ const Methods = {
5137
5142
  rowList = currTableData.filter(row => _xeUtils.default.get(row, checkField));
5138
5143
  }
5139
5144
  } else {
5145
+ const currMaps = isFull || treeConfig && !transform ? fullDataRowIdData : afterFullRowMaps;
5140
5146
  _xeUtils.default.each(selectCheckboxMaps, (row, rowid) => {
5141
- if (isFull) {
5142
- if (fullDataRowIdData[rowid]) {
5143
- rowList.push(fullDataRowIdData[rowid].row);
5144
- }
5145
- } else {
5146
- if (afterFullRowMaps[rowid]) {
5147
- rowList.push(afterFullRowMaps[rowid]);
5148
- }
5147
+ if (currMaps[rowid]) {
5148
+ rowList.push(fullDataRowIdData[rowid].row);
5149
5149
  }
5150
5150
  });
5151
5151
  }