ant-design-blazor/components/layout/Header.razor

23 lines
419 B
C#
Raw Normal View History

@namespace AntDesign
2019-12-08 00:51:07 +08:00
@inherits AntDomComponentBase
<header class="@ClassMapper.Class" @ref="Ref" style="@Style" id="@Id">
2019-12-08 00:51:07 +08:00
@ChildContent
</header>
2019-12-08 00:51:07 +08:00
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
protected override void OnInitialized()
2019-12-08 00:51:07 +08:00
{
base.OnInitialized();
ClassMapper.Clear()
.Add("ant-layout-header")
2020-03-10 17:38:25 +08:00
.Add("ant-header");
2019-12-08 00:51:07 +08:00
}
}