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

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.updateScrollYStatus(scrollYLoad);
497
+ }
494
498
  return scrollYLoad;
495
499
  }
496
500
  /**
@@ -12169,7 +12173,6 @@ const Methods = {
12169
12173
  elemStore,
12170
12174
  fullColumnIdData
12171
12175
  } = internalData;
12172
- const $xeGanttView = internalData.xeGanttView;
12173
12176
  const mouseOpts = $xeTable.computeMouseOpts;
12174
12177
  const tableBody = $xeTable.$refs.refTableBody;
12175
12178
  const tableBodyElem = tableBody ? tableBody.$el : null;
@@ -12234,9 +12237,6 @@ const Methods = {
12234
12237
  if (isScrollXBig && mouseOpts.area) {
12235
12238
  (0, _log.errLog)('vxe.error.notProp', ['mouse-config.area']);
12236
12239
  }
12237
- if ($xeGanttView) {
12238
- $xeGanttView.updateScrollXSpace();
12239
- }
12240
12240
  return $xeTable.$nextTick(() => {
12241
12241
  updateStyle($xeTable);
12242
12242
  });