mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 00:41:30 +08:00
27 lines
721 B
C#
27 lines
721 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
<div class="@ClassMapper.Class" style="@_wrapperStyle" id="@Id" @ref="Ref">
|
|
<img alt="@Alt" class="ant-image-img" src="@Src" style="@Style"
|
|
@onerror="HandleOnError"
|
|
@onloadstart="HandleOnLoadStart"
|
|
@onload="HandleOnLoad" />
|
|
|
|
@if (!_loaded && Placeholder != null)
|
|
{
|
|
<div aria-hidden="true" class="ant-image-placeholder">
|
|
@Placeholder
|
|
</div>
|
|
}
|
|
|
|
@if (_loaded && !_isError && Preview)
|
|
{
|
|
<div class="ant-image-mask" @onclick="OnPreview">
|
|
<div class="ant-image-mask-info">
|
|
<Icon Type="eye" /> @Locale.Preview
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|