2020-09-17 10:09:20 +08:00
|
|
|
|
using Microsoft.AspNetCore.Components;
|
2020-09-16 13:58:16 +08:00
|
|
|
|
|
|
|
|
|
namespace AntDesign
|
|
|
|
|
{
|
2020-09-17 10:09:20 +08:00
|
|
|
|
public partial class ListItemMeta : AntDomComponentBase
|
2020-09-16 13:58:16 +08:00
|
|
|
|
{
|
|
|
|
|
public string PrefixName { get; set; } = "ant-list-item-meta";
|
|
|
|
|
|
2020-09-17 10:09:20 +08:00
|
|
|
|
[Parameter] public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter] public RenderFragment TitleTemplate { get; set; }
|
2020-09-16 13:58:16 +08:00
|
|
|
|
|
|
|
|
|
[Parameter] public string Avatar { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter] public RenderFragment AvatarTemplate { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter] public string Description { get; set; }
|
|
|
|
|
|
2021-01-10 22:41:57 +08:00
|
|
|
|
[Parameter] public RenderFragment DescriptionTemplate { get; set; }
|
|
|
|
|
|
2020-09-17 10:09:20 +08:00
|
|
|
|
[CascadingParameter] public ListItem ListItem { get; set; }
|
|
|
|
|
|
2020-09-16 13:58:16 +08:00
|
|
|
|
protected override void OnInitialized()
|
|
|
|
|
{
|
|
|
|
|
base.OnInitialized();
|
|
|
|
|
SetClassMap();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void SetClassMap()
|
|
|
|
|
{
|
|
|
|
|
ClassMapper.Clear()
|
|
|
|
|
.Add(PrefixName);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|