File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.PdfReader Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments