feat: 增加 LinkButton 组件
This commit is contained in:
parent
fd2fca1d90
commit
f21df83abc
|
@ -0,0 +1,3 @@
|
|||
@inherits BootstrapComponentBase
|
||||
|
||||
<a @attributes="AdditionalAttributes" href="#" @onclick:preventDefault @onclick="OnClick">@Text</a>
|
|
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue