fix:隐藏表头后,固定列右侧出现空白间隙
This commit is contained in:
parent
8b256169cc
commit
b1ba5b5001
|
@ -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%;
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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`;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue