Skip to content

Commit 7ca524e

Browse files
authored
feat(ToggleButton): reuse base type function (dotnetcore#6588)
* refactor: 更新代码消除警告信息 * doc: 更新注释文档
1 parent f896db7 commit 7ca524e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/BootstrapBlazor/Components/Button/ButtonBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public abstract class ButtonBase : TooltipWrapperBase
6767
public Func<Task>? OnClickWithoutRender { get; set; }
6868

6969
/// <summary>
70-
/// 获得/设置 按钮颜色
70+
/// 获得/设置 按钮颜色 默认 <see cref="Color.Primary"/>
7171
/// </summary>
7272
[Parameter]
7373
public virtual Color Color { get; set; } = Color.Primary;

src/BootstrapBlazor/Components/Button/ToggleButton.razor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ private async Task OnClickButton()
5050
}
5151
}
5252

53-
private async Task HandlerClick()
53+
/// <summary>
54+
/// <inheritdoc/>
55+
/// </summary>
56+
protected override async Task HandlerClick()
5457
{
5558
IsActive = !IsActive;
5659
if (OnClickWithoutRender != null)

0 commit comments

Comments
 (0)