vxe-table 4.10.6-beta.8 → 4.10.6-beta.9

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.
Files changed (49) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/src/body.js +40 -27
  6. package/es/table/src/footer.js +4 -4
  7. package/es/table/src/header.js +4 -4
  8. package/es/table/src/table.js +35 -37
  9. package/es/table/style.css +9 -0
  10. package/es/table/style.min.css +1 -1
  11. package/es/ui/index.js +7 -5
  12. package/es/ui/src/log.js +1 -1
  13. package/es/vxe-table/style.css +9 -0
  14. package/es/vxe-table/style.min.css +1 -1
  15. package/lib/index.css +1 -1
  16. package/lib/index.min.css +1 -1
  17. package/lib/index.umd.js +86 -85
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/table/src/body.js +33 -25
  22. package/lib/table/src/body.min.js +1 -1
  23. package/lib/table/src/footer.js +4 -4
  24. package/lib/table/src/footer.min.js +1 -1
  25. package/lib/table/src/header.js +4 -4
  26. package/lib/table/src/header.min.js +1 -1
  27. package/lib/table/src/table.js +37 -46
  28. package/lib/table/src/table.min.js +1 -1
  29. package/lib/table/style/style.css +9 -0
  30. package/lib/table/style/style.min.css +1 -1
  31. package/lib/ui/index.js +7 -5
  32. package/lib/ui/index.min.js +1 -1
  33. package/lib/ui/src/log.js +1 -1
  34. package/lib/ui/src/log.min.js +1 -1
  35. package/lib/vxe-table/style/style.css +9 -0
  36. package/lib/vxe-table/style/style.min.css +1 -1
  37. package/package.json +1 -1
  38. package/packages/table/src/body.ts +40 -25
  39. package/packages/table/src/footer.ts +4 -4
  40. package/packages/table/src/header.ts +4 -4
  41. package/packages/table/src/table.ts +38 -40
  42. package/packages/ui/index.ts +6 -4
  43. package/styles/components/table.scss +9 -0
  44. /package/es/{iconfont.1736840923205.ttf → iconfont.1736854674495.ttf} +0 -0
  45. /package/es/{iconfont.1736840923205.woff → iconfont.1736854674495.woff} +0 -0
  46. /package/es/{iconfont.1736840923205.woff2 → iconfont.1736854674495.woff2} +0 -0
  47. /package/lib/{iconfont.1736840923205.ttf → iconfont.1736854674495.ttf} +0 -0
  48. /package/lib/{iconfont.1736840923205.woff → iconfont.1736854674495.woff} +0 -0
  49. /package/lib/{iconfont.1736840923205.woff2 → iconfont.1736854674495.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
3138
3138
  ;// ./packages/ui/index.ts
3139
3139
 
3140
3140
 
3141
- const version = "4.10.6-beta.8";
3141
+ const version = "4.10.6-beta.9";
3142
3142
  core_.VxeUI.version = version;
3143
3143
  core_.VxeUI.tableVersion = version;
3144
3144
  core_.VxeUI.setConfig({
@@ -3312,13 +3312,15 @@ core_.VxeUI.setConfig({
3312
3312
  },
3313
3313
  virtualXConfig: {
3314
3314
  // enabled: false,
3315
- gt: 60
3316
- // oSize: 0
3315
+ gt: 60,
3316
+ preSize: 0,
3317
+ oSize: 1
3317
3318
  },
3318
3319
  virtualYConfig: {
3319
3320
  // enabled: false,
3320
- gt: 100
3321
- // oSize: 0
3321
+ gt: 100,
3322
+ preSize: 1,
3323
+ oSize: 2
3322
3324
  },
3323
3325
  scrollbarConfig: {
3324
3326
  width: 10,
@@ -3568,7 +3570,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3568
3570
  const {
3569
3571
  log: log_log
3570
3572
  } = core_.VxeUI;
3571
- const log_version = `table v${"4.10.6-beta.8"}`;
3573
+ const log_version = `table v${"4.10.6-beta.9"}`;
3572
3574
  const warnLog = log_log.create('warn', log_version);
3573
3575
  const errLog = log_log.create('error', log_version);
3574
3576
  ;// ./packages/table/src/columnInfo.ts
@@ -6449,6 +6451,26 @@ const renderType = 'body';
6449
6451
  if (!fixedHiddenColumn && editConfig && (editRender || cellRender) && (editOpts.showStatus || editOpts.showUpdateStatus)) {
6450
6452
  isDirty = $xeTable.isUpdateByRow(row, column.field);
6451
6453
  }
6454
+ const isVNAutoHeight = scrollYLoad && !hasEllipsis;
6455
+ let cellHeight = 0;
6456
+ const vnHeight = isCalcCellHeight ? rest.height : 0;
6457
+ if (hasEllipsis) {
6458
+ if (customRHeight) {
6459
+ cellHeight = customRHeight;
6460
+ } else if (!isAllOverflow) {
6461
+ cellHeight = vnHeight || defaultRowHeight || 18;
6462
+ }
6463
+ } else {
6464
+ cellHeight = vnHeight || defaultRowHeight || 18;
6465
+ }
6466
+ const tcStyle = {};
6467
+ if (cellHeight) {
6468
+ if (hasEllipsis) {
6469
+ tcStyle.maxHeight = `${cellHeight}px`;
6470
+ } else if (isVNAutoHeight) {
6471
+ tcStyle.height = `${cellHeight}px`;
6472
+ }
6473
+ }
6452
6474
  const tdVNs = [];
6453
6475
  if (fixedHiddenColumn && (allColumnOverflow ? isAllOverflow : allColumnOverflow)) {
6454
6476
  tdVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
@@ -6457,9 +6479,7 @@ const renderType = 'body';
6457
6479
  'c--tooltip': showTooltip,
6458
6480
  'c--ellipsis': showEllipsis
6459
6481
  }],
6460
- style: {
6461
- maxHeight: hasEllipsis && (customRHeight || defaultRowHeight) ? `${customRHeight || defaultRowHeight}px` : ''
6462
- }
6482
+ style: tcStyle
6463
6483
  }));
6464
6484
  } else {
6465
6485
  // 渲染单元格
@@ -6469,11 +6489,11 @@ const renderType = 'body';
6469
6489
  'c--tooltip': showTooltip,
6470
6490
  'c--ellipsis': showEllipsis
6471
6491
  }],
6472
- style: {
6473
- maxHeight: hasEllipsis && (customRHeight || defaultRowHeight) ? `${customRHeight || defaultRowHeight}px` : ''
6474
- },
6492
+ style: tcStyle,
6475
6493
  title: showTitle ? $xeTable.getCellLabel(row, column) : null
6476
- }, column.renderCell(params)));
6494
+ }, isVNAutoHeight ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
6495
+ class: 'vxe-cell--auto-wrapper'
6496
+ }, column.renderCell(params))] : column.renderCell(params)));
6477
6497
  if (showValidTip && errorValidItem) {
6478
6498
  const errRule = errorValidItem.rule;
6479
6499
  const validSlot = slots ? slots.valid : null;
@@ -6494,17 +6514,6 @@ const renderType = 'body';
6494
6514
  }, errorValidItem.content)]])]));
6495
6515
  }
6496
6516
  }
6497
- let cellHeight = '';
6498
- const vnHeight = isCalcCellHeight ? rest.height : 0;
6499
- if (hasEllipsis) {
6500
- if (customRHeight) {
6501
- cellHeight = `${customRHeight}px`;
6502
- } else if (!isAllOverflow) {
6503
- cellHeight = `${vnHeight || defaultRowHeight || 18}px`;
6504
- }
6505
- } else {
6506
- cellHeight = `${vnHeight || defaultRowHeight || 18}px`;
6507
- }
6508
6517
  if (mouseConfig && mouseOpts.area && selectCellToRow) {
6509
6518
  if (!$columnIndex && selectCellToRow === true || selectCellToRow === column.field) {
6510
6519
  tdVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
@@ -6514,11 +6523,11 @@ const renderType = 'body';
6514
6523
  }
6515
6524
  const isLastColumn = $columnIndex === columns.length - 1;
6516
6525
  const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
6517
- let isPreLoadStatus = false;
6518
- if (scrollYLoad && (_rowIndex < scrollYStore.visibleStartIndex || _rowIndex > scrollYStore.visibleEndIndex)) {
6519
- isPreLoadStatus = true;
6520
- } else if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex || _columnIndex > scrollXStore.visibleEndIndex)) {
6521
- isPreLoadStatus = true;
6526
+ let isVNPreEmptyStatus = false;
6527
+ if (scrollYLoad && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
6528
+ isVNPreEmptyStatus = true;
6529
+ } else if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
6530
+ isVNPreEmptyStatus = true;
6522
6531
  }
6523
6532
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
6524
6533
  class: ['vxe-body--column', colid, {
@@ -6529,6 +6538,7 @@ const renderType = 'body';
6529
6538
  'col--tree-node': treeNode,
6530
6539
  'col--edit': isEdit,
6531
6540
  'col--ellipsis': hasEllipsis,
6541
+ 'col--auto-height': isVNAutoHeight,
6532
6542
  'fixed--width': !isAutoCellWidth,
6533
6543
  'fixed--hidden': fixedHiddenColumn,
6534
6544
  'is--drag-cell': isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
@@ -6541,10 +6551,10 @@ const renderType = 'body';
6541
6551
  key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? colid : $columnIndex,
6542
6552
  ...attrs,
6543
6553
  style: Object.assign({
6544
- height: cellHeight
6554
+ height: cellHeight ? `${cellHeight}px` : ''
6545
6555
  }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(compCellStyle) ? compCellStyle(params) : compCellStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cellStyle) ? cellStyle(params) : cellStyle),
6546
6556
  ...tdOns
6547
- }, isPreLoadStatus || isOptimizeMode && fixedHiddenColumn ? [] : tdVNs);
6557
+ }, isVNPreEmptyStatus || isOptimizeMode && fixedHiddenColumn ? [] : tdVNs);
6548
6558
  };
6549
6559
  const renderRows = (fixedType, isOptimizeMode, tableData, tableColumn) => {
6550
6560
  const {
@@ -7301,9 +7311,9 @@ const header_renderType = 'header';
7301
7311
  const isLastColumn = $columnIndex === cols.length - 1;
7302
7312
  const showResizable = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
7303
7313
  const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
7304
- let isPreLoadStatus = false;
7305
- if (scrollXLoad && !isGroup && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex || _columnIndex > scrollXStore.visibleEndIndex)) {
7306
- isPreLoadStatus = true;
7314
+ let isVNPreEmptyStatus = false;
7315
+ if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
7316
+ isVNPreEmptyStatus = true;
7307
7317
  }
7308
7318
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {
7309
7319
  class: ['vxe-header--column', colid, {
@@ -7332,7 +7342,7 @@ const header_renderType = 'header';
7332
7342
  'c--tooltip': showTooltip,
7333
7343
  'c--ellipsis': showEllipsis
7334
7344
  }]
7335
- }, isPreLoadStatus || isOptimizeMode && fixedHiddenColumn ? [] : column.renderHeader(params)),
7345
+ }, isVNPreEmptyStatus || isOptimizeMode && fixedHiddenColumn ? [] : column.renderHeader(params)),
7336
7346
  /**
7337
7347
  * 列宽拖动
7338
7348
  */
@@ -7754,9 +7764,9 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7754
7764
  }
7755
7765
  const isLastColumn = $columnIndex === tableColumn.length - 1;
7756
7766
  const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
7757
- let isPreLoadStatus = false;
7758
- if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex || _columnIndex > scrollXStore.visibleEndIndex)) {
7759
- isPreLoadStatus = true;
7767
+ let isVNPreEmptyStatus = false;
7768
+ if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
7769
+ isVNPreEmptyStatus = true;
7760
7770
  }
7761
7771
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
7762
7772
  class: ['vxe-footer--column', column.id, {
@@ -7778,7 +7788,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7778
7788
  'c--tooltip': showTooltip,
7779
7789
  'c--ellipsis': showEllipsis
7780
7790
  }]
7781
- }, isPreLoadStatus ? [] : column.renderFooter(cellParams))]);
7791
+ }, isVNPreEmptyStatus ? [] : column.renderFooter(cellParams))]);
7782
7792
  });
7783
7793
  };
7784
7794
  const renderHeads = renderColumnList => {
@@ -11198,29 +11208,36 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11198
11208
  };
11199
11209
  };
11200
11210
  const computeRowHeight = () => {
11211
+ const {
11212
+ showOverflow
11213
+ } = props;
11201
11214
  const tableHeader = refTableHeader.value;
11202
11215
  const tableBody = refTableBody.value;
11203
11216
  const tableBodyElem = tableBody ? tableBody.$el : null;
11204
11217
  const defaultRowHeight = computeDefaultRowHeight.value;
11205
11218
  let rowHeight = 0;
11206
- if (tableBodyElem) {
11207
- const tableHeaderElem = tableHeader ? tableHeader.$el : null;
11208
- let firstTrElem;
11209
- firstTrElem = tableBodyElem.querySelector('tr');
11210
- if (!firstTrElem && tableHeaderElem) {
11211
- firstTrElem = tableHeaderElem.querySelector('tr');
11219
+ if (showOverflow) {
11220
+ if (tableBodyElem) {
11221
+ const tableHeaderElem = tableHeader ? tableHeader.$el : null;
11222
+ let firstTrElem;
11223
+ firstTrElem = tableBodyElem.querySelector('tr');
11224
+ if (!firstTrElem && tableHeaderElem) {
11225
+ firstTrElem = tableHeaderElem.querySelector('tr');
11226
+ }
11227
+ if (firstTrElem) {
11228
+ rowHeight = firstTrElem.clientHeight;
11229
+ }
11212
11230
  }
11213
- if (firstTrElem) {
11214
- rowHeight = firstTrElem.clientHeight;
11231
+ if (!rowHeight) {
11232
+ rowHeight = defaultRowHeight;
11215
11233
  }
11216
- }
11217
- if (!rowHeight) {
11234
+ } else {
11218
11235
  rowHeight = defaultRowHeight;
11219
11236
  }
11220
11237
  // 最低支持 18px 行高
11221
11238
  return Math.max(18, rowHeight);
11222
11239
  };
11223
- const handleVirtualYVisible = () => {
11240
+ const handleVirtualYVisible = currScrollTop => {
11224
11241
  const {
11225
11242
  showOverflow
11226
11243
  } = props;
@@ -11234,10 +11251,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11234
11251
  } = internalData;
11235
11252
  const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
11236
11253
  if (bodyScrollElem) {
11237
- const {
11238
- scrollTop,
11239
- clientHeight
11240
- } = bodyScrollElem;
11254
+ const clientHeight = bodyScrollElem.clientHeight;
11255
+ const scrollTop = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(currScrollTop) ? currScrollTop : bodyScrollElem.scrollTop;
11241
11256
  const endHeight = scrollTop + clientHeight;
11242
11257
  let toVisibleIndex = -1;
11243
11258
  let offsetTop = 0;
@@ -11869,7 +11884,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11869
11884
  tableData.forEach(row => {
11870
11885
  const rowid = getRowid($xeTable, row);
11871
11886
  const rowRest = fullAllDataRowIdData[rowid];
11872
- const cellList = el.querySelectorAll(`.vxe-body--row[rowid="${rowid}"]>.vxe-body--column>.vxe-cell`);
11887
+ const cellList = el.querySelectorAll(`.vxe-body--row[rowid="${rowid}"]>.vxe-body--column>.vxe-cell>.vxe-cell--auto-wrapper`);
11873
11888
  if (rowRest && cellList.length) {
11874
11889
  let height = 0;
11875
11890
  for (let i = 0; i < cellList.length; i++) {
@@ -13196,16 +13211,16 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13196
13211
  scrollXStore,
13197
13212
  scrollYStore
13198
13213
  } = internalData;
13199
- const sYOpts = computeSYOpts.value;
13200
- const sXOpts = computeSXOpts.value;
13214
+ const virtualYOpts = computeVirtualYOpts.value;
13215
+ const virtualXOpts = computeVirtualXOpts.value;
13201
13216
  // 计算 X 逻辑
13202
13217
  if (scrollXLoad) {
13203
13218
  const {
13204
13219
  toVisibleIndex: toXVisibleIndex,
13205
13220
  visibleSize: visibleXSize
13206
13221
  } = handleVirtualXVisible();
13207
- const offsetXSize = Math.max(0, sXOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sXOpts.oSize) : 0);
13208
- scrollXStore.preloadSize = 4;
13222
+ const offsetXSize = Math.max(0, virtualXOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(virtualXOpts.oSize) : 0);
13223
+ scrollXStore.preloadSize = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(virtualXOpts.preSize);
13209
13224
  scrollXStore.offsetSize = offsetXSize;
13210
13225
  scrollXStore.visibleSize = visibleXSize;
13211
13226
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
@@ -13217,7 +13232,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13217
13232
  } else {
13218
13233
  $xeTable.updateScrollXSpace();
13219
13234
  }
13220
- calcCellHeight();
13221
13235
  // 计算 Y 逻辑
13222
13236
  const rowHeight = computeRowHeight();
13223
13237
  scrollYStore.rowHeight = rowHeight;
@@ -13227,8 +13241,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13227
13241
  visibleSize: visibleYSize
13228
13242
  } = handleVirtualYVisible();
13229
13243
  if (scrollYLoad) {
13230
- const offsetYSize = Math.max(0, sYOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sYOpts.oSize) : 0);
13231
- scrollYStore.preloadSize = 2;
13244
+ const offsetYSize = Math.max(0, virtualYOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(virtualYOpts.oSize) : 0);
13245
+ scrollYStore.preloadSize = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(virtualYOpts.preSize);
13232
13246
  scrollYStore.offsetSize = offsetYSize;
13233
13247
  scrollYStore.visibleSize = visibleYSize;
13234
13248
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
@@ -13257,7 +13271,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13257
13271
  return computeScrollLoad().then(() => {
13258
13272
  if (reFull === true) {
13259
13273
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
13260
- calcCellHeight();
13261
13274
  calcCellWidth();
13262
13275
  autoCellWidth();
13263
13276
  updateStyle();
@@ -13403,6 +13416,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13403
13416
  if (sYOpts.scrollToTopOnChange) {
13404
13417
  targetScrollTop = 0;
13405
13418
  }
13419
+ calcCellHeight();
13406
13420
  // 是否变更虚拟滚动
13407
13421
  if (oldScrollYLoad === sYLoad) {
13408
13422
  restoreScrollLocation($xeTable, targetScrollLeft, targetScrollTop).then(() => {
@@ -13835,7 +13849,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13835
13849
  /**
13836
13850
  * 纵向 Y 可视渲染处理
13837
13851
  */
13838
- const loadScrollYData = () => {
13852
+ const loadScrollYData = scrollTop => {
13839
13853
  const {
13840
13854
  showOverflow
13841
13855
  } = props;
@@ -13855,7 +13869,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13855
13869
  const {
13856
13870
  toVisibleIndex,
13857
13871
  visibleSize
13858
- } = handleVirtualYVisible();
13872
+ } = handleVirtualYVisible(scrollTop);
13859
13873
  const offsetItem = {
13860
13874
  startIndex: Math.max(0, toVisibleIndex - 1 - offsetSize - preloadSize),
13861
13875
  endIndex: toVisibleIndex + visibleSize + autoOffsetYSize + preloadSize
@@ -13928,18 +13942,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13928
13942
  }, fpsTime);
13929
13943
  };
13930
13944
  const lazyScrollYData = () => {
13931
- const {
13932
- showOverflow
13933
- } = props;
13934
13945
  const {
13935
13946
  lyTimeout,
13936
- lyRunTime,
13937
- scrollYStore
13947
+ lyRunTime
13938
13948
  } = internalData;
13939
- const {
13940
- visibleSize
13941
- } = scrollYStore;
13942
- const fpsTime = showOverflow ? 5 : Math.max(5, Math.min(80, Math.floor(visibleSize / 2)));
13949
+ const fpsTime = Math.floor(Math.max(4, Math.min(10, 20 / 3)));
13943
13950
  if (lyTimeout) {
13944
13951
  clearTimeout(lyTimeout);
13945
13952
  }
@@ -13973,16 +13980,14 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13973
13980
  internalData.inBodyScroll = false;
13974
13981
  internalData.inFooterScroll = false;
13975
13982
  internalData.scrollRenderType = '';
13983
+ calcCellHeight();
13976
13984
  if (isRollX && scrollXLoad) {
13977
- $xeTable.updateScrollXData().then(() => {
13978
- calcCellHeight();
13979
- loadScrollXData();
13980
- });
13985
+ $xeTable.updateScrollXData();
13981
13986
  }
13982
13987
  if (isRollY && scrollYLoad) {
13983
13988
  $xeTable.updateScrollYData().then(() => {
13984
13989
  calcCellHeight();
13985
- loadScrollYData();
13990
+ $xeTable.updateScrollYSpace();
13986
13991
  });
13987
13992
  }
13988
13993
  $xeTable.updateCellAreas();
@@ -19869,9 +19874,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
19869
19874
  setScrollTop(bodyScrollElem, scrollTop);
19870
19875
  setScrollTop(leftScrollElem, scrollTop);
19871
19876
  setScrollTop(rightScrollElem, scrollTop);
19872
- $xeTable.triggerScrollYEvent(evnt);
19877
+ loadScrollYData(scrollTop);
19873
19878
  $xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
19874
- type: 'footer',
19879
+ type: 'table',
19875
19880
  fixed: ''
19876
19881
  });
19877
19882
  }
@@ -20115,9 +20120,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
20115
20120
  showOverflow
20116
20121
  } = props;
20117
20122
  handleTableColumn();
20118
- // calcCellHeight()
20119
20123
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
20120
- // calcCellHeight()
20121
20124
  handleTableColumn();
20122
20125
  $xeTable.updateScrollXSpace();
20123
20126
  if (!showOverflow) {
@@ -20127,9 +20130,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
20127
20130
  },
20128
20131
  updateScrollYData() {
20129
20132
  $xeTable.handleTableData();
20130
- // calcCellHeight()
20131
20133
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
20132
- // calcCellHeight()
20133
20134
  $xeTable.handleTableData();
20134
20135
  $xeTable.updateScrollYSpace();
20135
20136
  });