feat(table): add summaryData prop #163

This commit is contained in:
vben
2021-01-05 21:46:39 +08:00
parent 31ff0559fe
commit 8d7d0835ad
8 changed files with 30 additions and 12 deletions

View File

@@ -70,10 +70,14 @@
const getPlaceholderDomStyle = computed(
(): CSSProperties => {
let height = 0;
if ((unref(getShowFullHeaderRef) || !unref(getSplit)) && unref(getShowHeader)) {
if (
(unref(getShowFullHeaderRef) || !unref(getSplit)) &&
unref(getShowHeader) &&
!unref(getFullContent)
) {
height += HEADER_HEIGHT;
}
if (unref(getShowMultipleTab)) {
if (unref(getShowMultipleTab) && !unref(getFullContent)) {
height += TABS_HEIGHT;
}
headerHeightRef.value = height;