vxe-table 3.19.40 → 3.19.41

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.
@@ -2757,15 +2757,19 @@ function calcTableHeight($xeTable, key) {
2757
2757
  editRules
2758
2758
  } = props;
2759
2759
  const {
2760
- parentHeight
2760
+ parentHeight,
2761
+ tableColumn
2761
2762
  } = reactData;
2762
2763
  let val = props[key];
2763
2764
  if (key === 'minHeight') {
2764
2765
  const defMinHeight = getConfig().table.minHeight;
2765
2766
  if (_xeUtils.default.eqNull(val)) {
2766
2767
  if ((0, _utils.eqEmptyValue)(defMinHeight)) {
2767
- // 编辑模式默认最小高度
2768
- if (editRules && (0, _utils.isEnableConf)(editConfig)) {
2768
+ if (!tableColumn.length) {
2769
+ // 如果全部列被隐藏
2770
+ val = 40;
2771
+ } else if (editRules && (0, _utils.isEnableConf)(editConfig)) {
2772
+ // 编辑模式默认最小高度
2769
2773
  val = 144;
2770
2774
  }
2771
2775
  } else {