refactor: 增加 Tab 默认首页

This commit is contained in:
Argo-Tianyi 2021-12-17 20:30:58 +08:00
parent 7369db6778
commit 7b0902435c
3 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
@page "/"
@page "/Home/Index"
@attribute [TabItemOption(Text = "首页", Icon = "fa fa-fa")]
<h1>Hello, world!</h1>

View File

@ -3,6 +3,7 @@
<Layout SideWidth="0" IsPage="true" ShowGotoTop="true" ShowCollapseBar="true"
IsFullSide="@IsFullSide" IsFixedHeader="@IsFixedHeader" IsFixedFooter="@IsFixedFooter" ShowFooter="@ShowFooter"
Menus="@MenuItems" UseTabSet="@UseTabSet" TabItemTextDictionary="@TabItemTextDictionary"
TabDefaultUrl="/Home/Index"
AdditionalAssemblies="new[] { GetType().Assembly }" OnAuthorizing="@OnAuthorizing" class="@Theme">
<Header>
<span class="ml-3 flex-sm-fill d-none d-sm-block">Bootstrap of Blazor</span>

View File

@ -1,4 +1,4 @@
<DropdownWidget class="text-right flex-fill px-3">
<DropdownWidget class="text-right px-3">
<DropdownWidgetItem Icon="fa fa-envelope-o" BadgeNumber="4">
<HeaderTemplate>
<span>您有 4 个未读消息</span>