mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
cc9e2df41c
* refactor: standardized code specification * fix: rebase conflict
20 lines
531 B
Plaintext
20 lines
531 B
Plaintext
@namespace AntBlazor
|
|
@inherits AntDomComponentBase
|
|
|
|
<span class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
|
@if (!string.IsNullOrEmpty(Icon) && _hasIcon)
|
|
{
|
|
<AntIcon type="@Icon" />
|
|
}
|
|
@if (!string.IsNullOrEmpty(Src) && _hasSrc)
|
|
{
|
|
<img src="@Src" srcset="@SrcSet" alt="@Alt" @onerror="ImgError" />
|
|
}
|
|
@if (!string.IsNullOrEmpty(Text) && _hasText)
|
|
{
|
|
<span class="ant-avatar-string" @ref="TextEl" style="@_textStyles">
|
|
@Text
|
|
</span>
|
|
}
|
|
</span>
|