2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2019-12-08 00:51:07 +08:00
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
<header class="@ClassMapper.Class" @ref="Ref" style="@Style" id="@Id">
|
2019-12-08 00:51:07 +08:00
|
|
|
@ChildContent
|
2020-03-12 14:34:01 +08:00
|
|
|
</header>
|
2019-12-08 00:51:07 +08:00
|
|
|
|
|
|
|
@code {
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
|
2019-12-16 18:47:23 +08:00
|
|
|
|
|
|
|
protected override void OnInitialized()
|
2019-12-08 00:51:07 +08:00
|
|
|
{
|
2019-12-16 18:47:23 +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
|
|
|
}
|
2019-12-16 18:47:23 +08:00
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
}
|