mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-12 11:55:24 +08:00
19 lines
368 B
C#
19 lines
368 B
C#
using System;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public class ClassBuilderRuleGet<T> : ClassBuilderRule<T>
|
|
{
|
|
public Func<T, string> Func { get; set; }
|
|
|
|
public ClassBuilderRuleGet(Func<T, string> func)
|
|
{
|
|
Func = func;
|
|
}
|
|
|
|
public override string GetClass(T data)
|
|
{
|
|
return Func(data);
|
|
}
|
|
}
|
|
} |