diff --git a/src/BootstrapBlazor.Shared/Locales/en.json b/src/BootstrapBlazor.Shared/Locales/en.json index 58ab4c0f290a6cf8f460a997ec1db2e10750191d..1f809c724592b1b360e9eb1b4d51f53783746536 100644 --- a/src/BootstrapBlazor.Shared/Locales/en.json +++ b/src/BootstrapBlazor.Shared/Locales/en.json @@ -2142,6 +2142,7 @@ "DisplayText": "The front label displays text", "FormatString": "The numerically formatted string", "Formatter": "TableHeader instance", + "TypeResolver": "It is used internally when the type resolution callback method tvalue is an array instance", "Integer": "Integer", "Enum": "Enumerate", "Collection": "Collection", diff --git a/src/BootstrapBlazor.Shared/Locales/zh.json b/src/BootstrapBlazor.Shared/Locales/zh.json index 27cf8539c09c74e87afba6abd9308c844c1ca9ea..7d73ee299877ceff2f88d09acc259a279b9a2d1c 100644 --- a/src/BootstrapBlazor.Shared/Locales/zh.json +++ b/src/BootstrapBlazor.Shared/Locales/zh.json @@ -2147,6 +2147,7 @@ "DisplayText": "前置标签显示文本", "FormatString": "数值格式化字符串", "Formatter": "TableHeader 实例", + "TypeResolver": "类型解析回调方法 TValue 为 Array 实例时内部使用", "Integer": "整型", "Enum": "枚举", "Collection": "集合", diff --git a/src/BootstrapBlazor.Shared/Samples/Displays.razor.cs b/src/BootstrapBlazor.Shared/Samples/Displays.razor.cs index 85a612c992867722999c7392694a067e4fd89bd6..66aad3f55e8ded643389f6e7dd9f23766326431d 100644 --- a/src/BootstrapBlazor.Shared/Samples/Displays.razor.cs +++ b/src/BootstrapBlazor.Shared/Samples/Displays.razor.cs @@ -62,33 +62,40 @@ public partial class Displays private IEnumerable GetAttributes() => new[] { - new AttributeItem() { - Name = "ShowLabel", - Description = Localizer["ShowLabel"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new AttributeItem() { - Name = "DisplayText", - Description = Localizer["DisplayText"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new AttributeItem() { - Name = "FormatString", - Description = Localizer["FormatString"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new AttributeItem() { - Name = "Formatter", - Description = Localizer["Formatter"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - }; + new AttributeItem() { + Name = "ShowLabel", + Description = Localizer["ShowLabel"], + Type = "bool", + ValueList = "true|false", + DefaultValue = "false" + }, + new AttributeItem() { + Name = "DisplayText", + Description = Localizer["DisplayText"], + Type = "string", + ValueList = " — ", + DefaultValue = " — " + }, + new AttributeItem() { + Name = "FormatString", + Description = Localizer["FormatString"], + Type = "string", + ValueList = " — ", + DefaultValue = " — " + }, + new AttributeItem() { + Name = "Formatter", + Description = Localizer["Formatter"], + Type = "RenderFragment", + ValueList = " — ", + DefaultValue = " — " + }, + new AttributeItem() { + Name = nameof(Display.TypeResolver), + Description = Localizer["TypeResolver"], + Type = "Func", + ValueList = " — ", + DefaultValue = " — " + } + }; }