fix:隐藏表头后,固定列右侧出现空白间隙

This commit is contained in:
yangchch6 2019-08-20 16:47:01 +08:00
parent 8b256169cc
commit b1ba5b5001
4 changed files with 8 additions and 2 deletions

View File

@ -304,7 +304,7 @@
.u-table-fixed-left .u-table-body-inner {
margin-right: -20px;
padding-right: 20px; }
.u-table-fixed-header .u-table-fixed-left .u-table-body-inner {
.u-table-fixed-header:not(.u-table-hide-header) .u-table-fixed-left .u-table-body-inner {
padding-right: 0px; }
.u-table-fixed-header .u-table-body-inner {
height: 100%;

View File

@ -1496,6 +1496,9 @@ var Table = function (_Component) {
if (props.useFixedHeader || props.scroll && props.scroll.y) {
className += ' ' + clsPrefix + '-fixed-header';
}
if (!props.showHeader) {
className += ' ' + clsPrefix + '-hide-header';
}
if (props.bordered) {
className += ' ' + clsPrefix + '-bordered';
}

View File

@ -1328,6 +1328,9 @@ class Table extends Component {
if (props.useFixedHeader || (props.scroll && props.scroll.y)) {
className += ` ${clsPrefix}-fixed-header`;
}
if (!props.showHeader) {
className += ` ${clsPrefix}-hide-header`;
}
if (props.bordered) {
className += ` ${clsPrefix}-bordered`;
}

View File

@ -244,7 +244,7 @@ $icon-color:#505F79;
padding-right: 20px;
}
&-fixed-header &-fixed-left &-body-inner {
&-fixed-header:not(.u-table-hide-header) &-fixed-left &-body-inner {
padding-right: 0px;
}