Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/BootstrapBlazor.Server/Components/Samples/Ips.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
<DemoBlock Title="@Localizer["IsDisabledTitle"]" Introduction="@Localizer["IsDisabledIntro"]" Name="IsDisabled">
<IpAddress Value="@Value" IsDisabled="true" />
</DemoBlock>

<AttributeTable Type="typeof(IpAddress)" />
8 changes: 4 additions & 4 deletions src/BootstrapBlazor/Components/IpAddress/IpAddress.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
namespace BootstrapBlazor.Components;

/// <summary>
/// <para lang="zh">BootstrapInputTextBase 组件</para>
/// <para lang="en">BootstrapInputTextBase component</para>
/// <para lang="zh">IpAddress 组件</para>
/// <para lang="en">IpAddress component</para>
/// </summary>
public partial class IpAddress
{
Expand All @@ -21,7 +21,7 @@ public partial class IpAddress

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

/// <summary>
/// <para lang="zh">更新 值方法供 JS 调用</para>
/// <para lang="en">更新 值方法供 JS 调用</para>
/// <para lang="en">Update value method for JS invocation</para>
/// </summary>
/// <param name="v1"></param>
/// <param name="v2"></param>
Expand Down
8 changes: 4 additions & 4 deletions src/BootstrapBlazor/Components/LazyLoad/LazyLoad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ namespace BootstrapBlazor.Components;

/// <summary>
/// <para lang="zh">懒加载组件</para>
/// <para lang="en">懒加载component</para>
/// <para lang="en">Lazy load component</para>
/// </summary>
public partial class LazyLoad : ComponentBase
{
/// <summary>
/// <para lang="zh">获得/设置 子组件</para>
/// <para lang="en">Gets or sets 子component</para>
/// <para lang="en">Gets or sets child component</para>
/// </summary>
[Parameter]
public RenderFragment? ChildContent { get; set; }

/// <summary>
/// <para lang="zh">获得/设置 组件加载条件回调方法 默认 null 未设置 一旦返回 true 后此回调将不再调用</para>
/// <para lang="en">Gets or sets component加载条件callback method Default is null 未Sets 一旦返回 true 后此回调将不再调用</para>
/// <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>
/// </summary>
[Parameter]
[NotNull]
public Func<Task<bool>>? OnLoadConditionCheckAsync { get; set; }

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