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.
- package/es/style.css +1 -1
- package/es/table/src/methods.js +7 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +5 -4
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +7 -3
- package/lib/table/src/methods.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/src/methods.ts +6 -3
- /package/es/{iconfont.1767772385354.ttf → iconfont.1767841730191.ttf} +0 -0
- /package/es/{iconfont.1767772385354.woff → iconfont.1767841730191.woff} +0 -0
- /package/es/{iconfont.1767772385354.woff2 → iconfont.1767841730191.woff2} +0 -0
- /package/lib/{iconfont.1767772385354.ttf → iconfont.1767841730191.ttf} +0 -0
- /package/lib/{iconfont.1767772385354.woff → iconfont.1767841730191.woff} +0 -0
- /package/lib/{iconfont.1767772385354.woff2 → iconfont.1767841730191.woff2} +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -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
|
-
|
|
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 {
|