ant-design-blazor/components/icon/IconFont.razor.cs
Qingxiao Ren a96262660c
feat(module: icon): implement two-tone color icon (#2513)
* feat(icon): two-tone color icon implements

* generate secondary color from js, and generate icon from C#

* remove unused code

* render the icons in the prerendering stage

* render the icons in the prerendering stage

* fixed multiple renders

* refactor iconfont

* remove should render flag

* fix color change

* add AvoidPrerendering

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-06-18 15:11:55 +08:00

12 lines
203 B
C#

namespace AntDesign
{
public class IconFont : Icon
{
protected override void OnInitialized()
{
IconFont = Type;
base.OnInitialized();
}
}
}