mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2025-12-06 07:28:50 +08:00
feat(PdfReader): add EnableThumbnails parameter (#7201)
* doc: 更新 EnableThumbnails 示例 * chore: bump version 10.0.4-beta01
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user