From 17090b364790d80744c6ac1120a874cf9991eef0 Mon Sep 17 00:00:00 2001 From: Argo-AscioTech Date: Thu, 11 Jan 2024 14:10:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=20PageIndex?= =?UTF-8?q?=20=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs index 22d3bbdf24f..039423acbda 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs @@ -1002,6 +1002,7 @@ private void QueryDynamicItems(IDynamicObjectContext? context) } TotalCount = items.Count(); PageCount = (int)Math.Ceiling(TotalCount * 1.0 / Math.Max(1, PageItems)); + PageIndex = Math.Max(1, Math.Min(PageIndex, int.Parse(Math.Ceiling((TotalCount - SelectedRows.Count) * 1d / PageItems).ToString()))); items = items.Skip((PageIndex - 1) * PageItems).Take(PageItems); } QueryItems = items.Cast(); From 2f61634b1f98d970318a0bba4ccb1f5512439c00 Mon Sep 17 00:00:00 2001 From: Argo-AscioTech Date: Thu, 11 Jan 2024 14:12:21 +0800 Subject: [PATCH 2/2] chore: bump version 8.1.6-beta08 --- src/BootstrapBlazor/BootstrapBlazor.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index 06c667e546a..faa3ef8bcb6 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 8.1.6-beta07 + 8.1.6-beta08