vxe-table 3.13.10 → 3.13.12

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.
Files changed (36) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/src/methods.js +34 -14
  6. package/es/table/style.css +20 -22
  7. package/es/table/style.min.css +1 -1
  8. package/es/ui/index.js +1 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/es/vxe-table/style.css +20 -22
  11. package/es/vxe-table/style.min.css +1 -1
  12. package/lib/index.css +1 -1
  13. package/lib/index.min.css +1 -1
  14. package/lib/index.umd.js +32 -16
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/table/src/methods.js +30 -14
  19. package/lib/table/src/methods.min.js +1 -1
  20. package/lib/table/style/style.css +20 -22
  21. package/lib/table/style/style.min.css +1 -1
  22. package/lib/ui/index.js +1 -1
  23. package/lib/ui/index.min.js +1 -1
  24. package/lib/ui/src/log.js +1 -1
  25. package/lib/ui/src/log.min.js +1 -1
  26. package/lib/vxe-table/style/style.css +20 -22
  27. package/lib/vxe-table/style/style.min.css +1 -1
  28. package/package.json +1 -1
  29. package/packages/table/src/methods.ts +33 -19
  30. package/styles/components/table.scss +66 -22
  31. /package/es/{iconfont.1740398494462.ttf → iconfont.1740558658469.ttf} +0 -0
  32. /package/es/{iconfont.1740398494462.woff → iconfont.1740558658469.woff} +0 -0
  33. /package/es/{iconfont.1740398494462.woff2 → iconfont.1740558658469.woff2} +0 -0
  34. /package/lib/{iconfont.1740398494462.ttf → iconfont.1740558658469.ttf} +0 -0
  35. /package/lib/{iconfont.1740398494462.woff → iconfont.1740558658469.woff} +0 -0
  36. /package/lib/{iconfont.1740398494462.woff2 → iconfont.1740558658469.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3201,7 +3201,7 @@ function getClass(property, params) {
3201
3201
  ;// ./packages/ui/index.ts
3202
3202
 
3203
3203
 
3204
- const version = "3.13.10";
3204
+ const version = "3.13.12";
3205
3205
  core_.VxeUI.version = version;
3206
3206
  core_.VxeUI.tableVersion = version;
3207
3207
  core_.VxeUI.setConfig({
@@ -3828,7 +3828,7 @@ var es_iterator_map = __webpack_require__(1701);
3828
3828
  const {
3829
3829
  log: log_log
3830
3830
  } = core_.VxeUI;
3831
- const log_version = `table v${"3.13.10"}`;
3831
+ const log_version = `table v${"3.13.12"}`;
3832
3832
  const warnLog = log_log.create('warn', log_version);
3833
3833
  const errLog = log_log.create('error', log_version);
3834
3834
  ;// ./packages/table/src/columnInfo.ts
@@ -6725,16 +6725,10 @@ function updateStyle($xeTable) {
6725
6725
  if (layout === 'header') {
6726
6726
  // 表头体样式处理
6727
6727
  // 横向滚动渲染
6728
- let tWidth = tableWidth;
6729
6728
  let renderColumnList = tableColumn;
6730
6729
  let isOptimizeMode = false;
6731
6730
  if (isGroup) {
6732
6731
  renderColumnList = visibleColumn;
6733
- if (fixedType) {
6734
- if (wrapperElem) {
6735
- wrapperElem.style.width = tWidth ? `${tWidth}px` : '';
6736
- }
6737
- }
6738
6732
  } else {
6739
6733
  // 如果是使用优化模式
6740
6734
  if (scrollXLoad || scrollYLoad || allColumnHeaderOverflow) {
@@ -6750,14 +6744,26 @@ function updateStyle($xeTable) {
6750
6744
  if (isOptimizeMode) {
6751
6745
  renderColumnList = fixedColumn || [];
6752
6746
  }
6753
- if (!isOptimizeMode) {
6747
+ }
6748
+ }
6749
+ const tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0);
6750
+ if (fixedType) {
6751
+ if (isGroup) {
6752
+ if (wrapperElem) {
6753
+ wrapperElem.style.width = tableWidth ? `${tableWidth}px` : '';
6754
+ }
6755
+ } else {
6756
+ if (isOptimizeMode) {
6754
6757
  if (wrapperElem) {
6755
6758
  wrapperElem.style.width = tWidth ? `${tWidth}px` : '';
6756
6759
  }
6760
+ } else {
6761
+ if (wrapperElem) {
6762
+ wrapperElem.style.width = tableWidth ? `${tableWidth}px` : '';
6763
+ }
6757
6764
  }
6758
6765
  }
6759
6766
  }
6760
- tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0);
6761
6767
  if (currScrollElem) {
6762
6768
  currScrollElem.style.height = `${headerHeight}px`;
6763
6769
  }
@@ -6812,7 +6818,6 @@ function updateStyle($xeTable) {
6812
6818
  fixedWrapperElem.style.height = `${customHeight > 0 ? customHeight : tableHeight + headerHeight + footerHeight + osbHeight}px`;
6813
6819
  fixedWrapperElem.style.width = `${fixedColumn.reduce((previous, column) => previous + column.renderWidth, 0)}px`;
6814
6820
  }
6815
- let tWidth = tableWidth;
6816
6821
  let renderColumnList = tableColumn;
6817
6822
  let isOptimizeMode = false;
6818
6823
  // 如果是使用优化模式
@@ -6828,13 +6833,19 @@ function updateStyle($xeTable) {
6828
6833
  if (isOptimizeMode) {
6829
6834
  renderColumnList = fixedColumn || [];
6830
6835
  }
6831
- if (!isOptimizeMode) {
6836
+ }
6837
+ const tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0);
6838
+ if (fixedType) {
6839
+ if (isOptimizeMode) {
6832
6840
  if (wrapperElem) {
6833
6841
  wrapperElem.style.width = tWidth ? `${tWidth}px` : '';
6834
6842
  }
6843
+ } else {
6844
+ if (wrapperElem) {
6845
+ wrapperElem.style.width = tableWidth ? `${tableWidth}px` : '';
6846
+ }
6835
6847
  }
6836
6848
  }
6837
- tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0);
6838
6849
  if (tableElem) {
6839
6850
  tableElem.style.width = tWidth ? `${tWidth}px` : '';
6840
6851
  // 兼容性处理
@@ -6845,7 +6856,6 @@ function updateStyle($xeTable) {
6845
6856
  emptyBlockElem.style.width = tWidth ? `${tWidth}px` : '';
6846
6857
  }
6847
6858
  } else if (layout === 'footer') {
6848
- let tWidth = tableWidth;
6849
6859
  let renderColumnList = tableColumn;
6850
6860
  let isOptimizeMode = false;
6851
6861
  // 如果是使用优化模式
@@ -6861,13 +6871,19 @@ function updateStyle($xeTable) {
6861
6871
  if (isOptimizeMode) {
6862
6872
  renderColumnList = fixedColumn || [];
6863
6873
  }
6864
- if (!isOptimizeMode) {
6874
+ }
6875
+ const tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0);
6876
+ if (fixedType) {
6877
+ if (isOptimizeMode) {
6865
6878
  if (wrapperElem) {
6866
6879
  wrapperElem.style.width = tWidth ? `${tWidth}px` : '';
6867
6880
  }
6881
+ } else {
6882
+ if (wrapperElem) {
6883
+ wrapperElem.style.width = tableWidth ? `${tableWidth}px` : '';
6884
+ }
6868
6885
  }
6869
6886
  }
6870
- tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0);
6871
6887
  if (currScrollElem) {
6872
6888
  currScrollElem.style.height = `${footerHeight}px`;
6873
6889
  // 如果是固定列