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-04-23 17:13:56 +08:00
|
|
|
<span class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
|
|
|
@if (!string.IsNullOrEmpty(Icon) && _hasIcon)
|
2019-12-17 17:53:25 +08:00
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
<Icon type="@Icon" />
|
2019-12-17 17:53:25 +08:00
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
@if (!string.IsNullOrEmpty(Src) && _hasSrc)
|
2019-12-17 17:53:25 +08:00
|
|
|
{
|
2020-04-23 17:13:56 +08:00
|
|
|
<img src="@Src" srcset="@SrcSet" alt="@Alt" @onerror="ImgError" />
|
2019-12-17 17:53:25 +08:00
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
@if (!string.IsNullOrEmpty(Text) && _hasText)
|
2019-12-17 17:53:25 +08:00
|
|
|
{
|
2020-04-23 17:13:56 +08:00
|
|
|
<span class="ant-avatar-string" @ref="TextEl" style="@_textStyles">
|
|
|
|
@Text
|
2019-12-17 17:53:25 +08:00
|
|
|
</span>
|
|
|
|
}
|
2020-05-10 15:42:02 +08:00
|
|
|
else if (ChildContent != null)
|
|
|
|
{
|
|
|
|
<span class="ant-avatar-string" @ref="TextEl" style="@_textStyles">
|
|
|
|
@ChildContent
|
|
|
|
</span>
|
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
</span>
|