diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index cbdf8dfb073..7001e10fdeb 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@  - 9.5.0-beta09 + 9.4.10 diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor b/src/BootstrapBlazor/Components/TreeView/TreeView.razor index a479ef8eac0..197811af73e 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor +++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor @@ -47,7 +47,7 @@ else @if (IsVirtualize) {
- + @RenderRow(context)
diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs index 912571355fb..58a5c28161a 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs @@ -218,11 +218,18 @@ public partial class TreeView : IModelEqualityComparer public bool IsVirtualize { get; set; } /// - /// Gets or sets the row height for virtual scrolling. Default is 38. + /// Gets or sets the row height for virtual scrolling. Default is 29f. /// - /// Effective when is set to Virtual. + /// Effective when is set to true. [Parameter] - public float RowHeight { get; set; } = 38f; + public float RowHeight { get; set; } = 29f; + + /// + /// Gets or sets the overscan count for virtual scrolling. Default is 10. + /// + /// Effective when is set to true. + [Parameter] + public int OverscanCount { get; set; } = 10; /// /// Gets or sets the toolbar content template. Default is null. diff --git a/test/UnitTest/Components/TimerTest.cs b/test/UnitTest/Components/TimerTest.cs index bc79cecacc6..6916dfd73ea 100644 --- a/test/UnitTest/Components/TimerTest.cs +++ b/test/UnitTest/Components/TimerTest.cs @@ -132,13 +132,12 @@ public async Task OnCancel_Ok() var downs = cut.FindAll(".time-spinner-arrow.fa-angle-down"); await cut.InvokeAsync(() => downs[0].Click()); await cut.InvokeAsync(() => cut.Find(".time-panel-btn.confirm").Click()); - await Task.Delay(1000); - var buttons = cut.FindAll(".timer-buttons button"); + // pause + var buttons = cut.FindAll(".timer-buttons button"); Assert.True(buttons[1].ClassList.Contains("btn-warning")); Assert.Equal("暂停", buttons[1].GetInnerText()); await cut.InvokeAsync(() => buttons[1].Click()); - await Task.Delay(500); // resume buttons = cut.FindAll(".timer-buttons button"); @@ -156,6 +155,5 @@ public async Task OnCancel_Ok() downs = cut.FindAll(".time-spinner-arrow.fa-angle-down"); await cut.InvokeAsync(() => downs[0].Click()); await cut.InvokeAsync(() => cut.Find(".time-panel-btn.confirm").Click()); - await Task.Delay(1000); } }