2020-09-17 10:09:20 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<div class="@ClassMapper.Class" style="@Style" @ref="Ref">
|
2020-09-17 10:09:20 +08:00
|
|
|
|
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(Avatar) || AvatarTemplate != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-list-item-meta-avatar">
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(Avatar))
|
|
|
|
|
{
|
|
|
|
|
<Avatar Src="@Avatar"></Avatar>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@AvatarTemplate
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div class="ant-list-item-meta-content">
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(Title) || TitleTemplate != null)
|
|
|
|
|
{
|
|
|
|
|
<div>
|
|
|
|
|
<h4 class="ant-list-item-meta-title">
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(Title))
|
|
|
|
|
{
|
|
|
|
|
@Title
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@TitleTemplate
|
|
|
|
|
}
|
|
|
|
|
</h4>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div class="ant-list-item-meta-description">
|
2021-01-10 22:41:57 +08:00
|
|
|
|
@if (!string.IsNullOrWhiteSpace(Description))
|
|
|
|
|
{
|
|
|
|
|
@Description
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@DescriptionTemplate
|
|
|
|
|
}
|
2020-09-17 10:09:20 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|