2020-06-13 00:47:00 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
2020-06-13 00:47:00 +08:00
|
|
|
|
|
|
|
|
|
@PageHeaderBreadcrumb
|
|
|
|
|
|
|
|
|
|
<div class="ant-page-header-heading">
|
|
|
|
|
<div class="ant-page-header-heading-left">
|
|
|
|
|
<!--back-->
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (BackIconTemplate != null || BackIcon.Value != null || OnBack.HasDelegate)
|
2020-06-13 00:47:00 +08:00
|
|
|
|
{
|
|
|
|
|
<div @onclick="OnBackClick" class="ant-page-header-back">
|
|
|
|
|
<div role="button" tabindex="0" class="ant-page-header-back-button">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (BackIconTemplate != null)
|
2020-08-31 11:51:11 +08:00
|
|
|
|
{
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@BackIconTemplate
|
2020-08-31 11:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
else if (BackIcon.IsT1)
|
|
|
|
|
{
|
|
|
|
|
<Icon Type="@BackIcon.AsT1" Theme="outline" />
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2020-09-16 13:58:16 +08:00
|
|
|
|
<Icon Type="arrow-left" Theme="outline" />
|
2020-08-31 11:51:11 +08:00
|
|
|
|
}
|
2020-06-13 00:47:00 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<!--avatar-->
|
|
|
|
|
@PageHeaderAvatar
|
|
|
|
|
|
|
|
|
|
<!--title-->
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (TitleTemplate != null || Title != null)
|
2020-06-13 00:47:00 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
<span class="ant-page-header-heading-title">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (TitleTemplate != null)@TitleTemplate else @Title
|
2020-06-13 00:47:00 +08:00
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (PageHeaderTitle != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-page-header-heading-title">
|
|
|
|
|
@PageHeaderTitle
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<!--subtitle-->
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (SubtitleTemplate != null || Subtitle != null)
|
2020-06-13 00:47:00 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
<span class="ant-page-header-heading-sub-title">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (SubtitleTemplate != null)@SubtitleTemplate else @Subtitle
|
2020-06-13 00:47:00 +08:00
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (PageHeaderSubtitle != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-page-header-heading-sub-title">
|
|
|
|
|
@PageHeaderSubtitle
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@if (PageHeaderTags != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-page-header-heading-tags">
|
|
|
|
|
@PageHeaderTags
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@if (PageHeaderExtra != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-page-header-heading-extra">
|
|
|
|
|
@PageHeaderExtra
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
@if (PageHeaderContent != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-page-header-content">
|
|
|
|
|
@PageHeaderContent
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@if (PageHeaderFooter != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-page-header-footer">
|
|
|
|
|
@PageHeaderFooter
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|