vxe-table 3.17.1 → 3.17.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.
@@ -758,20 +758,40 @@ export default {
758
758
  computeVirtualXOpts() {
759
759
  const $xeTable = this;
760
760
  const props = $xeTable;
761
- const { virtualXConfig } = props;
761
+ const { virtualXConfig, scrollX } = props;
762
+ const globalVirtualXConfig = getConfig().table.virtualXConfig;
763
+ const globalScrollX = getConfig().table.scrollX;
762
764
  if (virtualXConfig) {
763
- return Object.assign({}, getConfig().table.virtualXConfig, virtualXConfig);
765
+ return Object.assign({}, globalVirtualXConfig, virtualXConfig);
764
766
  }
765
- return Object.assign({}, getConfig().table.virtualXConfig, getConfig().table.scrollX, props.scrollX);
767
+ if (scrollX) {
768
+ // 已废弃,保留兼容
769
+ return Object.assign({}, globalScrollX, scrollX);
770
+ }
771
+ if (globalVirtualXConfig) {
772
+ return Object.assign({}, globalVirtualXConfig, virtualXConfig);
773
+ }
774
+ // 已废弃,保留兼容
775
+ return Object.assign({}, globalScrollX, scrollX);
766
776
  },
767
777
  computeVirtualYOpts() {
768
778
  const $xeTable = this;
769
779
  const props = $xeTable;
770
- const { virtualYConfig } = props;
780
+ const { virtualYConfig, scrollY } = props;
781
+ const globalVirtualYConfig = getConfig().table.virtualYConfig;
782
+ const globalScrollY = getConfig().table.scrollY;
771
783
  if (virtualYConfig) {
772
- return Object.assign({}, getConfig().table.virtualYConfig, virtualYConfig);
784
+ return Object.assign({}, globalVirtualYConfig, virtualYConfig);
785
+ }
786
+ if (scrollY) {
787
+ // 已废弃,保留兼容
788
+ return Object.assign({}, globalScrollY, scrollY);
789
+ }
790
+ if (globalVirtualYConfig) {
791
+ return Object.assign({}, globalVirtualYConfig, virtualYConfig);
773
792
  }
774
- return Object.assign({}, getConfig().table.virtualYConfig, getConfig().table.scrollY, props.scrollY);
793
+ // 已废弃,保留兼容
794
+ return Object.assign({}, globalScrollY, scrollY);
775
795
  },
776
796
  computeScrollbarOpts() {
777
797
  const $xeTable = this;
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.17.1";
3
+ export const version = "3.17.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.17.1"}`;
3
+ const version = `table v${"3.17.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.17.1";
2005
+ const version = "3.17.2";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2669,7 +2669,7 @@ function isNodeElement(elem) {
2669
2669
  const {
2670
2670
  log: log_log
2671
2671
  } = core_.VxeUI;
2672
- const log_version = `table v${"3.17.1"}`;
2672
+ const log_version = `table v${"3.17.2"}`;
2673
2673
  const warnLog = log_log.create('warn', log_version);
2674
2674
  const errLog = log_log.create('error', log_version);
2675
2675
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -28906,23 +28906,45 @@ function renderBody(h, $xeTable) {
28906
28906
  const $xeTable = this;
28907
28907
  const props = $xeTable;
28908
28908
  const {
28909
- virtualXConfig
28909
+ virtualXConfig,
28910
+ scrollX
28910
28911
  } = props;
28912
+ const globalVirtualXConfig = table_getConfig().table.virtualXConfig;
28913
+ const globalScrollX = table_getConfig().table.scrollX;
28911
28914
  if (virtualXConfig) {
28912
- return Object.assign({}, table_getConfig().table.virtualXConfig, virtualXConfig);
28915
+ return Object.assign({}, globalVirtualXConfig, virtualXConfig);
28913
28916
  }
28914
- return Object.assign({}, table_getConfig().table.virtualXConfig, table_getConfig().table.scrollX, props.scrollX);
28917
+ if (scrollX) {
28918
+ // 已废弃,保留兼容
28919
+ return Object.assign({}, globalScrollX, scrollX);
28920
+ }
28921
+ if (globalVirtualXConfig) {
28922
+ return Object.assign({}, globalVirtualXConfig, virtualXConfig);
28923
+ }
28924
+ // 已废弃,保留兼容
28925
+ return Object.assign({}, globalScrollX, scrollX);
28915
28926
  },
28916
28927
  computeVirtualYOpts() {
28917
28928
  const $xeTable = this;
28918
28929
  const props = $xeTable;
28919
28930
  const {
28920
- virtualYConfig
28931
+ virtualYConfig,
28932
+ scrollY
28921
28933
  } = props;
28934
+ const globalVirtualYConfig = table_getConfig().table.virtualYConfig;
28935
+ const globalScrollY = table_getConfig().table.scrollY;
28922
28936
  if (virtualYConfig) {
28923
- return Object.assign({}, table_getConfig().table.virtualYConfig, virtualYConfig);
28937
+ return Object.assign({}, globalVirtualYConfig, virtualYConfig);
28938
+ }
28939
+ if (scrollY) {
28940
+ // 已废弃,保留兼容
28941
+ return Object.assign({}, globalScrollY, scrollY);
28942
+ }
28943
+ if (globalVirtualYConfig) {
28944
+ return Object.assign({}, globalVirtualYConfig, virtualYConfig);
28924
28945
  }
28925
- return Object.assign({}, table_getConfig().table.virtualYConfig, table_getConfig().table.scrollY, props.scrollY);
28946
+ // 已废弃,保留兼容
28947
+ return Object.assign({}, globalScrollY, scrollY);
28926
28948
  },
28927
28949
  computeScrollbarOpts() {
28928
28950
  const $xeTable = this;