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.
@@ -384,6 +384,7 @@ function updateScrollYStatus($xeTable, fullData) {
384
384
  const reactData = $xeTable;
385
385
  const internalData = $xeTable;
386
386
  const { treeConfig } = props;
387
+ const $xeGanttView = internalData.xeGanttView;
387
388
  const virtualYOpts = $xeTable.computeVirtualYOpts;
388
389
  const treeOpts = $xeTable.computeTreeOpts;
389
390
  const { transform } = treeOpts;
@@ -391,6 +392,9 @@ function updateScrollYStatus($xeTable, fullData) {
391
392
  // 如果gt为0,则总是启用
392
393
  const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
393
394
  reactData.scrollYLoad = scrollYLoad;
395
+ if ($xeGanttView) {
396
+ $xeGanttView.handleUpdateSYStatus(scrollYLoad);
397
+ }
394
398
  return scrollYLoad;
395
399
  }
396
400
  /**
@@ -10453,7 +10457,7 @@ const Methods = {
10453
10457
  errLog('vxe.error.notProp', ['mouse-config.area']);
10454
10458
  }
10455
10459
  if ($xeGanttView) {
10456
- $xeGanttView.updateScrollXSpace();
10460
+ $xeGanttView.handleUpdateSXSpace();
10457
10461
  }
10458
10462
  return $xeTable.$nextTick(() => {
10459
10463
  updateStyle($xeTable);
@@ -10574,7 +10578,7 @@ const Methods = {
10574
10578
  errLog('vxe.error.notProp', ['mouse-config.area']);
10575
10579
  }
10576
10580
  if ($xeGanttView) {
10577
- $xeGanttView.updateScrollYSpace();
10581
+ $xeGanttView.handleUpdateSYSpace();
10578
10582
  }
10579
10583
  return $xeTable.$nextTick().then(() => {
10580
10584
  updateStyle($xeTable);
@@ -463,6 +463,9 @@ export default {
463
463
  },
464
464
  $xeGrid: {
465
465
  default: null
466
+ },
467
+ $xeGantt: {
468
+ default: null
466
469
  }
467
470
  },
468
471
  data() {
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.18.0-beta.1";
3
+ export const version = "3.18.0-beta.3";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.18.0-beta.1"}`;
3
+ const version = `table v${"3.18.0-beta.3"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
2002
2002
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2003
2003
 
2004
2004
 
2005
- const version = "3.18.0-beta.1";
2005
+ const version = "3.18.0-beta.3";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2678,7 +2678,7 @@ function isNodeElement(elem) {
2678
2678
  const {
2679
2679
  log: log_log
2680
2680
  } = core_.VxeUI;
2681
- const log_version = `table v${"3.18.0-beta.1"}`;
2681
+ const log_version = `table v${"3.18.0-beta.3"}`;
2682
2682
  const warnLog = log_log.create('warn', log_version);
2683
2683
  const errLog = log_log.create('error', log_version);
2684
2684
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -6165,6 +6165,7 @@ function updateScrollYStatus($xeTable, fullData) {
6165
6165
  const {
6166
6166
  treeConfig
6167
6167
  } = props;
6168
+ const $xeGanttView = internalData.xeGanttView;
6168
6169
  const virtualYOpts = $xeTable.computeVirtualYOpts;
6169
6170
  const treeOpts = $xeTable.computeTreeOpts;
6170
6171
  const {
@@ -6174,6 +6175,9 @@ function updateScrollYStatus($xeTable, fullData) {
6174
6175
  // 如果gt为0,则总是启用
6175
6176
  const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
6176
6177
  reactData.scrollYLoad = scrollYLoad;
6178
+ if ($xeGanttView) {
6179
+ $xeGanttView.handleUpdateSYStatus(scrollYLoad);
6180
+ }
6177
6181
  return scrollYLoad;
6178
6182
  }
6179
6183
  /**
@@ -17928,7 +17932,7 @@ const Methods = {
17928
17932
  errLog('vxe.error.notProp', ['mouse-config.area']);
17929
17933
  }
17930
17934
  if ($xeGanttView) {
17931
- $xeGanttView.updateScrollXSpace();
17935
+ $xeGanttView.handleUpdateSXSpace();
17932
17936
  }
17933
17937
  return $xeTable.$nextTick(() => {
17934
17938
  updateStyle($xeTable);
@@ -18059,7 +18063,7 @@ const Methods = {
18059
18063
  errLog('vxe.error.notProp', ['mouse-config.area']);
18060
18064
  }
18061
18065
  if ($xeGanttView) {
18062
- $xeGanttView.updateScrollYSpace();
18066
+ $xeGanttView.handleUpdateSYSpace();
18063
18067
  }
18064
18068
  return $xeTable.$nextTick().then(() => {
18065
18069
  updateStyle($xeTable);
@@ -29002,6 +29006,9 @@ function renderBody(h, $xeTable) {
29002
29006
  },
29003
29007
  $xeGrid: {
29004
29008
  default: null
29009
+ },
29010
+ $xeGantt: {
29011
+ default: null
29005
29012
  }
29006
29013
  },
29007
29014
  data() {