Skip to content

Commit 6b81653

Browse files
committed
refactor: 代码重构
1 parent d651d08 commit 6b81653

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -281,20 +281,20 @@ private static RenderFragment RenderTooltip<TItem>(this ITableColumn col, string
281281
}
282282
pb.CloseComponent();
283283
}
284-
else if (col.IsMarkupString)
285-
{
286-
pb.AddMarkupContent(20, text);
287-
}
288284
else if (col.IsLookup())
289285
{
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);
286+
pb.OpenComponent<LookupContent>(20);
287+
pb.AddAttribute(21, nameof(LookupContent.LookupService), col.LookupService);
288+
pb.AddAttribute(22, nameof(LookupContent.LookupServiceKey), col.LookupServiceKey);
289+
pb.AddAttribute(23, nameof(LookupContent.LookupServiceData), col.LookupServiceData);
290+
pb.AddAttribute(24, nameof(LookupContent.LookupStringComparison), col.LookupStringComparison);
291+
pb.AddAttribute(25, nameof(LookupContent.Value), text);
296292
pb.CloseComponent();
297293
}
294+
else if (col.IsMarkupString)
295+
{
296+
pb.AddMarkupContent(30, text);
297+
}
298298
else
299299
{
300300
pb.AddContent(40, text);

0 commit comments

Comments
 (0)