vxe-table 3.17.8 → 3.17.9

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.
@@ -362,6 +362,8 @@ function cacheColumnMap($xeTable) {
362
362
  reactData.rowGroupColumn = rowGroupColumn;
363
363
  reactData.treeNodeColumn = treeNodeColumn;
364
364
  reactData.expandColumn = expandColumn;
365
+ reactData.checkboxColumn = checkboxColumn;
366
+ reactData.radioColumn = radioColumn;
365
367
  reactData.isAllOverflow = isAllOverflow;
366
368
  }
367
369
  function updateScrollXStatus($xeTable, fullColumn) {
@@ -931,8 +933,8 @@ function updateStyle($xeTable) {
931
933
  const reactData = $xeTable;
932
934
  const internalData = $xeTable;
933
935
  const { showHeaderOverflow: allColumnHeaderOverflow, showFooterOverflow: allColumnFooterOverflow, mouseConfig, spanMethod, footerSpanMethod } = props;
934
- const { isGroup, currentRow, tableColumn, scrollXLoad, scrollYLoad, overflowX, scrollbarWidth, overflowY, scrollbarHeight, scrollXWidth, columnStore, editStore, isAllOverflow, expandColumn, isColLoading, tHeaderHeight, tFooterHeight } = reactData;
935
- const { visibleColumn, tableHeight, elemStore, customHeight, customMinHeight, customMaxHeight } = internalData;
936
+ const { isGroup, currentRow, tableColumn, scrollXLoad, scrollYLoad, overflowX, scrollbarWidth, overflowY, scrollbarHeight, scrollXWidth, columnStore, editStore, isAllOverflow, expandColumn, isColLoading } = reactData;
937
+ const { visibleColumn, tableHeight, elemStore, customHeight, customMinHeight, customMaxHeight, tHeaderHeight, tFooterHeight } = internalData;
936
938
  const $xeGanttView = internalData.xeGanttView;
937
939
  const el = $xeTable.$refs.refElem;
938
940
  if (!el || !el.clientHeight) {
@@ -940,8 +942,9 @@ function updateStyle($xeTable) {
940
942
  }
941
943
  const containerList = ['main', 'left', 'right'];
942
944
  let osbWidth = overflowY ? scrollbarWidth : 0;
943
- const osbHeight = overflowX ? scrollbarHeight : 0;
945
+ let osbHeight = overflowX ? scrollbarHeight : 0;
944
946
  const emptyPlaceholderElem = $xeTable.$refs.refEmptyPlaceholder;
947
+ const scrollbarOpts = $xeTable.computeScrollbarOpts;
945
948
  const mouseOpts = $xeTable.computeMouseOpts;
946
949
  const expandOpts = $xeTable.computeExpandOpts;
947
950
  const bodyWrapperElem = getRefElem(elemStore['main-body-wrapper']);
@@ -952,13 +955,19 @@ function updateStyle($xeTable) {
952
955
  }
953
956
  const scrollbarXToTop = $xeTable.computeScrollbarXToTop;
954
957
  const scrollbarYToLeft = $xeTable.computeScrollbarYToLeft;
955
- const xScrollbarVisible = overflowX ? 'visible' : 'hidden';
956
- let yScrollbarVisible = overflowY ? 'visible' : 'hidden';
958
+ let xScrollbarVisible = overflowX ? 'visible' : 'hidden';
957
959
  if ($xeGanttView) {
958
- if (!scrollbarYToLeft) {
959
- osbWidth = 0;
960
- yScrollbarVisible = 'hidden';
961
- }
960
+ osbHeight = scrollbarHeight;
961
+ xScrollbarVisible = 'visible';
962
+ }
963
+ else if (scrollbarOpts.x && scrollbarOpts.x.visible === false) {
964
+ osbHeight = 0;
965
+ xScrollbarVisible = 'hidden';
966
+ }
967
+ let yScrollbarVisible = overflowY ? 'visible' : 'hidden';
968
+ if ((scrollbarOpts.y && scrollbarOpts.y.visible === false) || ($xeGanttView && !scrollbarYToLeft)) {
969
+ osbWidth = 0;
970
+ yScrollbarVisible = 'hidden';
962
971
  }
963
972
  let tbHeight = 0;
964
973
  let bodyMaxHeight = 0;
@@ -1027,7 +1036,7 @@ function updateStyle($xeTable) {
1027
1036
  rowExpandEl.style.height = `${tbHeight}px`;
1028
1037
  rowExpandEl.style.top = `${tHeaderHeight}px`;
1029
1038
  }
1030
- reactData.tBodyHeight = tbHeight;
1039
+ internalData.tBodyHeight = tbHeight;
1031
1040
  containerList.forEach((name, index) => {
1032
1041
  const fixedType = index > 0 ? name : '';
1033
1042
  const layoutList = ['header', 'body', 'footer'];
@@ -2673,8 +2682,8 @@ function calcScrollbar($xeTable) {
2673
2682
  const hHeight = headerTableElem ? headerTableElem.clientHeight : 0;
2674
2683
  const fHeight = footerTableElem ? footerTableElem.clientHeight : 0;
2675
2684
  internalData.tableHeight = bodyWrapperElem.offsetHeight;
2676
- reactData.tHeaderHeight = hHeight;
2677
- reactData.tFooterHeight = fHeight;
2685
+ internalData.tHeaderHeight = hHeight;
2686
+ internalData.tFooterHeight = fHeight;
2678
2687
  reactData.overflowX = overflowX;
2679
2688
  reactData.parentHeight = Math.max(hHeight + fHeight + 20, $xeTable.getParentHeight());
2680
2689
  }
@@ -2763,6 +2772,9 @@ function handleLazyRecalculate($xeTable, reFull, reWidth, reHeight) {
2763
2772
  }, refreshDelay);
2764
2773
  });
2765
2774
  }
2775
+ function handleResizeEvent($xeTable) {
2776
+ handleLazyRecalculate($xeTable, true, true, true);
2777
+ }
2766
2778
  function handleUpdateAggValues($xeTable) {
2767
2779
  const reactData = $xeTable;
2768
2780
  const internalData = $xeTable;
@@ -3453,12 +3465,12 @@ function lazyScrollYData($xeTable) {
3453
3465
  function checkLastSyncScroll($xeTable, isRollX, isRollY) {
3454
3466
  const reactData = $xeTable;
3455
3467
  const internalData = $xeTable;
3456
- const { scrollXLoad, scrollYLoad, isAllOverflow } = reactData;
3457
3468
  const { lcsTimeout } = internalData;
3458
3469
  if (lcsTimeout) {
3459
3470
  clearTimeout(lcsTimeout);
3460
3471
  }
3461
3472
  internalData.lcsTimeout = setTimeout(() => {
3473
+ const { scrollXLoad, scrollYLoad, isAllOverflow } = reactData;
3462
3474
  internalData.lcsRunTime = Date.now();
3463
3475
  internalData.lcsTimeout = undefined;
3464
3476
  internalData.intoRunScroll = false;
@@ -5919,6 +5931,10 @@ const Methods = {
5919
5931
  }, 10);
5920
5932
  });
5921
5933
  },
5934
+ handleResizeEvent() {
5935
+ const $xeTable = this;
5936
+ handleResizeEvent($xeTable);
5937
+ },
5922
5938
  /**
5923
5939
  * 重新渲染布局
5924
5940
  * 刷新布局
@@ -6538,7 +6554,7 @@ const Methods = {
6538
6554
  const $xeTable = this;
6539
6555
  $xeTable.closeMenu();
6540
6556
  $xeTable.updateCellAreas();
6541
- handleLazyRecalculate($xeTable, true, true, true);
6557
+ handleResizeEvent($xeTable);
6542
6558
  $xeTable.updateCellAreas();
6543
6559
  },
6544
6560
  /**
@@ -7723,8 +7739,8 @@ const Methods = {
7723
7739
  const $xeTable = this;
7724
7740
  const props = $xeTable;
7725
7741
  const reactData = $xeTable;
7726
- const { highlightCurrentRow, highlightCurrentColumn, editConfig } = props;
7727
- const { editStore, isDragResize } = reactData;
7742
+ const { treeConfig, highlightCurrentRow, highlightCurrentColumn, editConfig, aggregateConfig, rowGroupConfig } = props;
7743
+ const { editStore, isDragResize, expandColumn, checkboxColumn, radioColumn } = reactData;
7728
7744
  if (isDragResize) {
7729
7745
  return;
7730
7746
  }
@@ -7753,15 +7769,15 @@ const Methods = {
7753
7769
  params = Object.assign({ cell, triggerRadio, triggerCheckbox, triggerTreeNode, triggerExpandNode }, params);
7754
7770
  if (!triggerCheckbox && !triggerRadio) {
7755
7771
  // 如果是展开行
7756
- if (!triggerExpandNode && (expandOpts.trigger === 'row' || (isExpandType && expandOpts.trigger === 'cell'))) {
7772
+ if (!triggerExpandNode && ((expandColumn && expandOpts.trigger === 'row') || (isExpandType && expandOpts.trigger === 'cell'))) {
7757
7773
  $xeTable.triggerRowExpandEvent(evnt, params);
7758
7774
  }
7759
7775
  // 如果是树形表格
7760
- if ((treeOpts.trigger === 'row' || (treeNode && treeOpts.trigger === 'cell'))) {
7776
+ if (treeConfig && (treeOpts.trigger === 'row' || (treeNode && treeOpts.trigger === 'cell'))) {
7761
7777
  $xeTable.triggerTreeExpandEvent(evnt, params);
7762
7778
  }
7763
7779
  // 如果是行分组
7764
- if ((aggregateOpts.trigger === 'row' || (rowGroupNode && aggregateOpts.trigger === 'cell'))) {
7780
+ if ((aggregateConfig || rowGroupConfig) && (aggregateOpts.trigger === 'row' || (rowGroupNode && aggregateOpts.trigger === 'cell'))) {
7765
7781
  $xeTable.triggerRowGroupExpandEvent(evnt, params);
7766
7782
  }
7767
7783
  }
@@ -7781,11 +7797,11 @@ const Methods = {
7781
7797
  }
7782
7798
  }
7783
7799
  // 如果是单选框
7784
- if (!triggerRadio && (radioOpts.trigger === 'row' || (isRadioType && radioOpts.trigger === 'cell'))) {
7800
+ if (!triggerRadio && ((radioColumn && radioOpts.trigger === 'row') || (isRadioType && radioOpts.trigger === 'cell'))) {
7785
7801
  $xeTable.triggerRadioRowEvent(evnt, params);
7786
7802
  }
7787
7803
  // 如果是复选框
7788
- if (!triggerCheckbox && (checkboxOpts.trigger === 'row' || (isCheckboxType && checkboxOpts.trigger === 'cell'))) {
7804
+ if (!triggerCheckbox && ((checkboxColumn && checkboxOpts.trigger === 'row') || (isCheckboxType && checkboxOpts.trigger === 'cell'))) {
7789
7805
  $xeTable.handleToggleCheckRowEvent(evnt, params);
7790
7806
  }
7791
7807
  }
@@ -489,12 +489,6 @@ export default {
489
489
  scrollbarHeight: 0,
490
490
  // 行高
491
491
  rowHeight: 0,
492
- // 表头高度
493
- tHeaderHeight: 0,
494
- // 表体高度
495
- tBodyHeight: 0,
496
- // 表尾高度
497
- tFooterHeight: 0,
498
492
  // 表格父容器的高度
499
493
  parentHeight: 0,
500
494
  // 是否使用分组表头
@@ -516,6 +510,8 @@ export default {
516
510
  rowGroupColumn: null,
517
511
  // 展开列信息
518
512
  expandColumn: null,
513
+ checkboxColumn: null,
514
+ radioColumn: null,
519
515
  hasFixedColumn: false,
520
516
  // 树节点列信息
521
517
  treeNodeColumn: null,
@@ -1713,7 +1709,7 @@ export default {
1713
1709
  if (this.autoResize) {
1714
1710
  const resizeObserver = globalResize.create(() => {
1715
1711
  if (this.autoResize) {
1716
- this.recalculate(true);
1712
+ this.handleResizeEvent();
1717
1713
  }
1718
1714
  });
1719
1715
  resizeObserver.observe(this.$el);
@@ -109,6 +109,12 @@ export function createInternalData() {
109
109
  // 已删除行
110
110
  removeRowMaps: {},
111
111
  cvCacheMaps: {},
112
+ // 表头高度
113
+ tHeaderHeight: 0,
114
+ // 表体高度
115
+ tBodyHeight: 0,
116
+ // 表尾高度
117
+ tFooterHeight: 0,
112
118
  inited: false,
113
119
  tooltipTimeout: null,
114
120
  initStatus: false,
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.8";
3
+ export const version = "3.17.9";
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.8"}`;
3
+ const version = `table v${"3.17.9"}`;
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.8";
2005
+ const version = "3.17.9";
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.17.8"}`;
2681
+ const log_version = `table v${"3.17.9"}`;
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
@@ -2994,6 +2994,12 @@ function createInternalData() {
2994
2994
  // 已删除行
2995
2995
  removeRowMaps: {},
2996
2996
  cvCacheMaps: {},
2997
+ // 表头高度
2998
+ tHeaderHeight: 0,
2999
+ // 表体高度
3000
+ tBodyHeight: 0,
3001
+ // 表尾高度
3002
+ tFooterHeight: 0,
2997
3003
  inited: false,
2998
3004
  tooltipTimeout: null,
2999
3005
  initStatus: false,
@@ -6127,6 +6133,8 @@ function cacheColumnMap($xeTable) {
6127
6133
  reactData.rowGroupColumn = rowGroupColumn;
6128
6134
  reactData.treeNodeColumn = treeNodeColumn;
6129
6135
  reactData.expandColumn = expandColumn;
6136
+ reactData.checkboxColumn = checkboxColumn;
6137
+ reactData.radioColumn = radioColumn;
6130
6138
  reactData.isAllOverflow = isAllOverflow;
6131
6139
  }
6132
6140
  function updateScrollXStatus($xeTable, fullColumn) {
@@ -6904,9 +6912,7 @@ function updateStyle($xeTable) {
6904
6912
  editStore,
6905
6913
  isAllOverflow,
6906
6914
  expandColumn,
6907
- isColLoading,
6908
- tHeaderHeight,
6909
- tFooterHeight
6915
+ isColLoading
6910
6916
  } = reactData;
6911
6917
  const {
6912
6918
  visibleColumn,
@@ -6914,7 +6920,9 @@ function updateStyle($xeTable) {
6914
6920
  elemStore,
6915
6921
  customHeight,
6916
6922
  customMinHeight,
6917
- customMaxHeight
6923
+ customMaxHeight,
6924
+ tHeaderHeight,
6925
+ tFooterHeight
6918
6926
  } = internalData;
6919
6927
  const $xeGanttView = internalData.xeGanttView;
6920
6928
  const el = $xeTable.$refs.refElem;
@@ -6923,8 +6931,9 @@ function updateStyle($xeTable) {
6923
6931
  }
6924
6932
  const containerList = ['main', 'left', 'right'];
6925
6933
  let osbWidth = overflowY ? scrollbarWidth : 0;
6926
- const osbHeight = overflowX ? scrollbarHeight : 0;
6934
+ let osbHeight = overflowX ? scrollbarHeight : 0;
6927
6935
  const emptyPlaceholderElem = $xeTable.$refs.refEmptyPlaceholder;
6936
+ const scrollbarOpts = $xeTable.computeScrollbarOpts;
6928
6937
  const mouseOpts = $xeTable.computeMouseOpts;
6929
6938
  const expandOpts = $xeTable.computeExpandOpts;
6930
6939
  const bodyWrapperElem = getRefElem(elemStore['main-body-wrapper']);
@@ -6935,13 +6944,18 @@ function updateStyle($xeTable) {
6935
6944
  }
6936
6945
  const scrollbarXToTop = $xeTable.computeScrollbarXToTop;
6937
6946
  const scrollbarYToLeft = $xeTable.computeScrollbarYToLeft;
6938
- const xScrollbarVisible = overflowX ? 'visible' : 'hidden';
6939
- let yScrollbarVisible = overflowY ? 'visible' : 'hidden';
6947
+ let xScrollbarVisible = overflowX ? 'visible' : 'hidden';
6940
6948
  if ($xeGanttView) {
6941
- if (!scrollbarYToLeft) {
6942
- osbWidth = 0;
6943
- yScrollbarVisible = 'hidden';
6944
- }
6949
+ osbHeight = scrollbarHeight;
6950
+ xScrollbarVisible = 'visible';
6951
+ } else if (scrollbarOpts.x && scrollbarOpts.x.visible === false) {
6952
+ osbHeight = 0;
6953
+ xScrollbarVisible = 'hidden';
6954
+ }
6955
+ let yScrollbarVisible = overflowY ? 'visible' : 'hidden';
6956
+ if (scrollbarOpts.y && scrollbarOpts.y.visible === false || $xeGanttView && !scrollbarYToLeft) {
6957
+ osbWidth = 0;
6958
+ yScrollbarVisible = 'hidden';
6945
6959
  }
6946
6960
  let tbHeight = 0;
6947
6961
  let bodyMaxHeight = 0;
@@ -7010,7 +7024,7 @@ function updateStyle($xeTable) {
7010
7024
  rowExpandEl.style.height = `${tbHeight}px`;
7011
7025
  rowExpandEl.style.top = `${tHeaderHeight}px`;
7012
7026
  }
7013
- reactData.tBodyHeight = tbHeight;
7027
+ internalData.tBodyHeight = tbHeight;
7014
7028
  containerList.forEach((name, index) => {
7015
7029
  const fixedType = index > 0 ? name : '';
7016
7030
  const layoutList = ['header', 'body', 'footer'];
@@ -8899,8 +8913,8 @@ function calcScrollbar($xeTable) {
8899
8913
  const hHeight = headerTableElem ? headerTableElem.clientHeight : 0;
8900
8914
  const fHeight = footerTableElem ? footerTableElem.clientHeight : 0;
8901
8915
  internalData.tableHeight = bodyWrapperElem.offsetHeight;
8902
- reactData.tHeaderHeight = hHeight;
8903
- reactData.tFooterHeight = fHeight;
8916
+ internalData.tHeaderHeight = hHeight;
8917
+ internalData.tFooterHeight = fHeight;
8904
8918
  reactData.overflowX = overflowX;
8905
8919
  reactData.parentHeight = Math.max(hHeight + fHeight + 20, $xeTable.getParentHeight());
8906
8920
  }
@@ -8990,6 +9004,9 @@ function handleLazyRecalculate($xeTable, reFull, reWidth, reHeight) {
8990
9004
  }, refreshDelay);
8991
9005
  });
8992
9006
  }
9007
+ function handleResizeEvent($xeTable) {
9008
+ handleLazyRecalculate($xeTable, true, true, true);
9009
+ }
8993
9010
  function handleUpdateAggValues($xeTable) {
8994
9011
  const reactData = $xeTable;
8995
9012
  const internalData = $xeTable;
@@ -9792,11 +9809,6 @@ function lazyScrollYData($xeTable) {
9792
9809
  function checkLastSyncScroll($xeTable, isRollX, isRollY) {
9793
9810
  const reactData = $xeTable;
9794
9811
  const internalData = $xeTable;
9795
- const {
9796
- scrollXLoad,
9797
- scrollYLoad,
9798
- isAllOverflow
9799
- } = reactData;
9800
9812
  const {
9801
9813
  lcsTimeout
9802
9814
  } = internalData;
@@ -9804,6 +9816,11 @@ function checkLastSyncScroll($xeTable, isRollX, isRollY) {
9804
9816
  clearTimeout(lcsTimeout);
9805
9817
  }
9806
9818
  internalData.lcsTimeout = setTimeout(() => {
9819
+ const {
9820
+ scrollXLoad,
9821
+ scrollYLoad,
9822
+ isAllOverflow
9823
+ } = reactData;
9807
9824
  internalData.lcsRunTime = Date.now();
9808
9825
  internalData.lcsTimeout = undefined;
9809
9826
  internalData.intoRunScroll = false;
@@ -12627,6 +12644,10 @@ const Methods = {
12627
12644
  }, 10);
12628
12645
  });
12629
12646
  },
12647
+ handleResizeEvent() {
12648
+ const $xeTable = this;
12649
+ handleResizeEvent($xeTable);
12650
+ },
12630
12651
  /**
12631
12652
  * 重新渲染布局
12632
12653
  * 刷新布局
@@ -13311,7 +13332,7 @@ const Methods = {
13311
13332
  const $xeTable = this;
13312
13333
  $xeTable.closeMenu();
13313
13334
  $xeTable.updateCellAreas();
13314
- handleLazyRecalculate($xeTable, true, true, true);
13335
+ handleResizeEvent($xeTable);
13315
13336
  $xeTable.updateCellAreas();
13316
13337
  },
13317
13338
  /**
@@ -14743,13 +14764,19 @@ const Methods = {
14743
14764
  const props = $xeTable;
14744
14765
  const reactData = $xeTable;
14745
14766
  const {
14767
+ treeConfig,
14746
14768
  highlightCurrentRow,
14747
14769
  highlightCurrentColumn,
14748
- editConfig
14770
+ editConfig,
14771
+ aggregateConfig,
14772
+ rowGroupConfig
14749
14773
  } = props;
14750
14774
  const {
14751
14775
  editStore,
14752
- isDragResize
14776
+ isDragResize,
14777
+ expandColumn,
14778
+ checkboxColumn,
14779
+ radioColumn
14753
14780
  } = reactData;
14754
14781
  if (isDragResize) {
14755
14782
  return;
@@ -14795,15 +14822,15 @@ const Methods = {
14795
14822
  }, params);
14796
14823
  if (!triggerCheckbox && !triggerRadio) {
14797
14824
  // 如果是展开行
14798
- if (!triggerExpandNode && (expandOpts.trigger === 'row' || isExpandType && expandOpts.trigger === 'cell')) {
14825
+ if (!triggerExpandNode && (expandColumn && expandOpts.trigger === 'row' || isExpandType && expandOpts.trigger === 'cell')) {
14799
14826
  $xeTable.triggerRowExpandEvent(evnt, params);
14800
14827
  }
14801
14828
  // 如果是树形表格
14802
- if (treeOpts.trigger === 'row' || treeNode && treeOpts.trigger === 'cell') {
14829
+ if (treeConfig && (treeOpts.trigger === 'row' || treeNode && treeOpts.trigger === 'cell')) {
14803
14830
  $xeTable.triggerTreeExpandEvent(evnt, params);
14804
14831
  }
14805
14832
  // 如果是行分组
14806
- if (aggregateOpts.trigger === 'row' || rowGroupNode && aggregateOpts.trigger === 'cell') {
14833
+ if ((aggregateConfig || rowGroupConfig) && (aggregateOpts.trigger === 'row' || rowGroupNode && aggregateOpts.trigger === 'cell')) {
14807
14834
  $xeTable.triggerRowGroupExpandEvent(evnt, params);
14808
14835
  }
14809
14836
  }
@@ -14823,11 +14850,11 @@ const Methods = {
14823
14850
  }
14824
14851
  }
14825
14852
  // 如果是单选框
14826
- if (!triggerRadio && (radioOpts.trigger === 'row' || isRadioType && radioOpts.trigger === 'cell')) {
14853
+ if (!triggerRadio && (radioColumn && radioOpts.trigger === 'row' || isRadioType && radioOpts.trigger === 'cell')) {
14827
14854
  $xeTable.triggerRadioRowEvent(evnt, params);
14828
14855
  }
14829
14856
  // 如果是复选框
14830
- if (!triggerCheckbox && (checkboxOpts.trigger === 'row' || isCheckboxType && checkboxOpts.trigger === 'cell')) {
14857
+ if (!triggerCheckbox && (checkboxColumn && checkboxOpts.trigger === 'row' || isCheckboxType && checkboxOpts.trigger === 'cell')) {
14831
14858
  $xeTable.handleToggleCheckRowEvent(evnt, params);
14832
14859
  }
14833
14860
  }
@@ -28890,12 +28917,6 @@ function renderBody(h, $xeTable) {
28890
28917
  scrollbarHeight: 0,
28891
28918
  // 行高
28892
28919
  rowHeight: 0,
28893
- // 表头高度
28894
- tHeaderHeight: 0,
28895
- // 表体高度
28896
- tBodyHeight: 0,
28897
- // 表尾高度
28898
- tFooterHeight: 0,
28899
28920
  // 表格父容器的高度
28900
28921
  parentHeight: 0,
28901
28922
  // 是否使用分组表头
@@ -28917,6 +28938,8 @@ function renderBody(h, $xeTable) {
28917
28938
  rowGroupColumn: null,
28918
28939
  // 展开列信息
28919
28940
  expandColumn: null,
28941
+ checkboxColumn: null,
28942
+ radioColumn: null,
28920
28943
  hasFixedColumn: false,
28921
28944
  // 树节点列信息
28922
28945
  treeNodeColumn: null,
@@ -30212,7 +30235,7 @@ function renderBody(h, $xeTable) {
30212
30235
  if (this.autoResize) {
30213
30236
  const resizeObserver = table_globalResize.create(() => {
30214
30237
  if (this.autoResize) {
30215
- this.recalculate(true);
30238
+ this.handleResizeEvent();
30216
30239
  }
30217
30240
  });
30218
30241
  resizeObserver.observe(this.$el);