Skip to content

Commit fadb22e

Browse files
committed
feat: 移除 Download 回调方法
1 parent c6ece28 commit fadb22e

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

src/components/BootstrapBlazor.PdfReader/PdfReader.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<div class="bb-view-group bb-view-controls invisible">
4646
@if (ShowDownload)
4747
{
48-
<div class="bb-view-icon bb-view-download" title="@Localizer["Download"]" @onclick="OnDownload"><i class="fa-solid fa-fw fa-arrow-right-to-bracket fa-rotate-90"></i></div>
48+
<div class="bb-view-icon bb-view-download" title="@Localizer["Download"]"><i class="fa-solid fa-fw fa-arrow-right-to-bracket fa-rotate-90"></i></div>
4949
}
5050
@if (ShowPrint)
5151
{

src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ public partial class PdfReader
121121
[Parameter]
122122
public string? MoreButtonIcon { get; set; }
123123

124-
/// <summary>
125-
/// 点击下载按钮回调方法 默认 null
126-
/// </summary>
127-
[Parameter]
128-
public Func<Task>? OnDownloadAsync { get; set; }
129-
130124
/// <summary>
131125
/// 正在打印回调方法 默认 null
132126
/// </summary>
@@ -272,14 +266,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
272266
/// <returns></returns>
273267
public Task RotateRight() => InvokeVoidAsync("rotate", Id, 90);
274268

275-
private async Task OnDownload()
276-
{
277-
if (OnDownloadAsync != null)
278-
{
279-
await OnDownloadAsync();
280-
}
281-
}
282-
283269
/// <summary>
284270
/// 页面开始初始化时回调方法
285271
/// </summary>

0 commit comments

Comments
 (0)