Commit 2dd2c793 authored by FuryBean's avatar FuryBean Committed by cinwell.li

Table: fix a style bug when fixed=right. (#1651)

parent b0633de8
......@@ -67,7 +67,7 @@
:style="{
width: layout.rightFixedWidth ? layout.rightFixedWidth + 'px' : '',
height: layout.viewportHeight ? layout.viewportHeight + 'px' : '',
right: layout.scrollY ? layout.gutterWidth + 'px' : ''
right: layout.scrollY ? (border ? layout.gutterWidth : (layout.gutterWidth || 1)) + 'px' : ''
}">
<div class="el-table__fixed-header-wrapper" ref="rightFixedHeaderWrapper" v-if="showHeader">
<table-header
......@@ -93,6 +93,9 @@
</table-body>
</div>
</div>
<div class="el-table__fixed-right-patch"
v-if="rightFixedColumns.length > 0"
:style="{ width: layout.scrollY ? layout.gutterWidth + 'px' : '0', height: layout.headerHeight + 'px' }"></div>
<div class="el-table__column-resize-proxy" ref="resizeProxy" v-show="resizeProxyVisible"></div>
</div>
</template>
......
......@@ -154,6 +154,14 @@
}
}
@e fixed-right-patch {
position: absolute;
top: -1px;
right: 0;
background-color: var(--table-header-background);
border-bottom: 1px solid var(--table-border-color);
}
@e fixed-right {
top: 0;
left: auto;
......
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