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-28 10:54:27 +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-07-17 13:45:19 +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">
|
2020-07-17 13:45:19 +08:00
|
|
|
@_text
|
2019-12-17 17:53:25 +08:00
|
|
|
</span>
|
|
|
|
}
|
2020-07-17 13:45:19 +08:00
|
|
|
else if (_childContent != null)
|
2020-05-10 15:42:02 +08:00
|
|
|
{
|
|
|
|
<span class="ant-avatar-string" @ref="TextEl" style="@_textStyles">
|
2020-07-17 13:45:19 +08:00
|
|
|
@_childContent
|
2020-05-10 15:42:02 +08:00
|
|
|
</span>
|
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
</span>
|