mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-30 02:58:13 +08:00
fix(module: form): use DisplayAttribute.GetName()
for localization support (#3426)
This commit is contained in:
parent
b9877303b6
commit
22c60b4e79
@ -19,7 +19,7 @@ namespace AntDesign.Core.Reflection
|
|||||||
{
|
{
|
||||||
this.RequiredAttribute = propertyInfo?.GetCustomAttribute<RequiredAttribute>(true);
|
this.RequiredAttribute = propertyInfo?.GetCustomAttribute<RequiredAttribute>(true);
|
||||||
this.DisplayName = propertyInfo?.GetCustomAttribute<DisplayNameAttribute>(true)?.DisplayName ??
|
this.DisplayName = propertyInfo?.GetCustomAttribute<DisplayNameAttribute>(true)?.DisplayName ??
|
||||||
propertyInfo?.GetCustomAttribute<DisplayAttribute>(true)?.Name;
|
propertyInfo?.GetCustomAttribute<DisplayAttribute>(true)?.GetName();
|
||||||
|
|
||||||
this.PropertyName = propertyInfo?.Name;
|
this.PropertyName = propertyInfo?.Name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user