mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 13:37:35 +08:00
2b3e037e14
* Added DescriptionTemplate * Added support for DescriptionTemplate property.
36 lines
925 B
C#
36 lines
925 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public partial class ListItemMeta : AntDomComponentBase
|
|
{
|
|
public string PrefixName { get; set; } = "ant-list-item-meta";
|
|
|
|
[Parameter] public string Title { get; set; }
|
|
|
|
[Parameter] public RenderFragment TitleTemplate { get; set; }
|
|
|
|
[Parameter] public string Avatar { get; set; }
|
|
|
|
[Parameter] public RenderFragment AvatarTemplate { get; set; }
|
|
|
|
[Parameter] public string Description { get; set; }
|
|
|
|
[Parameter] public RenderFragment DescriptionTemplate { get; set; }
|
|
|
|
[CascadingParameter] public ListItem ListItem { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
base.OnInitialized();
|
|
SetClassMap();
|
|
}
|
|
|
|
protected void SetClassMap()
|
|
{
|
|
ClassMapper.Clear()
|
|
.Add(PrefixName);
|
|
}
|
|
}
|
|
}
|