mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
2b3e037e14
* Added DescriptionTemplate * Added support for DescriptionTemplate property.
50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<div class="@ClassMapper.Class" style="@Style">
|
|
|
|
@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">
|
|
@if (!string.IsNullOrWhiteSpace(Description))
|
|
{
|
|
@Description
|
|
}
|
|
else
|
|
{
|
|
@DescriptionTemplate
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|