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.
@@ -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.updateScrollYStatus(scrollYLoad);
397
+ }
394
398
  return scrollYLoad;
395
399
  }
396
400
  /**
@@ -10386,7 +10390,6 @@ const Methods = {
10386
10390
  const internalData = $xeTable;
10387
10391
  const { scrollXLoad, overflowX, scrollXWidth } = reactData;
10388
10392
  const { visibleColumn, scrollXStore, elemStore, fullColumnIdData } = internalData;
10389
- const $xeGanttView = internalData.xeGanttView;
10390
10393
  const mouseOpts = $xeTable.computeMouseOpts;
10391
10394
  const tableBody = $xeTable.$refs.refTableBody;
10392
10395
  const tableBodyElem = tableBody ? tableBody.$el : null;
@@ -10452,9 +10455,6 @@ const Methods = {
10452
10455
  if (isScrollXBig && mouseOpts.area) {
10453
10456
  errLog('vxe.error.notProp', ['mouse-config.area']);
10454
10457
  }
10455
- if ($xeGanttView) {
10456
- $xeGanttView.updateScrollXSpace();
10457
- }
10458
10458
  return $xeTable.$nextTick(() => {
10459
10459
  updateStyle($xeTable);
10460
10460
  });
@@ -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.2";
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.2"}`;
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.2";
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.2"}`;
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.updateScrollYStatus(scrollYLoad);
6180
+ }
6177
6181
  return scrollYLoad;
6178
6182
  }
6179
6183
  /**
@@ -17862,7 +17866,6 @@ const Methods = {
17862
17866
  elemStore,
17863
17867
  fullColumnIdData
17864
17868
  } = internalData;
17865
- const $xeGanttView = internalData.xeGanttView;
17866
17869
  const mouseOpts = $xeTable.computeMouseOpts;
17867
17870
  const tableBody = $xeTable.$refs.refTableBody;
17868
17871
  const tableBodyElem = tableBody ? tableBody.$el : null;
@@ -17927,9 +17930,6 @@ const Methods = {
17927
17930
  if (isScrollXBig && mouseOpts.area) {
17928
17931
  errLog('vxe.error.notProp', ['mouse-config.area']);
17929
17932
  }
17930
- if ($xeGanttView) {
17931
- $xeGanttView.updateScrollXSpace();
17932
- }
17933
17933
  return $xeTable.$nextTick(() => {
17934
17934
  updateStyle($xeTable);
17935
17935
  });
@@ -29002,6 +29002,9 @@ function renderBody(h, $xeTable) {
29002
29002
  },
29003
29003
  $xeGrid: {
29004
29004
  default: null
29005
+ },
29006
+ $xeGantt: {
29007
+ default: null
29005
29008
  }
29006
29009
  },
29007
29010
  data() {