feat(PdfReader): add EnableThumbnails parameter (#7201)

* doc: 更新 EnableThumbnails 示例

* chore: bump version 10.0.4-beta01
This commit is contained in:
Argo Zhang
2025-11-28 08:37:35 +08:00
committed by GitHub
parent b7fb049327
commit 3d63087123
3 changed files with 10 additions and 3 deletions

View File

@@ -62,7 +62,7 @@
<PackageReference Include="BootstrapBlazor.OfficeViewer" Version="10.0.0" />
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="10.0.0" />
<PackageReference Include="BootstrapBlazor.OpcDa" Version="10.0.0" />
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.3" />
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.4-beta01" />
<PackageReference Include="BootstrapBlazor.PdfViewer" Version="10.0.0" />
<PackageReference Include="BootstrapBlazor.Player" Version="10.0.1" />
<PackageReference Include="BootstrapBlazor.RDKit" Version="10.0.0" />

View File

@@ -14,6 +14,12 @@
<Switch @bind-Value="_showDownload"></Switch>
</BootstrapInputGroup>
</div>
<div class="col-12 col-sm-6">
<BootstrapInputGroup>
<BootstrapInputGroupLabel>EnableThumbnails</BootstrapInputGroupLabel>
<Switch @bind-Value="_enableThumbnails"></Switch>
</BootstrapInputGroup>
</div>
<div class="col-12 col-sm-6">
<BootstrapInputGroup>
<BootstrapInputGroupLabel>ShowPrint</BootstrapInputGroupLabel>
@@ -27,7 +33,7 @@
</BootstrapInputGroup>
</div>
</section>
<PdfReader Url="@_url" ShowTwoPagesOneView="_showTwoPagesOneView"
ShowDownload="_showDownload" ShowPrint="_showPrint"
<PdfReader Url="@_url" EnableThumbnails="_enableThumbnails"
ShowTwoPagesOneView="_showTwoPagesOneView" ShowDownload="_showDownload" ShowPrint="_showPrint"
ViewHeight="600px" OnDownloadAsync="OnDownloadAsync"></PdfReader>
</DemoBlock>

View File

@@ -18,6 +18,7 @@ public partial class PdfReaders
private bool _showTwoPagesOneView = true;
private bool _showPrint = true;
private bool _enableThumbnails = true;
private bool _showDownload = true;
private string _url = "./samples/sample.pdf";