mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 21:50:05 +08:00
!3648 feat(#I67A7H): add PackageTips component for web site
* refactor: 格式化文档 * 重复元素提取重构成组件 PackageTips
This commit is contained in:
parent
28ae9874e1
commit
976917694b
22
src/BootstrapBlazor.Shared/Components/PackageTips.razor
Normal file
22
src/BootstrapBlazor.Shared/Components/PackageTips.razor
Normal 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"><PackageReference Include="@Name" /></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; }
|
||||
}
|
@ -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>"
|
||||
}
|
||||
}
|
||||
|
@ -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>"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user