ant-design-blazor/components/icon/Icon.razor
2020-08-04 15:10:29 +08:00

14 lines
332 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<span role="img" class="@ClassMapper.Class" style="@Style" id="@Id" @onclick="HandleOnClick" @onclick:stopPropagation="StopPropagation" tabindex="@TabIndex">
@if (Component == null)
{
@((MarkupString) _svgImg)
}
else
{
@Component
}
</span>