mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
18 lines
393 B
C#
18 lines
393 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public class IconFont : Icon
|
|
{
|
|
protected override Task SetupSvgImg()
|
|
{
|
|
var svg = $"<svg><use xlink:href=#{Type} /></svg>";
|
|
_svgImg = IconService.GetStyledSvg(svg, Width, Height, Fill, Rotate, Spin);
|
|
|
|
StateHasChanged();
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|