feat: Client 工程默认增加固定标签页功能
This commit is contained in:
parent
5a1b8602dd
commit
013c05c740
|
@ -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>
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue