mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
d3f3d795dd
* fix: the issue #762 switch loading icon has a little shift * test: comment the table tests provisionally Co-authored-by: ElderJames <shunjiey@hotmail.com>
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, null, Width, Height, Fill, Rotate);
|
|
|
|
StateHasChanged();
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|