Skip to content

Commit

Permalink
refactor: 移动参数到基类
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang committed Oct 24, 2024
1 parent fd0a347 commit f699dc7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ public partial class FloatingLabel<TValue>
[Parameter]
public bool IsGroupBox { get; set; }

/// <summary>
/// 获得/设置 失去焦点回调方法 默认 null
/// </summary>
[Parameter]
public Func<TValue, Task>? OnBlurAsync { get; set; }

/// <summary>
/// <inheritdoc/>
/// </summary>
Expand All @@ -36,15 +30,4 @@ protected override void OnParametersSet()

PlaceHolder ??= FieldIdentifier.HasValue ? FieldIdentifier.Value.GetDisplayName() : DisplayText;
}

/// <summary>
/// OnBlur 方法
/// </summary>
protected virtual async Task OnBlur()
{
if (OnBlurAsync != null)
{
await OnBlurAsync(Value);
}
}
}

0 comments on commit f699dc7

Please sign in to comment.