Skip to content

Commit

Permalink
fix(Table): use request.Count parameter on virtualize mode (#5089)
Browse files Browse the repository at this point in the history
* 修复搜索条件变化导致获取分页数字不准确

* chore: bump version 9.2.7-beta05

Co-Authored-By: Zeus <[email protected]>
Co-Authored-By: Alex chow <[email protected]>

* chore: bump version 9.2.7-beta06

* refactor: 虚拟滚动模式下直接使用 request.Count 即可

* chore: bump version 9.2.7-beta06

Co-Authored-By: Alex chow <[email protected]>

* chore: bump version 9.2.7-beta03

Co-Authored-By: Alex chow <[email protected]>

---------

Co-authored-by: Argo Zhang <[email protected]>
Co-authored-by: Zeus <[email protected]>
  • Loading branch information
3 people authored Jan 11, 2025
1 parent d533904 commit 7f82876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.2.7-beta05</Version>
<Version>9.2.7-beta03</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Components/Table/Table.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ void SetEditTemplate()
private async ValueTask<ItemsProviderResult<TItem>> LoadItems(ItemsProviderRequest request)
{
StartIndex = _isFilterTrigger ? 0 : request.StartIndex;
_pageItems = TotalCount > 0 ? Math.Min(request.Count, TotalCount - request.StartIndex) : request.Count;
_pageItems = request.Count;
await QueryData();
return new ItemsProviderResult<TItem>(QueryItems, TotalCount);
}
Expand Down

0 comments on commit 7f82876

Please sign in to comment.