@namespace AntDesign @inherits AntDomComponentBase
@if (!string.IsNullOrWhiteSpace(Avatar) || AvatarTemplate != null) {
@if (AvatarTemplate != null) { @AvatarTemplate } else { }
} @if (!string.IsNullOrWhiteSpace(Title) || TitleTemplate != null || !string.IsNullOrWhiteSpace(Description) || DescriptionTemplate != null) {
@if (!string.IsNullOrWhiteSpace(Title) || TitleTemplate != null) {
@if (TitleTemplate != null) { @TitleTemplate } else { @Title }
} @if (DescriptionTemplate != null) { @DescriptionTemplate } else { @Description }
}
@code{ [Parameter] public string Title { get; set; } [Parameter] public RenderFragment TitleTemplate { get; set; } [Parameter] public string Description { get; set; } [Parameter] public RenderFragment DescriptionTemplate { get; set; } [Parameter] public string Avatar { get; set; } [Parameter] public RenderFragment AvatarTemplate { get; set; } protected override void OnInitialized() { base.OnInitialized(); ClassMapper.Add("ant-card-meta"); } }