vxe-table 3.11.29 → 3.11.30-beta.1

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 (33) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/module/custom/mixin.js +31 -19
  3. package/es/table/module/keyboard/mixin.js +2 -1
  4. package/es/table/src/methods.js +237 -272
  5. package/es/table/src/table.js +23 -9
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/index.umd.js +329 -345
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/table/module/custom/mixin.js +36 -23
  12. package/lib/table/module/custom/mixin.min.js +1 -1
  13. package/lib/table/module/keyboard/mixin.js +2 -3
  14. package/lib/table/module/keyboard/mixin.min.js +1 -1
  15. package/lib/table/src/methods.js +264 -306
  16. package/lib/table/src/methods.min.js +1 -1
  17. package/lib/table/src/table.js +25 -9
  18. package/lib/table/src/table.min.js +1 -1
  19. package/lib/ui/index.js +1 -1
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/package.json +2 -2
  24. package/packages/table/module/custom/mixin.ts +35 -19
  25. package/packages/table/module/keyboard/mixin.ts +3 -1
  26. package/packages/table/src/methods.ts +247 -262
  27. package/packages/table/src/table.ts +26 -9
  28. /package/es/{iconfont.1734067799153.ttf → iconfont.1734093222885.ttf} +0 -0
  29. /package/es/{iconfont.1734067799153.woff → iconfont.1734093222885.woff} +0 -0
  30. /package/es/{iconfont.1734067799153.woff2 → iconfont.1734093222885.woff2} +0 -0
  31. /package/lib/{iconfont.1734067799153.ttf → iconfont.1734093222885.ttf} +0 -0
  32. /package/lib/{iconfont.1734067799153.woff → iconfont.1734093222885.woff} +0 -0
  33. /package/lib/{iconfont.1734067799153.woff2 → iconfont.1734093222885.woff2} +0 -0
@@ -679,20 +679,34 @@ export default {
679
679
  const { tableColumn, visibleColumn } = this;
680
680
  return tableColumn.length || visibleColumn.length ? visibleColumn.filter((column) => column.width === 'auto' || column.minWidth === 'auto') : [];
681
681
  },
682
- fixedColumnSize() {
683
- const { collectColumn } = this;
682
+ computeFixedColumnSize() {
683
+ const $xeTable = this;
684
+ const reactData = $xeTable;
685
+ const internalData = $xeTable;
686
+ const { tableColumn } = reactData;
687
+ const { collectColumn } = internalData;
684
688
  let fixedSize = 0;
685
- collectColumn.forEach((column) => {
686
- if (column.renderFixed) {
687
- fixedSize++;
688
- }
689
- });
689
+ // 只判断第一层
690
+ if (tableColumn.length && collectColumn.length) {
691
+ collectColumn.forEach((column) => {
692
+ if (column.renderFixed) {
693
+ fixedSize++;
694
+ }
695
+ });
696
+ }
690
697
  return fixedSize;
691
698
  },
699
+ fixedColumnSize() {
700
+ const $xeTable = this;
701
+ return $xeTable.computeFixedColumnSize;
702
+ },
692
703
  computeIsMaxFixedColumn() {
693
- const { maxFixedSize } = this.columnOpts;
704
+ const $xeTable = this;
705
+ const fixedColumnSize = $xeTable.computeFixedColumnSize;
706
+ const columnOpts = $xeTable.columnOpts;
707
+ const { maxFixedSize } = columnOpts;
694
708
  if (maxFixedSize) {
695
- return this.fixedColumnSize >= maxFixedSize;
709
+ return fixedColumnSize >= maxFixedSize;
696
710
  }
697
711
  return false;
698
712
  },
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.11.29";
3
+ export const version = "3.11.30-beta.1";
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.11.29"}`;
3
+ const version = `table v${"3.11.30-beta.1"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);