vxe-table 3.18.0-beta.1 → 3.18.0-beta.3

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.
@@ -482,6 +482,7 @@ function updateScrollYStatus($xeTable, fullData) {
482
482
  const {
483
483
  treeConfig
484
484
  } = props;
485
+ const $xeGanttView = internalData.xeGanttView;
485
486
  const virtualYOpts = $xeTable.computeVirtualYOpts;
486
487
  const treeOpts = $xeTable.computeTreeOpts;
487
488
  const {
@@ -491,6 +492,9 @@ function updateScrollYStatus($xeTable, fullData) {
491
492
  // 如果gt为0,则总是启用
492
493
  const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
493
494
  reactData.scrollYLoad = scrollYLoad;
495
+ if ($xeGanttView) {
496
+ $xeGanttView.handleUpdateSYStatus(scrollYLoad);
497
+ }
494
498
  return scrollYLoad;
495
499
  }
496
500
  /**
@@ -12235,7 +12239,7 @@ const Methods = {
12235
12239
  (0, _log.errLog)('vxe.error.notProp', ['mouse-config.area']);
12236
12240
  }
12237
12241
  if ($xeGanttView) {
12238
- $xeGanttView.updateScrollXSpace();
12242
+ $xeGanttView.handleUpdateSXSpace();
12239
12243
  }
12240
12244
  return $xeTable.$nextTick(() => {
12241
12245
  updateStyle($xeTable);
@@ -12366,7 +12370,7 @@ const Methods = {
12366
12370
  (0, _log.errLog)('vxe.error.notProp', ['mouse-config.area']);
12367
12371
  }
12368
12372
  if ($xeGanttView) {
12369
- $xeGanttView.updateScrollYSpace();
12373
+ $xeGanttView.handleUpdateSYSpace();
12370
12374
  }
12371
12375
  return $xeTable.$nextTick().then(() => {
12372
12376
  updateStyle($xeTable);