Skip to content

Commit 61ce633

Browse files
ArgoZhangAxxbis
andcommitted
refactor: 增加 Lookup 异步支持
Co-Authored-By: ZhYan <[email protected]>
1 parent 4a57e83 commit 61ce633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private static RenderFragment RenderTooltip<TItem>(this ITableColumn col, string
261261
{
262262
pb.AddAttribute(10, nameof(Tooltip.GetTitleCallback), new Func<Task<string?>>(async () =>
263263
{
264-
var lookup = await col.GetLookupService(lookupService).GetItemsAsync(col.LookupServiceKey, col.LookupServiceData);
264+
var lookup = col.Lookup ?? await col.GetLookupService(lookupService).GetItemsAsync(col.LookupServiceKey, col.LookupServiceData);
265265
return lookup?.FirstOrDefault(l => l.Value.Equals(text, col.LookupStringComparison))?.Text ?? text;
266266
}));
267267
}

0 commit comments

Comments
 (0)