feat: 默认固定标签页

This commit is contained in:
Argo-Tianyi 2022-03-13 18:31:41 +08:00
parent 399fb4a700
commit 5a1b8602dd
2 changed files with 15 additions and 1 deletions

View File

@ -4,7 +4,7 @@
IsFullSide="@IsFullSide" IsFixedHeader="@IsFixedHeader" IsFixedFooter="@IsFixedFooter" ShowFooter="@ShowFooter"
Menus="@MenuItems" UseTabSet="@UseTabSet"
TabDefaultUrl="/Home/Index"
AdditionalAssemblies="new[] { GetType().Assembly }" OnAuthorizing="@OnAuthorizing" class="@Theme">
AdditionalAssemblies="new[] { GetType().Assembly }" OnAuthorizing="@OnAuthorizing" class="@Theme is-fixed-tab">
<Header>
<span class="ml-3 flex-sm-fill d-none d-sm-block">Bootstrap of Blazor</span>
<Widget></Widget>

View File

@ -310,3 +310,17 @@
.widget .dropdown-item:not(:nth-of-type(odd)):active {
background-color: inherit;
}
.is-page .layout-main > .tabs {
height: calc(100vh - 90px);
}
.is-fixed-tab .tabs-body {
height: calc(100vh - 89px - var(--bb-footer-height));
overflow: auto;
}
.is-fixed-tab .tabs-body .tabs-body-content {
height: auto;
min-height: 100%;
}