feat: 增加 LinkButton 组件

This commit is contained in:
Argo-Tianyi 2021-12-16 14:04:59 +08:00
parent fd2fca1d90
commit f21df83abc
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,3 @@
@inherits BootstrapComponentBase
<a @attributes="AdditionalAttributes" href="#" @onclick:preventDefault @onclick="OnClick">@Text</a>

View File

@ -0,0 +1,22 @@
using Microsoft.AspNetCore.Components.Web;
namespace BootstrapAdmin.Web.Components
{
/// <summary>
///
/// </summary>
public partial class LinkButton
{
/// <summary>
///
/// </summary>
[Parameter]
public string? Text { get; set; }
/// <summary>
///
/// </summary>
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }
}
}