Skip to content

Commit 6943615

Browse files
authored
doc(Table): remove SortList sample (dotnetcore#6384)
1 parent b84dd4c commit 6943615

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/BootstrapBlazor.Server/Components/Samples/Table/TablesFilter.razor.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,7 @@ private Task<QueryData<Foo>> OnQueryAsync(QueryPageOptions options)
6464
isSorted = true;
6565
}
6666

67-
// 此段代码可不写,组件内部自行处理
68-
if (options.SortName == nameof(Foo.DateTime))
69-
{
70-
items = items.Sort(options.SortList);
71-
isSorted = true;
72-
}
73-
else if (!string.IsNullOrEmpty(options.SortName))
67+
if (!string.IsNullOrEmpty(options.SortName))
7468
{
7569
// 外部未进行排序,内部自动进行排序处理
7670
items = items.Sort(options.SortName, options.SortOrder);

0 commit comments

Comments
 (0)