mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
d16144ece0
* refactor: button * refactor: avatar * refactor: alert * fix: input group compact
26 lines
696 B
C#
26 lines
696 B
C#
@namespace AntDesign
|
|
@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>
|
|
}
|
|
else if (ChildContent != null)
|
|
{
|
|
<span class="ant-avatar-string" @ref="TextEl" style="@_textStyles">
|
|
@ChildContent
|
|
</span>
|
|
}
|
|
</span>
|