ant-design-blazor/components/avatar/Avatar.razor
James Yeung 66f6183e0f feat(module: avatar): add avatar group (#677)
feat: add max count style

feat(module: avatar): add avatar group
2020-10-14 13:56:59 +08:00

29 lines
779 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
@if (Position == null || (Position == "shown" && !Overflow) || (Position == "hidden" && Overflow))
{
<span class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
@if (_hasIcon)
{
<Icon Type="@Icon" />
}
@if (_hasSrc)
{
<img src="@Src" srcset="@SrcSet" alt="@Alt" @onerror="ImgError" />
}
@if (_hasText)
{
<span class="ant-avatar-string" @ref="TextEl" style="@_textStyles">
@if (_childContent != null)
{
@_childContent
}
else
{
@_text
}
</span>
}
</span>
}