Skip to content

Commit 25b6bb8

Browse files
authored
doc(IpAddress): update documentation (#7752)
* doc(LazyLoad): update document comments * doc(IpAddress): 更新单元测试 * doc(Ips): 增加属性说明
1 parent 8d88e37 commit 25b6bb8

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/BootstrapBlazor.Server/Components/Samples/Ips.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313
<DemoBlock Title="@Localizer["IsDisabledTitle"]" Introduction="@Localizer["IsDisabledIntro"]" Name="IsDisabled">
1414
<IpAddress Value="@Value" IsDisabled="true" />
1515
</DemoBlock>
16+
17+
<AttributeTable Type="typeof(IpAddress)" />

src/BootstrapBlazor/Components/IpAddress/IpAddress.razor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
namespace BootstrapBlazor.Components;
77

88
/// <summary>
9-
/// <para lang="zh">BootstrapInputTextBase 组件</para>
10-
/// <para lang="en">BootstrapInputTextBase component</para>
9+
/// <para lang="zh">IpAddress 组件</para>
10+
/// <para lang="en">IpAddress component</para>
1111
/// </summary>
1212
public partial class IpAddress
1313
{
@@ -21,7 +21,7 @@ public partial class IpAddress
2121

2222
/// <summary>
2323
/// <para lang="zh">获得 class 样式集合</para>
24-
/// <para lang="en">Gets class stylecollection</para>
24+
/// <para lang="en">Get class style collection</para>
2525
/// </summary>
2626
protected string? ClassName => CssBuilder.Default("bb-ip form-control")
2727
.AddClass("disabled", IsDisabled)
@@ -116,7 +116,7 @@ private void UpdateValue()
116116

117117
/// <summary>
118118
/// <para lang="zh">更新 值方法供 JS 调用</para>
119-
/// <para lang="en">更新 值方法供 JS 调用</para>
119+
/// <para lang="en">Update value method for JS invocation</para>
120120
/// </summary>
121121
/// <param name="v1"></param>
122122
/// <param name="v2"></param>

src/BootstrapBlazor/Components/LazyLoad/LazyLoad.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ namespace BootstrapBlazor.Components;
99

1010
/// <summary>
1111
/// <para lang="zh">懒加载组件</para>
12-
/// <para lang="en">懒加载component</para>
12+
/// <para lang="en">Lazy load component</para>
1313
/// </summary>
1414
public partial class LazyLoad : ComponentBase
1515
{
1616
/// <summary>
1717
/// <para lang="zh">获得/设置 子组件</para>
18-
/// <para lang="en">Gets or sets 子component</para>
18+
/// <para lang="en">Gets or sets child component</para>
1919
/// </summary>
2020
[Parameter]
2121
public RenderFragment? ChildContent { get; set; }
2222

2323
/// <summary>
2424
/// <para lang="zh">获得/设置 组件加载条件回调方法 默认 null 未设置 一旦返回 true 后此回调将不再调用</para>
25-
/// <para lang="en">Gets or sets component加载条件callback method Default is null 未Sets 一旦返回 true 后此回调将不再调用</para>
25+
/// <para lang="en">Gets or sets component load condition callback method. Default is null. Once it returns true, this callback will no longer be called.</para>
2626
/// </summary>
2727
[Parameter]
2828
[NotNull]
2929
public Func<Task<bool>>? OnLoadConditionCheckAsync { get; set; }
3030

3131
/// <summary>
3232
/// <para lang="zh">获得/设置 首次显示时回调方法 可用于组件初始化数据 仅触发一次</para>
33-
/// <para lang="en">Gets or sets 首次display时callback method 可用于component初始化data 仅触发一次</para>
33+
/// <para lang="en">Gets or sets first display callback method. Can be used for component initialization data. Only triggered once.</para>
3434
/// </summary>
3535
[Parameter]
3636
public Func<Task>? OnFirstLoadCallbackAsync { get; set; }

0 commit comments

Comments
 (0)