diff --git a/src/AntDesign.Pro/Components/GlobalHeader/RightContent.razor b/src/AntDesign.Pro/Components/GlobalHeader/RightContent.razor index 76eeecb..8577ff6 100644 --- a/src/AntDesign.Pro/Components/GlobalHeader/RightContent.razor +++ b/src/AntDesign.Pro/Components/GlobalHeader/RightContent.razor @@ -43,6 +43,7 @@ diff --git a/src/AntDesign.Pro/Components/GlobalHeader/RightContent.razor.cs b/src/AntDesign.Pro/Components/GlobalHeader/RightContent.razor.cs index b214604..5c26df4 100644 --- a/src/AntDesign.Pro/Components/GlobalHeader/RightContent.razor.cs +++ b/src/AntDesign.Pro/Components/GlobalHeader/RightContent.razor.cs @@ -1,11 +1,10 @@ -using System.Collections.Generic; +using AntDesign.Pro.Template.Models; +using AntDesign.Pro.Template.Services; +using AntDesign.ProLayout; +using Microsoft.AspNetCore.Components; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using AntDesign.ProLayout; -using AntDesign.Pro.Template.Models; -using AntDesign.Pro.Template.Services; -using Microsoft.AspNetCore.Components; -using AntDesign; namespace AntDesign.Pro.Template.Components { @@ -36,6 +35,14 @@ namespace AntDesign.Pro.Template.Components } }; + public AvatarMenuItem[] AvatarMenuItems { get; set; } = new AvatarMenuItem[] + { + new() { Key = "center", IconType = "user", Option = "个人中心"}, + new() { Key = "setting", IconType = "setting", Option = "个人设置"}, + new() { IsDivider = true }, + new() { Key = "logout", IconType = "logout", Option = "退出登录"} + }; + [Inject] protected NavigationManager NavigationManager { get; set; } [Inject] protected IUserService UserService { get; set; } diff --git a/src/AntDesign.Pro/Layouts/BasicLayout.razor b/src/AntDesign.Pro/Layouts/BasicLayout.razor index 1c40b05..704efee 100644 --- a/src/AntDesign.Pro/Layouts/BasicLayout.razor +++ b/src/AntDesign.Pro/Layouts/BasicLayout.razor @@ -10,6 +10,9 @@ @Body + + + @@ -23,4 +26,29 @@ await base.OnInitializedAsync(); MenuData = await HttpClient.GetFromJsonAsync("data/menu.json"); } + + public LinkItem[] Links { get; set; } = + { + new LinkItem + { + Key = "Ant Design Blazor", + Title = "Ant Design Blazor", + Href = "https://antblazor.com", + BlankTarget = true, + }, + new LinkItem + { + Key = "github", + Title = (RenderFragment)(@), + Href = "https://github.com/ant-design-blazor/ant-design-pro-blazor", + BlankTarget = true, + }, + new LinkItem + { + Key = "Blazor", + Title = "Blazor", + Href = "https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor?WT.mc_id=DT-MVP-5003987", + BlankTarget = true, + } + }; } \ No newline at end of file diff --git a/src/AntDesign.Pro/Layouts/UserLayout.razor b/src/AntDesign.Pro/Layouts/UserLayout.razor index a8d34d0..cfb7f98 100644 --- a/src/AntDesign.Pro/Layouts/UserLayout.razor +++ b/src/AntDesign.Pro/Layouts/UserLayout.razor @@ -14,23 +14,37 @@ Ant Design -
Ant Design 是西湖区最具影响力的 Web 设计规范
+
Ant Design Blazor
@Body - - - Copyright 2019 蚂蚁金服体验技术部出品 - - + @code { - private readonly LinkItem[] _links = + public LinkItem[] Links { get; set; } = { - new LinkItem{ Key = "", BlankTarget = true, Title = "Ant Design Pro"}, - new LinkItem{ Key = "", BlankTarget = true, Title = OneOf.FromT1(@)}, - new LinkItem{ Key = "", BlankTarget = true, Title = "Ant Design"}, + new LinkItem + { + Key = "Ant Design Blazor", + Title = "Ant Design Blazor", + Href = "https://antblazor.com", + BlankTarget = true, + }, + new LinkItem + { + Key = "github", + Title = (RenderFragment)(@), + Href = "https://github.com/ant-design-blazor/ant-design-pro-blazor", + BlankTarget = true, + }, + new LinkItem + { + Key = "Blazor", + Title = "Blazor", + Href = "https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor?WT.mc_id=DT-MVP-5003987", + BlankTarget = true, + } }; }