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

pull/16334/head
hetech 2019-07-01 15:34:35 +08:00 committed by GitHub
parent 1d1fcdd53e
commit bb381c3944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -123,9 +123,7 @@
<div
v-if="$slots.append"
class="el-table__append-gutter"
:style="{
height: layout.appendHeight + 'px'
}"></div>
:style="{ height: layout.appendHeight + 'px'}"></div>
</div>
<div
v-if="showSummary"
@ -183,6 +181,10 @@
width: bodyWidth
}">
</table-body>
<div
v-if="$slots.append"
class="el-table__append-gutter"
:style="{ height: layout.appendHeight + 'px' }"></div>
</div>
<div
v-if="showSummary"

View File

@ -81,6 +81,11 @@
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) {
border-right: 0;
border-bottom: 0;