Skip to content

Commit 71255f6

Browse files
authored
feat(UniverSheet): add ShowLoading parameter (#7501)
* chore: bump version 10.0.8 * doc: 更新示例 OnReadyAsync 方法中推送数据 * doc: 更新示例
1 parent 055377c commit 71255f6

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<PackageReference Include="BootstrapBlazor.Tasks.Dashboard" Version="10.0.0" />
7979
<PackageReference Include="BootstrapBlazor.Topology" Version="10.0.0" />
8080
<PackageReference Include="BootstrapBlazor.UniverIcon" Version="10.0.0" />
81-
<PackageReference Include="BootstrapBlazor.UniverSheet" Version="10.0.7" />
81+
<PackageReference Include="BootstrapBlazor.UniverSheet" Version="10.0.8" />
8282
<PackageReference Include="BootstrapBlazor.Vditor" Version="10.0.2" />
8383
<PackageReference Include="BootstrapBlazor.VideoPlayer" Version="10.0.0" />
8484
<PackageReference Include="BootstrapBlazor.WinBox" Version="10.0.0" />

src/BootstrapBlazor.Server/Components/Samples/UniverSheets.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
<Button OnClickWithoutRender="OnPushPluginData" Text="@Localizer["PushButtonText"]"></Button>
3535
</section>
3636
<div class="bb-sheet-demo">
37-
<UniverSheet @ref="_sheetPlugin" Plugins="_plugins" OnPostDataAsync="OnPostDataAsync"></UniverSheet>
37+
<UniverSheet @ref="_sheetPlugin" Plugins="_plugins" OnReadyAsync="OnReadyPushAsync" OnPostDataAsync="OnPostDataAsync"></UniverSheet>
3838
</div>
3939
</DemoBlock>

src/BootstrapBlazor.Server/Components/Samples/UniverSheets.razor.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the Apache 2.0 License
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -46,7 +46,9 @@ protected override async Task OnInitializedAsync()
4646
}
4747
}
4848

49-
private async Task OnReadyAsync() => await ToastService.Information(Localizer["ToastOnReadyTitle"], Localizer["ToastOnReadyContent"]);
49+
private Task OnReadyAsync() => ToastService.Information(Localizer["ToastOnReadyTitle"], Localizer["ToastOnReadyContent"]);
50+
51+
private Task OnReadyPushAsync() => OnPushPluginData();
5052

5153
private static Task<UniverSheetData> OnPostDataAsync(UniverSheetData data)
5254
{

0 commit comments

Comments
 (0)