!3648 feat(#I67A7H): add PackageTips component for web site

* refactor: 格式化文档
* 重复元素提取重构成组件 PackageTips
This commit is contained in:
alex_zou 2022-12-23 12:11:59 +00:00 committed by Argo
parent 28ae9874e1
commit 976917694b
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,22 @@
@namespace BootstrapBlazor.Shared.Samples
@inject IStringLocalizer<PackageTips> Localizer
<p>@((MarkupString)Localizer["Tips", Name].Value)</p>
<div class="code-label">.NET CLI</div>
<Pre class="no-highlight">dotnet add package @Name</Pre>
<div class="code-label">PackageReference</div>
<Pre class="no-highlight">&lt;PackageReference Include="@Name" /&gt;</Pre>
<div class="code-label">Package Manager</div>
<Pre class="no-highlight">Install-Package @Name</Pre>
@code {
/// <summary>
/// 获得/设置 Package 名称
/// </summary>
[Parameter]
[NotNull]
public string? Name { get; set; }
}

View File

@ -5411,5 +5411,8 @@
"P2": "This component relies on <a href='https://www.nuget.org/packages?q=BootstrapBlazor.VideoPlayer' target='_blank'><code>BootstrapBlazor.VideoPlayer</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.VideoPlayer' target='_blank'><code>BootstrapBlazor.VideoPlayer</code></a> component"
},
"BootstrapBlazor.Shared.Samples.PackageTips": {
"Tips": "<p><b>Precautions</b></p><p>This component relies on <a href='https://www.nuget.org/packages?q={0}' target='_blank'><code>{0}</code></a>, which needs to reference its component package when using this component</p><p><b>Nuget Install</b></p><p>Use nuget.org to install <a href='https://www.nuget.org/packages?q={0}' target='_blank'><code>{0}</code></a> component</p>"
}
}

View File

@ -5416,5 +5416,8 @@
"P2": "本组件依赖于 <a href='https://www.nuget.org/packages?q=BootstrapBlazor.VideoPlayer' target='_blank'><code>BootstrapBlazor.VideoPlayer</code></a>,使用本组件时需要引用其组件包",
"P3": "Nuget 包安装",
"P4": "使用 <a href='https://www.nuget.org/packages?q=BootstrapBlazor.VideoPlayer' target='_blank'>nuget.org</a> 进行 <code>BootstrapBlazor.VideoPlayer</code> 组件的安装"
},
"BootstrapBlazor.Shared.Samples.PackageTips": {
"Tips": "<p><b>注意事项 </b></p><p>本组件依赖于 <a href='https://www.nuget.org/packages?q={0}' target='_blank'><code>{0}</code></a>,使用本组件时需要引用其组件包</p><p><b>Nuget 包安装</b></p><p>使用 <a href='https://www.nuget.org/packages?q={0}' target='_blank'>nuget.org</a> 进行 <code>{0}</code> 组件的安装</p>"
}
}