ant-design-blazor/components/layout/Header.razor
2020-05-29 00:33:49 +08:00

23 lines
419 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<header class="@ClassMapper.Class" @ref="Ref" style="@Style" id="@Id">
@ChildContent
</header>
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
protected override void OnInitialized()
{
base.OnInitialized();
ClassMapper.Clear()
.Add("ant-layout-header")
.Add("ant-header");
}
}