mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 17:31:42 +08:00
fc5086a3f7
* core: expand CssSizeLength to handle double & decimal (with tests) * fix(module:avatar): move to CssSizeLength fix: explicit size calculation Co-authored-by: James Yeung <shunjiey@hotmail.com>
29 lines
792 B
C#
29 lines
792 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
@if (Position == null || (Position == "shown" && !Overflow) || (Position == "hidden" && Overflow))
|
|
{
|
|
<span class="@ClassMapper.Class" style="@_sizeStyles @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>
|
|
} |