mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 21:47:38 +08:00
66f6183e0f
feat: add max count style feat(module: avatar): add avatar group
29 lines
779 B
C#
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>
|
|
} |