BasicLayout.razor 1.56 KB
@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,
    // }
    };
}