feat: 增加固定表头 table border 样式
This commit is contained in:
parent
0aabbb8c50
commit
38134e2f0a
|
@ -12,7 +12,7 @@
|
||||||
</TableToolbar>
|
</TableToolbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table-wrapper">
|
<div class="@(FixedHeader ? "table-wrapper table-fixed-header" : "table-wrapper")">
|
||||||
@if(FixedHeader)
|
@if(FixedHeader)
|
||||||
{
|
{
|
||||||
<div class="fixed-table-header">
|
<div class="fixed-table-header">
|
||||||
|
|
|
@ -135,8 +135,6 @@ nav .dropdown .nav-link-close.dropdown-toggle:after {
|
||||||
}
|
}
|
||||||
|
|
||||||
.bootstrap-table .fixed-table-body {
|
.bootstrap-table .fixed-table-body {
|
||||||
overflow: auto;
|
|
||||||
border-radius: 4px;
|
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,7 +148,6 @@ nav .dropdown .nav-link-close.dropdown-toggle:after {
|
||||||
|
|
||||||
.table-wrapper {
|
.table-wrapper {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
overflow: auto;
|
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,6 +155,22 @@ nav .dropdown .nav-link-close.dropdown-toggle:after {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-fixed-header {
|
||||||
|
border: solid 1px #dee2e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-fixed-header .table {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-fixed-header .table th:last-child {
|
||||||
|
border-right-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-fixed-header .table th:first-child, .table-fixed-header .table td:first-child {
|
||||||
|
border-left-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.pagination-bar {
|
.pagination-bar {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|
Loading…
Reference in New Issue