Commit bb381c39 authored by hetech's avatar hetech Committed by GitHub

Table: fix layout breaks when append slot exists (#16332)

parent 1d1fcdd5
...@@ -123,9 +123,7 @@ ...@@ -123,9 +123,7 @@
<div <div
v-if="$slots.append" v-if="$slots.append"
class="el-table__append-gutter" class="el-table__append-gutter"
:style="{ :style="{ height: layout.appendHeight + 'px'}"></div>
height: layout.appendHeight + 'px'
}"></div>
</div> </div>
<div <div
v-if="showSummary" v-if="showSummary"
...@@ -183,6 +181,10 @@ ...@@ -183,6 +181,10 @@
width: bodyWidth width: bodyWidth
}"> }">
</table-body> </table-body>
<div
v-if="$slots.append"
class="el-table__append-gutter"
:style="{ height: layout.appendHeight + 'px' }"></div>
</div> </div>
<div <div
v-if="showSummary" v-if="showSummary"
......
...@@ -81,6 +81,11 @@ ...@@ -81,6 +81,11 @@
width: 20px; width: 20px;
} }
@include e(append-wrapper) {
// 避免外边距重合 https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
overflow: hidden;
}
@include m(fit) { @include m(fit) {
border-right: 0; border-right: 0;
border-bottom: 0; border-bottom: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment