2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2020-04-23 17:13:56 +08:00
|
|
|
@inherits AntDomComponentBase
|
2019-12-17 17:53:25 +08:00
|
|
|
|
2020-10-14 13:56:59 +08:00
|
|
|
@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>
|
|
|
|
}
|