feat: Client 工程默认增加固定标签页功能

This commit is contained in:
Argo-Tianyi 2022-03-14 09:26:34 +08:00
parent 5a1b8602dd
commit 013c05c740
2 changed files with 5 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 is-fixed-tab">
AdditionalAssemblies="new[] { GetType().Assembly }" OnAuthorizing="@OnAuthorizing" class="@ClassString">
<Header>
<span class="ml-3 flex-sm-fill d-none d-sm-block">Bootstrap of Blazor</span>
<Widget></Widget>

View File

@ -43,6 +43,10 @@ public sealed partial class MainLayout
private string? Footer { get; set; }
private string? ClassString => CssBuilder.Default(Theme)
.AddClass("is-fixed-tab")
.Build();
[Inject]
[NotNull]
private IBootstrapAdminService? SecurityService { get; set; }