mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-12 11:55:24 +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;
|
|
}
|
|
}
|
|
}
|