vxe-table 3.10.8 → 3.10.10

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 (33) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/src/body.js +4 -12
  3. package/es/table/src/footer.js +2 -6
  4. package/es/table/src/methods.js +199 -79
  5. package/es/table/src/table.js +18 -0
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/index.umd.js +231 -105
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/table/src/body.js +4 -12
  12. package/lib/table/src/body.min.js +1 -1
  13. package/lib/table/src/footer.js +2 -6
  14. package/lib/table/src/footer.min.js +1 -1
  15. package/lib/table/src/methods.js +202 -86
  16. package/lib/table/src/methods.min.js +1 -1
  17. package/lib/table/src/table.js +22 -0
  18. package/lib/table/src/table.min.js +1 -1
  19. package/lib/ui/index.js +1 -1
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/package.json +2 -2
  24. package/packages/table/src/body.ts +4 -12
  25. package/packages/table/src/footer.ts +2 -6
  26. package/packages/table/src/methods.ts +204 -81
  27. package/packages/table/src/table.ts +20 -0
  28. /package/es/{iconfont.1731060585164.ttf → iconfont.1731289527548.ttf} +0 -0
  29. /package/es/{iconfont.1731060585164.woff → iconfont.1731289527548.woff} +0 -0
  30. /package/es/{iconfont.1731060585164.woff2 → iconfont.1731289527548.woff2} +0 -0
  31. /package/lib/{iconfont.1731060585164.ttf → iconfont.1731289527548.ttf} +0 -0
  32. /package/lib/{iconfont.1731060585164.woff → iconfont.1731289527548.woff} +0 -0
  33. /package/lib/{iconfont.1731060585164.woff2 → iconfont.1731289527548.woff2} +0 -0
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.10.8";
2223
+ const version = "3.10.10";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2769,7 +2769,7 @@ function isNodeElement(elem) {
2769
2769
  const {
2770
2770
  log: log_log
2771
2771
  } = core_.VxeUI;
2772
- const log_version = `table v${"3.10.8"}`;
2772
+ const log_version = `table v${"3.10.10"}`;
2773
2773
  const warnLog = log_log.create('warn', log_version);
2774
2774
  const errLog = log_log.create('error', log_version);
2775
2775
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -6947,85 +6947,132 @@ const Methods = {
6947
6947
  * 设置为固定列
6948
6948
  */
6949
6949
  setColumnFixed(fieldOrColumn, fixed) {
6950
- const {
6951
- isMaxFixedColumn,
6952
- columnOpts
6953
- } = this;
6954
- const column = handleFieldOrColumn(this, fieldOrColumn);
6955
- const targetColumn = getRootColumn(this, column);
6956
- if (targetColumn && targetColumn.fixed !== fixed) {
6957
- // 是否超过最大固定列数量
6958
- if (!targetColumn.fixed && isMaxFixedColumn) {
6959
- if (core_.VxeUI.modal) {
6960
- core_.VxeUI.modal.message({
6961
- status: 'error',
6962
- content: methods_getI18n('vxe.table.maxFixedCol', [columnOpts.maxFixedSize])
6963
- });
6950
+ const $xeTable = this;
6951
+ let status = false;
6952
+ const cols = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
6953
+ const columnOpts = $xeTable.computeColumnOpts;
6954
+ const isMaxFixedColumn = $xeTable.computeIsMaxFixedColumn;
6955
+ for (let i = 0; i < cols.length; i++) {
6956
+ const item = cols[i];
6957
+ const column = handleFieldOrColumn($xeTable, item);
6958
+ const targetColumn = getRootColumn($xeTable, column);
6959
+ if (targetColumn && targetColumn.fixed !== fixed) {
6960
+ // 是否超过最大固定列数量
6961
+ if (!targetColumn.fixed && isMaxFixedColumn) {
6962
+ if (core_.VxeUI.modal) {
6963
+ core_.VxeUI.modal.message({
6964
+ status: 'error',
6965
+ content: methods_getI18n('vxe.table.maxFixedCol', [columnOpts.maxFixedSize])
6966
+ });
6967
+ }
6968
+ return $xeTable.$nextTick();
6969
+ }
6970
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([targetColumn], column => {
6971
+ column.fixed = fixed;
6972
+ });
6973
+ $xeTable.saveCustomStore('update:fixed');
6974
+ if (!status) {
6975
+ status = true;
6964
6976
  }
6965
- return this.$nextTick();
6966
6977
  }
6967
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([targetColumn], column => {
6968
- column.fixed = fixed;
6969
- });
6970
- this.saveCustomStore('update:fixed');
6971
- return this.refreshColumn();
6972
6978
  }
6973
- return this.$nextTick();
6979
+ if (status) {
6980
+ return $xeTable.refreshColumn();
6981
+ }
6982
+ return $xeTable.$nextTick();
6974
6983
  },
6975
6984
  /**
6976
6985
  * 取消指定固定列
6977
6986
  */
6978
6987
  clearColumnFixed(fieldOrColumn) {
6979
- const column = handleFieldOrColumn(this, fieldOrColumn);
6980
- const targetColumn = getRootColumn(this, column);
6981
- if (targetColumn && targetColumn.fixed) {
6982
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([targetColumn], column => {
6983
- column.fixed = null;
6984
- });
6985
- this.saveCustomStore('update:fixed');
6986
- return this.refreshColumn();
6988
+ const $xeTable = this;
6989
+ let status = false;
6990
+ const cols = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
6991
+ cols.forEach(item => {
6992
+ const column = handleFieldOrColumn($xeTable, item);
6993
+ const targetColumn = getRootColumn($xeTable, column);
6994
+ if (targetColumn && targetColumn.fixed) {
6995
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([targetColumn], column => {
6996
+ column.fixed = null;
6997
+ });
6998
+ $xeTable.saveCustomStore('update:fixed');
6999
+ if (!status) {
7000
+ status = true;
7001
+ }
7002
+ }
7003
+ });
7004
+ if (status) {
7005
+ return $xeTable.refreshColumn();
6987
7006
  }
6988
- return this.$nextTick();
7007
+ return $xeTable.$nextTick();
6989
7008
  },
6990
7009
  /**
6991
7010
  * 隐藏指定列
6992
7011
  */
6993
7012
  hideColumn(fieldOrColumn) {
6994
- const column = handleFieldOrColumn(this, fieldOrColumn);
6995
- if (column && column.visible) {
6996
- column.visible = false;
6997
- return this.handleCustom();
7013
+ const $xeTable = this;
7014
+ let status = false;
7015
+ const cols = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
7016
+ cols.forEach(item => {
7017
+ const column = handleFieldOrColumn($xeTable, item);
7018
+ if (column && column.visible) {
7019
+ column.visible = false;
7020
+ if (!status) {
7021
+ status = true;
7022
+ }
7023
+ }
7024
+ });
7025
+ if (status) {
7026
+ return $xeTable.handleCustom();
6998
7027
  }
6999
- return this.$nextTick();
7028
+ return $xeTable.$nextTick();
7000
7029
  },
7001
7030
  /**
7002
7031
  * 显示指定列
7003
7032
  */
7004
7033
  showColumn(fieldOrColumn) {
7005
- const column = handleFieldOrColumn(this, fieldOrColumn);
7006
- if (column && !column.visible) {
7007
- column.visible = true;
7008
- return this.handleCustom();
7034
+ const $xeTable = this;
7035
+ let status = false;
7036
+ const cols = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
7037
+ cols.forEach(item => {
7038
+ const column = handleFieldOrColumn($xeTable, item);
7039
+ if (column && !column.visible) {
7040
+ column.visible = true;
7041
+ if (!status) {
7042
+ status = true;
7043
+ }
7044
+ }
7045
+ });
7046
+ if (status) {
7047
+ return $xeTable.handleCustom();
7009
7048
  }
7010
- return this.$nextTick();
7049
+ return $xeTable.$nextTick();
7011
7050
  },
7012
7051
  setColumnWidth(fieldOrColumn, width) {
7013
- const column = handleFieldOrColumn(this, fieldOrColumn);
7014
- if (column) {
7015
- const colWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(width);
7016
- let rdWidth = colWidth;
7017
- if (isScale(width)) {
7018
- const {
7019
- tableBody
7020
- } = this.$refs;
7021
- const tableBodyElem = tableBody ? tableBody.$el : null;
7022
- const bodyWidth = tableBodyElem ? tableBodyElem.clientWidth - 1 : 0;
7023
- rdWidth = Math.floor(colWidth * bodyWidth);
7052
+ const $xeTable = this;
7053
+ let status = false;
7054
+ const cols = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
7055
+ cols.forEach(item => {
7056
+ const column = handleFieldOrColumn($xeTable, item);
7057
+ if (column) {
7058
+ const colWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(width);
7059
+ let rdWidth = colWidth;
7060
+ if (isScale(width)) {
7061
+ const tableBody = $xeTable.$refs.tableBody;
7062
+ const bodyElem = tableBody ? tableBody.$el : null;
7063
+ const bodyWidth = bodyElem ? bodyElem.clientWidth - 1 : 0;
7064
+ rdWidth = Math.floor(colWidth * bodyWidth);
7065
+ }
7066
+ column.resizeWidth = rdWidth;
7067
+ if (!status) {
7068
+ status = true;
7069
+ }
7024
7070
  }
7025
- column.resizeWidth = rdWidth;
7026
- return this.refreshColumn();
7071
+ });
7072
+ if (status) {
7073
+ return $xeTable.refreshColumn();
7027
7074
  }
7028
- return this.$nextTick();
7075
+ return $xeTable.$nextTick();
7029
7076
  },
7030
7077
  getColumnWidth(fieldOrColumn) {
7031
7078
  const column = handleFieldOrColumn(this, fieldOrColumn);
@@ -11507,42 +11554,104 @@ const Methods = {
11507
11554
  }
11508
11555
  this.closeTooltip();
11509
11556
  },
11510
- handleScrollEvent(evnt, isRollY, isRollX, params) {
11557
+ handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, params) {
11511
11558
  const $xeTable = this;
11512
11559
  const props = $xeTable;
11560
+ const reactData = $xeTable;
11561
+ const internalData = $xeTable;
11513
11562
  const {
11514
11563
  highlightHoverRow
11515
11564
  } = props;
11565
+ const {
11566
+ lastScrollLeft,
11567
+ lastScrollTop
11568
+ } = internalData;
11516
11569
  const tableBody = $xeTable.$refs.tableBody;
11517
11570
  const bodyElem = tableBody ? tableBody.$el : null;
11518
11571
  const rowOpts = $xeTable.computeRowOpts;
11519
11572
  const validTip = $xeTable.$refs.validTip;
11520
11573
  const tooltip = $xeTable.$refs.tooltip;
11521
- if (rowOpts.isHover || highlightHoverRow) {
11522
- $xeTable.clearHoverRow();
11523
- }
11524
- if (validTip && validTip.visible) {
11525
- validTip.close();
11526
- }
11527
- if (tooltip && tooltip.visible) {
11528
- tooltip.close();
11529
- }
11530
- if (isRollX) {
11531
- $xeTable.checkScrolling();
11532
- }
11533
11574
  const bodyHeight = bodyElem ? bodyElem.clientHeight : 0;
11534
11575
  const bodyWidth = bodyElem ? bodyElem.clientWidth : 0;
11535
11576
  const scrollHeight = bodyElem ? bodyElem.scrollHeight : 0;
11536
11577
  const scrollWidth = bodyElem ? bodyElem.scrollWidth : 0;
11578
+ let isTop = false;
11579
+ let isBottom = false;
11580
+ let isLeft = false;
11581
+ let isRight = false;
11582
+ let direction = '';
11583
+ let isTopBoundary = false;
11584
+ let isBottomBoundary = false;
11585
+ let isLeftBoundary = false;
11586
+ let isRightBoundary = false;
11587
+ if (isRollX) {
11588
+ const xThreshold = $xeTable.computeScrollXThreshold;
11589
+ isLeft = scrollLeft <= 0;
11590
+ if (!isLeft) {
11591
+ isRight = scrollLeft + bodyWidth >= scrollWidth;
11592
+ }
11593
+ if (scrollLeft > lastScrollLeft) {
11594
+ direction = 'right';
11595
+ if (scrollLeft + bodyWidth >= scrollWidth - xThreshold) {
11596
+ isRightBoundary = true;
11597
+ }
11598
+ } else {
11599
+ direction = 'left';
11600
+ if (scrollLeft <= xThreshold) {
11601
+ isLeftBoundary = true;
11602
+ }
11603
+ }
11604
+ $xeTable.checkScrolling();
11605
+ internalData.lastScrollLeft = scrollLeft;
11606
+ reactData.lastScrollTime = Date.now();
11607
+ } else {
11608
+ const yThreshold = $xeTable.computeScrollYThreshold;
11609
+ isTop = scrollTop <= 0;
11610
+ if (!isTop) {
11611
+ isBottom = scrollTop + bodyHeight >= scrollHeight;
11612
+ }
11613
+ if (scrollTop > lastScrollTop) {
11614
+ direction = 'bottom';
11615
+ if (scrollTop + bodyHeight >= scrollHeight - yThreshold) {
11616
+ isBottomBoundary = true;
11617
+ }
11618
+ } else {
11619
+ direction = 'top';
11620
+ if (scrollTop <= yThreshold) {
11621
+ isTopBoundary = true;
11622
+ }
11623
+ }
11624
+ internalData.lastScrollTop = scrollTop;
11625
+ reactData.lastScrollTime = Date.now();
11626
+ }
11537
11627
  const evntParams = {
11628
+ scrollTop,
11629
+ scrollLeft,
11538
11630
  bodyHeight,
11539
11631
  bodyWidth,
11540
11632
  scrollHeight,
11541
11633
  scrollWidth,
11542
11634
  isX: isRollX,
11543
11635
  isY: isRollY,
11636
+ isTop,
11637
+ isBottom,
11638
+ isLeft,
11639
+ isRight,
11640
+ direction,
11544
11641
  ...params
11545
11642
  };
11643
+ if (rowOpts.isHover || highlightHoverRow) {
11644
+ $xeTable.clearHoverRow();
11645
+ }
11646
+ if (validTip && validTip.visible) {
11647
+ validTip.close();
11648
+ }
11649
+ if (tooltip && tooltip.visible) {
11650
+ tooltip.close();
11651
+ }
11652
+ if (isBottomBoundary || isTopBoundary || isRightBoundary || isLeftBoundary) {
11653
+ $xeTable.dispatchEvent('scroll-boundary', evntParams, evnt);
11654
+ }
11546
11655
  $xeTable.dispatchEvent('scroll', evntParams, evnt);
11547
11656
  },
11548
11657
  /**
@@ -11579,8 +11688,6 @@ const Methods = {
11579
11688
  const bodyElem = tableBody.$el;
11580
11689
  const headerElem = tableHeader ? tableHeader.$el : null;
11581
11690
  const footerElem = tableFooter ? tableFooter.$el : null;
11582
- $xeTable.lastScrollLeft = scrollLeft;
11583
- $xeTable.lastScrollTime = Date.now();
11584
11691
  setScrollLeft(bodyElem, scrollLeft);
11585
11692
  setScrollLeft(headerElem, scrollLeft);
11586
11693
  setScrollLeft(footerElem, scrollLeft);
@@ -11594,15 +11701,11 @@ const Methods = {
11594
11701
  } = wrapperEl;
11595
11702
  const isRollX = true;
11596
11703
  const isRollY = false;
11597
- $xeTable.lastScrollLeft = scrollLeft;
11598
- $xeTable.lastScrollTime = Date.now();
11599
11704
  $xeTable.handleSyncScrollX(scrollLeft);
11600
11705
  $xeTable.triggerScrollXEvent(evnt);
11601
- $xeTable.handleScrollEvent(evnt, isRollY, isRollX, {
11706
+ $xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
11602
11707
  type: 'table',
11603
- fixed: '',
11604
- scrollTop,
11605
- scrollLeft
11708
+ fixed: ''
11606
11709
  });
11607
11710
  },
11608
11711
  debounceScrollYCalculate: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().debounce(function () {
@@ -11619,8 +11722,6 @@ const Methods = {
11619
11722
  const bodyElem = tableBody.$el;
11620
11723
  const leftElem = leftBody ? leftBody.$el : null;
11621
11724
  const rightElem = rightBody ? rightBody.$el : null;
11622
- $xeTable.lastScrollTop = scrollTop;
11623
- $xeTable.lastScrollTime = Date.now();
11624
11725
  setScrollTop(bodyElem, scrollTop);
11625
11726
  setScrollTop(leftElem, scrollTop);
11626
11727
  setScrollTop(rightElem, scrollTop);
@@ -11634,15 +11735,11 @@ const Methods = {
11634
11735
  } = wrapperEl;
11635
11736
  const isRollX = false;
11636
11737
  const isRollY = true;
11637
- $xeTable.lastScrollTop = scrollTop;
11638
- $xeTable.lastScrollTime = Date.now();
11639
11738
  $xeTable.handleSyncScrollY(scrollTop);
11640
11739
  $xeTable.triggerScrollYEvent(evnt);
11641
- $xeTable.handleScrollEvent(evnt, isRollY, isRollX, {
11740
+ $xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
11642
11741
  type: 'table',
11643
- fixed: '',
11644
- scrollTop,
11645
- scrollLeft
11742
+ fixed: ''
11646
11743
  });
11647
11744
  },
11648
11745
  /**
@@ -11889,22 +11986,41 @@ const Methods = {
11889
11986
  * @param {Number} scrollTop 上距离
11890
11987
  */
11891
11988
  scrollTo(scrollLeft, scrollTop) {
11989
+ const $xeTable = this;
11892
11990
  const {
11893
11991
  $refs
11894
11992
  } = this;
11895
11993
  const {
11896
11994
  tableBody,
11995
+ tableHeader,
11996
+ leftBody,
11897
11997
  rightBody,
11898
11998
  tableFooter
11899
11999
  } = $refs;
11900
12000
  const tableBodyElem = tableBody ? tableBody.$el : null;
12001
+ const leftBodyElem = leftBody ? leftBody.$el : null;
11901
12002
  const rightBodyElem = rightBody ? rightBody.$el : null;
12003
+ const tableHeaderElem = tableHeader ? tableHeader.$el : null;
11902
12004
  const tableFooterElem = tableFooter ? tableFooter.$el : null;
11903
12005
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollLeft)) {
11904
- setScrollLeft(tableFooterElem || tableBodyElem, scrollLeft);
12006
+ const xHandleEl = $xeTable.$refs.refScrollXHandleElem;
12007
+ if (xHandleEl) {
12008
+ setScrollLeft(xHandleEl, scrollLeft);
12009
+ } else {
12010
+ setScrollLeft(tableBodyElem, scrollLeft);
12011
+ setScrollLeft(tableHeaderElem, scrollLeft);
12012
+ setScrollLeft(tableFooterElem, scrollLeft);
12013
+ }
11905
12014
  }
11906
12015
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollTop)) {
11907
- setScrollTop(rightBodyElem || tableBodyElem, scrollTop);
12016
+ const yHandleEl = $xeTable.$refs.refScrollYHandleElem;
12017
+ if (yHandleEl) {
12018
+ setScrollTop(yHandleEl, scrollTop);
12019
+ } else {
12020
+ setScrollTop(tableBodyElem, scrollTop);
12021
+ setScrollTop(leftBodyElem, scrollTop);
12022
+ setScrollTop(rightBodyElem, scrollTop);
12023
+ }
11908
12024
  }
11909
12025
  if (this.scrollXLoad || this.scrollYLoad) {
11910
12026
  return new Promise(resolve => setTimeout(() => resolve(this.$nextTick()), 50));
@@ -13034,8 +13150,6 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
13034
13150
  if (yHandleEl) {
13035
13151
  yHandleEl.scrollTop = scrollTop;
13036
13152
  } else if (isRollY) {
13037
- $xeTable.lastScrollTop = scrollTop;
13038
- $xeTable.lastScrollLeft = scrollLeft;
13039
13153
  if (leftElem && fixedType === 'left') {
13040
13154
  setScrollTop(bodyElem, scrollTop);
13041
13155
  setScrollTop(rightElem, scrollTop);
@@ -13046,25 +13160,19 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
13046
13160
  setScrollTop(leftElem, scrollTop);
13047
13161
  setScrollTop(rightElem, scrollTop);
13048
13162
  }
13049
- $xeTable.handleScrollEvent(evnt, isRollY, isRollX, {
13163
+ $xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
13050
13164
  type: renderType,
13051
- fixed: fixedType,
13052
- scrollTop,
13053
- scrollLeft
13165
+ fixed: fixedType
13054
13166
  });
13055
13167
  }
13056
13168
  if (xHandleEl) {
13057
13169
  xHandleEl.scrollLeft = scrollLeft;
13058
13170
  } else if (isRollX) {
13059
- $xeTable.lastScrollTop = scrollTop;
13060
- $xeTable.lastScrollLeft = scrollLeft;
13061
13171
  setScrollLeft(headerElem, scrollLeft);
13062
13172
  setScrollLeft(footerElem, scrollLeft);
13063
- $xeTable.handleScrollEvent(evnt, isRollY, isRollX, {
13173
+ $xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
13064
13174
  type: renderType,
13065
- fixed: fixedType,
13066
- scrollTop,
13067
- scrollLeft
13175
+ fixed: fixedType
13068
13176
  });
13069
13177
  }
13070
13178
  },
@@ -13914,15 +14022,11 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
13914
14022
  const isRollX = true;
13915
14023
  const isRollY = false;
13916
14024
  const scrollTop = bodyElem.scrollTop;
13917
- $xeTable.lastScrollLeft = scrollLeft;
13918
- $xeTable.lastScrollTime = Date.now();
13919
14025
  setScrollLeft(headerElem, scrollLeft);
13920
14026
  setScrollLeft(bodyElem, scrollLeft);
13921
- $xeTable.handleScrollEvent(evnt, isRollY, isRollX, {
14027
+ $xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
13922
14028
  type: footer_renderType,
13923
- fixed: fixedType,
13924
- scrollTop,
13925
- scrollLeft
14029
+ fixed: fixedType
13926
14030
  });
13927
14031
  }
13928
14032
  }
@@ -21374,12 +21478,34 @@ function handleUupdateResize(_vm) {
21374
21478
  computeSXOpts() {
21375
21479
  return Object.assign({}, table_getConfig().table.scrollX, this.scrollX);
21376
21480
  },
21481
+ computeScrollXThreshold() {
21482
+ const $xeTable = this;
21483
+ const sXOpts = $xeTable.computeSXOpts;
21484
+ const {
21485
+ threshold
21486
+ } = sXOpts;
21487
+ if (threshold) {
21488
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(threshold);
21489
+ }
21490
+ return 0;
21491
+ },
21377
21492
  sYOpts() {
21378
21493
  return this.computeSYOpts;
21379
21494
  },
21380
21495
  computeSYOpts() {
21381
21496
  return Object.assign({}, table_getConfig().table.scrollY, this.scrollY);
21382
21497
  },
21498
+ computeScrollYThreshold() {
21499
+ const $xeTable = this;
21500
+ const sYOpts = $xeTable.computeSYOpts;
21501
+ const {
21502
+ threshold
21503
+ } = sYOpts;
21504
+ if (threshold) {
21505
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(threshold);
21506
+ }
21507
+ return 0;
21508
+ },
21383
21509
  rowHeightMaps() {
21384
21510
  return {
21385
21511
  default: 48,