feat: 适配12寸小屏幕加载数据时防止出现滚动条
This commit is contained in:
parent
099dfc483a
commit
673df763b5
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="@(FixedHeader ? "table-wrapper table-fixed-header" : "table-wrapper")">
|
||||
<div class="@(FixedHeader ? "table-wrapper table-fixed-header table-fixed" : "table-wrapper")">
|
||||
@if(FixedHeader)
|
||||
{
|
||||
<div class="fixed-table-header">
|
||||
|
|
|
@ -142,12 +142,17 @@ nav .dropdown .nav-link-close.dropdown-toggle:after {
|
|||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.bootstrap-table .fixed-table-header {
|
||||
.bootstrap-table .table-fixed {
|
||||
max-height: 388px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bootstrap-table .table-fixed-header {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bootstrap-table .fixed-table-body {
|
||||
min-height: 300px;
|
||||
min-height: 348px;
|
||||
}
|
||||
|
||||
.bootstrap-table .fixed-table-body table {
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
$.resetTableWidth($table, $tableHeader);
|
||||
|
||||
if (firstRender) {
|
||||
$tableContainer.find('.fixed-table-body').removeClass('invisible');
|
||||
$tableContainer.removeClass('table-fixed').find('.fixed-table-body').removeClass('invisible');
|
||||
|
||||
$(window).on('resize', function () {
|
||||
$.resetTableWidth($table, $tableHeader);
|
||||
|
|
Loading…
Reference in New Issue