Skip to content

Commit 3d63087

Browse files
authored
feat(PdfReader): add EnableThumbnails parameter (#7201)
* doc: 更新 EnableThumbnails 示例 * chore: bump version 10.0.4-beta01
1 parent b7fb049 commit 3d63087

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<PackageReference Include="BootstrapBlazor.OfficeViewer" Version="10.0.0" />
6363
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="10.0.0" />
6464
<PackageReference Include="BootstrapBlazor.OpcDa" Version="10.0.0" />
65-
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.3" />
65+
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.4-beta01" />
6666
<PackageReference Include="BootstrapBlazor.PdfViewer" Version="10.0.0" />
6767
<PackageReference Include="BootstrapBlazor.Player" Version="10.0.1" />
6868
<PackageReference Include="BootstrapBlazor.RDKit" Version="10.0.0" />

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
<Switch @bind-Value="_showDownload"></Switch>
1515
</BootstrapInputGroup>
1616
</div>
17+
<div class="col-12 col-sm-6">
18+
<BootstrapInputGroup>
19+
<BootstrapInputGroupLabel>EnableThumbnails</BootstrapInputGroupLabel>
20+
<Switch @bind-Value="_enableThumbnails"></Switch>
21+
</BootstrapInputGroup>
22+
</div>
1723
<div class="col-12 col-sm-6">
1824
<BootstrapInputGroup>
1925
<BootstrapInputGroupLabel>ShowPrint</BootstrapInputGroupLabel>
@@ -27,7 +33,7 @@
2733
</BootstrapInputGroup>
2834
</div>
2935
</section>
30-
<PdfReader Url="@_url" ShowTwoPagesOneView="_showTwoPagesOneView"
31-
ShowDownload="_showDownload" ShowPrint="_showPrint"
36+
<PdfReader Url="@_url" EnableThumbnails="_enableThumbnails"
37+
ShowTwoPagesOneView="_showTwoPagesOneView" ShowDownload="_showDownload" ShowPrint="_showPrint"
3238
ViewHeight="600px" OnDownloadAsync="OnDownloadAsync"></PdfReader>
3339
</DemoBlock>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public partial class PdfReaders
1818

1919
private bool _showTwoPagesOneView = true;
2020
private bool _showPrint = true;
21+
private bool _enableThumbnails = true;
2122
private bool _showDownload = true;
2223
private string _url = "./samples/sample.pdf";
2324

0 commit comments

Comments
 (0)