Skip to content

Commit f28f316

Browse files
committed
revert: 临时移除 OnGetRowKey 回调方法
1 parent 7e654b6 commit f28f316

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/BootstrapBlazor/Components/Table/Table.razor.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName(
198198
[Parameter]
199199
public bool ShowColumnWidthTooltip { get; set; }
200200

201-
/// <summary>
202-
/// 获得/设置 行 Key 回调方法
203-
/// </summary>
204-
[Parameter]
205-
public Func<TItem, object?>? OnGetRowKey { get; set; }
201+
///// <summary>
202+
///// 获得/设置 行 Key 回调方法
203+
///// </summary>
204+
//[Parameter]
205+
//public Func<TItem, object?>? OnGetRowKey { get; set; }
206206

207207
private string ScrollWidthString => $"width: {ActualScrollWidth}px;";
208208

@@ -1690,7 +1690,7 @@ private void OnTouchEnd()
16901690
TouchStart = false;
16911691
}
16921692

1693-
private object? GetKeyByITem(TItem item) => SortableList != null ? item : OnGetRowKey?.Invoke(item);
1693+
private object? GetKeyByITem(TItem item) => SortableList != null ? item : null; //OnGetRowKey?.Invoke(item);
16941694

16951695
/// <summary>
16961696
/// Dispose 方法

0 commit comments

Comments
 (0)