mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 04:58:05 +08:00
78b10019e4
* feat(module:table): virtualizing * turn off virtualizing by default * add document and demo * NET_6_0 => NET6_0 * update table selection * update Table.razor.cs * update table files * Update table files * update table files * update table files * update table files * update table files * update table files * update table files * update Virtualizing.razor * Update AntDesign.csproj * Update TableRow.razor * update files * Update AntDesign.csproj * update table files * update Virtualizing.razor * add DefaultExpandMaxLevel * rename Virtualizing to EnableVirtualization Co-authored-by: James Yeung <shunjiey@hotmail.com>
28 lines
635 B
C#
28 lines
635 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using AntDesign.TableModels;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public partial class Table<TItem> : ITable
|
|
{
|
|
private Dictionary<TItem, RowData<TItem>> _dataSourceCache = new();
|
|
private Dictionary<TItem, List<RowData<TItem>>> _allRowDataCache = new();
|
|
|
|
private void FlushCache()
|
|
{
|
|
_dataSourceCache.Clear();
|
|
_allRowDataCache.Clear();
|
|
}
|
|
|
|
private void FinishLoadPage()
|
|
{
|
|
if (_selection == null)
|
|
return;
|
|
|
|
_selection?.StateHasChanged();
|
|
}
|
|
}
|
|
}
|