Skip to content

Commit d231301

Browse files
committed
fix: 修复 Table 显示值未使用 LookupService 问题
1 parent 2e36c95 commit d231301

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,19 @@ private static RenderFragment RenderTooltip<TItem>(this ITableColumn col, string
285285
{
286286
pb.AddMarkupContent(20, text);
287287
}
288+
else if (col.IsLookup())
289+
{
290+
pb.OpenComponent<LookupContent>(30);
291+
pb.AddAttribute(31, nameof(LookupContent.LookupService), col.LookupService);
292+
pb.AddAttribute(32, nameof(LookupContent.LookupServiceKey), col.LookupServiceKey);
293+
pb.AddAttribute(33, nameof(LookupContent.LookupServiceData), col.LookupServiceData);
294+
pb.AddAttribute(34, nameof(LookupContent.LookupStringComparison), col.LookupStringComparison);
295+
pb.AddAttribute(35, nameof(LookupContent.Value), text);
296+
pb.CloseComponent();
297+
}
288298
else
289299
{
290-
pb.AddContent(30, text);
300+
pb.AddContent(40, text);
291301
}
292302
};
293303

0 commit comments

Comments
 (0)