!3657 doc(#I67AHC): update PdfReader doc

* 使用 PackageTips 组件简化文档代码
This commit is contained in:
alex_zou 2022-12-24 05:44:31 +00:00 committed by Argo
parent e9cb3810f2
commit 4b5a5fc107
3 changed files with 5 additions and 28 deletions

View File

@ -5385,11 +5385,7 @@
"BaseUsageText2": "Stream mode",
"BaseUsageIntro2": "read remote files by cross-domain",
"BaseUsageText3": "Advanced parameters",
"BaseUsageIntro3": "Can be use advanced parameters",
"P1": "Precautions",
"P2": "This component relies on <a href='https://www.nuget.org/packages?q=BootstrapBlazor.PdfReader' target='_blank'><code>BootstrapBlazor.PdfReader</code></a>, which needs to reference its component package when using this component",
"P3": "Nuget Install",
"P4": "Use nuget.org to install <a href='https://www.nuget.org/packages?q=BootstrapBlazor.PdfReader' target='_blank'><code>BootstrapBlazor.PdfReader</code></a> component"
"BaseUsageIntro3": "Can be use advanced parameters"
},
"BootstrapBlazor.Shared.Samples.VideoPlayers": {
"Title": "VideoPlayer",

View File

@ -5390,11 +5390,7 @@
"BaseUsageText2": "流模式",
"BaseUsageIntro2": "可跨域读取文件",
"BaseUsageText3": "高级参数",
"BaseUsageIntro3": " ",
"P1": "注意事项",
"P2": "本组件依赖于 <a href='https://www.nuget.org/packages?q=BootstrapBlazor.PdfReader' target='_blank'><code>BootstrapBlazor.PdfReader</code></a>,使用本组件时需要引用其组件包",
"P3": "Nuget 包安装",
"P4": "使用 <a href='https://www.nuget.org/packages?q=BootstrapBlazor.PdfReader' target='_blank'>nuget.org</a> 进行 <code>BootstrapBlazor.PdfReader</code> 组件的安装"
"BaseUsageIntro3": " "
},
"BootstrapBlazor.Shared.Samples.VideoPlayers": {
"Title": "VideoPlayer 视频播放器",

View File

@ -4,25 +4,10 @@
<h3>@Localizer["Title"]</h3>
<p><b>@Localizer["P1"] </b></p>
<p>@((MarkupString)Localizer["P2"].Value)</p>
<p><b>@Localizer["P3"]</b></p>
<p>@((MarkupString)Localizer["P4"].Value)</p>
<div class="code-label">.NET CLI</div>
<Pre class="no-highlight">dotnet add package BootstrapBlazor.PdfReader</Pre>
<div class="code-label">PackageReference</div>
<Pre class="no-highlight">&lt;PackageReference Include="BootstrapBlazor.PdfReader" /&gt;</Pre>
<div class="code-label">Package Manager</div>
<Pre class="no-highlight">Install-Package BootstrapBlazor.PdfReader</Pre>
<PackageTips Name="BootstrapBlazor.PdfReader" />
<DemoBlock Title="@Localizer["BaseUsageText"]" Introduction="@Localizer["BaseUsageIntro"]" Name="Nomal">
<PdfReader Filename=@Filename Height="500px"/>
<PdfReader Filename=@Filename Height="500px" />
</DemoBlock>
<DemoBlock Title="@Localizer["BaseUsageText2"]" Introduction="@Localizer["BaseUsageIntro2"]" Name="Nomal">
@ -36,7 +21,7 @@
</BootstrapInputGroup>
</div>
</div>
<PdfReader @ref="pdfReader" UrlBase="@UrlBaseStream" Filename="@FilenameStream" StreamMode="true" Height="500px"/>
<PdfReader @ref="pdfReader" UrlBase="@UrlBaseStream" Filename="@FilenameStream" StreamMode="true" Height="500px" />
</DemoBlock>
<DemoBlock Title="@Localizer["BaseUsageText3"]" Introduction="@Localizer["BaseUsageIntro3"]" Name="Nomal">