BasicLayout.razor
1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@namespace HHECS.RobotTool
@inherits LayoutComponentBase
<AntDesign.ProLayout.BasicLayout Logo="@("/favicon.ico")"
MenuData="_menuData">
<RightContentRender>
</RightContentRender>
<ChildContent>
@Body
</ChildContent>
<FooterRender>
<FooterView Copyright="2024 长沙华恒机器人系统有限公司" Links="Links"></FooterView>
</FooterRender>
</AntDesign.ProLayout.BasicLayout>
<SettingDrawer />
@code
{
private readonly MenuDataItem[] _menuData =
{
new MenuDataItem
{
Path = "/",
Name = "日志",
Key = "logPage",
Icon = "alert",
},
new MenuDataItem
{
Path = "/computing",
Name = "坡口计算",
Key = "computing",
Icon = "apartment",
}
};
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)(@<Icon Type="github" />),
// 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,
// }
};
}