mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-06 05:59:45 +08:00
!3659 doc(#I67AA9): update Markdown doc
* Update en.json * 使用 PackageTips 组件简化文档代码
This commit is contained in:
parent
4b5a5fc107
commit
3fd53d2bc2
@ -2661,10 +2661,6 @@
|
||||
"BootstrapBlazor.Shared.Samples.Markdowns": {
|
||||
"Title": "Markdown",
|
||||
"H1": "A text editor that provides support for the Markdown syntax",
|
||||
"P1": "Precautions",
|
||||
"P2": "This component relies on <a href='https://www.nuget.org/packages?q=BootstrapBlazor.Markdown' target='_blank'> <code>BootstrapBlazor.Markdown</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.Markdown' target='_blank'><code>BootstrapBlazor.Markdown</code></a> component",
|
||||
"Css": "CSS file",
|
||||
"CssText": "dynamic import css",
|
||||
"Js": "JS file",
|
||||
|
@ -2666,10 +2666,6 @@
|
||||
"BootstrapBlazor.Shared.Samples.Markdowns": {
|
||||
"Title": "Markdown 编辑器",
|
||||
"H1": "提供 Markdown 语法支持的文本编辑器",
|
||||
"P1": "注意事项",
|
||||
"P2": "本组件依赖于 <a href='https://www.nuget.org/packages?q=BootstrapBlazor.Markdown' target='_blank'><code>BootstrapBlazor.Markdown</code></a>,使用本组件时需要引用其组件包",
|
||||
"P3": "Nuget 包安装",
|
||||
"P4": "使用 <a href='https://www.nuget.org/packages?q=BootstrapBlazor.Markdown' target='_blank'>nuget.org</a> 进行 <code>BootstrapBlazor.Markdown</code> 组件的安装",
|
||||
"Css": "CSS 文件",
|
||||
"CssText": "无需设置组件自动动态加载",
|
||||
"Js": "JS 文件",
|
||||
|
@ -7,22 +7,7 @@
|
||||
|
||||
<h4>@Localizer["H1"]</h4>
|
||||
|
||||
<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.Markdown --version @Version</Pre>
|
||||
|
||||
<div class="code-label">PackageReference</div>
|
||||
<Pre class="no-highlight"><PackageReference Include="BootstrapBlazor.Markdown" Version="@Version" /></Pre>
|
||||
|
||||
<div class="code-label">Package Manager</div>
|
||||
<Pre class="no-highlight">Install-Package BootstrapBlazor.Markdown -Version @Version</Pre>
|
||||
<PackageTips Name="BootstrapBlazor.Markdown" />
|
||||
|
||||
<h4>@Localizer["Css"]</h4>
|
||||
|
||||
|
@ -15,11 +15,6 @@ public partial class Markdowns
|
||||
|
||||
private string? HtmlString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 版本号字符串
|
||||
/// </summary>
|
||||
private string Version { get; set; } = "fetching";
|
||||
|
||||
private string? Language { get; set; }
|
||||
|
||||
private string? AsyncValue { get; set; }
|
||||
@ -38,16 +33,15 @@ console.log('test');
|
||||
private Foo? Model { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// OnInitializedAsync 方法
|
||||
/// OnInitialized 方法
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected override async Task OnInitializedAsync()
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Model = new() { Name = "Name", Education = EnumEducation.Primary, DateTime = DateTime.Now };
|
||||
|
||||
Language = CultureInfo.CurrentUICulture.Name;
|
||||
MarkdownString = $"### {Localizer["MarkdownString"]}";
|
||||
Version = await VersionManager.GetVersionAsync("bootstrapblazor.markdown");
|
||||
}
|
||||
|
||||
private async Task GetAsyncString()
|
||||
|
Loading…
Reference in New Issue
Block a user