From 942284dbe181ad09102312cd65428dbd3128dfee Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 12 Oct 2023 08:46:01 -0500 Subject: [PATCH] fix(components): [table] show-summary style error when table-layout=auto (#14523) --- packages/components/table/src/table.vue | 1 + packages/theme-chalk/src/table.scss | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/packages/components/table/src/table.vue b/packages/components/table/src/table.vue index 04820046fa..3de765f27c 100644 --- a/packages/components/table/src/table.vue +++ b/packages/components/table/src/table.vue @@ -100,6 +100,7 @@ /> .cell { @@ -558,10 +563,18 @@ } } - @include e(body-header) { - position: sticky; - top: 0; - z-index: calc(getCssVar('table-index') + 2); + &.#{$namespace}-table--scrollable-y { + @include e(body-header) { + position: sticky; + top: 0; + z-index: calc(getCssVar('table-index') + 2); + } + + @include e(body-footer) { + position: sticky; + bottom: 0; + z-index: calc(getCssVar('table-index') + 2); + } } @include e(column-resize-proxy) {