ant-design-blazor/components/list/ListItemMeta.razor
James Yeung 128464c681 refactor(module: list): allow to setup each list item (#603)
* refactor(module: list): allow to setup each list item

* fix: itemLayout type
2020-09-17 10:09:20 +08:00

43 lines
1.0 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">
@Description
</div>
</div>
</div>