Skip to content

Commit 77cb335

Browse files
committed
chore: 更新 pdfjs 脚本重构组件
1 parent b803ae6 commit 77cb335

10 files changed

Lines changed: 100690 additions & 386 deletions

File tree

src/components/BootstrapBlazor.PdfReader/BootstrapBlazor.PdfReader.csproj

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Razor">
1+
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
44
<PackageTags>Bootstrap Blazor WebAssembly wasm UI Components Pdf Reader</PackageTags>
55
<Description>Bootstrap UI components extensions of PdfReader</Description>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="UAParser" Version="3.1.47" />
10-
<PackageReference Include="BootstrapBlazor" Version="$(BBVersion)" />
9+
<Content Remove="wwwroot\pdf.mjs" />
10+
<Content Remove="wwwroot\pdf.worker.mjs" />
11+
<None Include="wwwroot\pdf.mjs" />
12+
<None Include="wwwroot\pdf.worker.mjs" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<!--<PackageReference Include="BootstrapBlazor" Version="$(BBVersion)" />-->
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<ProjectReference Include="..\..\..\..\BootstrapBlazor\src\BootstrapBlazor\BootstrapBlazor.csproj" />
1121
</ItemGroup>
1222

1323
<ItemGroup>
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
@namespace BootstrapBlazor.Components
1+
@namespace BootstrapBlazor.Components
2+
@inherits BootstrapModuleComponentBase
23

3-
@if (Debug)
4-
{
5-
<p>@(Url??UrlDebug)</p>
6-
}
7-
@if (!string.IsNullOrEmpty(ErrorMessage))
8-
{
9-
<p>@ErrorMessage</p>
10-
}
11-
<iframe @ref="Element"
12-
allow="fullscreen"
13-
style="@($"border: none; width: {Width}; height: {Height};{StyleString}")"
14-
src=@Url />
4+
<div @attributes="@AdditionalAttributes" id="@Id" class="@ClassString">
5+
<div id="viewerContainer">
6+
<div id="viewer" class="pdfViewer"></div>
7+
</div>
8+
@* <canvas></canvas> *@
9+
</div>

0 commit comments

Comments
 (0)