feat: 增加 AdminCard 组件
This commit is contained in:
parent
edf50b0a7a
commit
874b45b29b
|
@ -0,0 +1,10 @@
|
|||
<Block Name="@AuthorizeKey">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
@HeaderText
|
||||
</CardHeader>
|
||||
<CardBody>
|
||||
@ChildContent
|
||||
</CardBody>
|
||||
</Card>
|
||||
</Block>
|
|
@ -0,0 +1,28 @@
|
|||
namespace BootstrapAdmin.Web.Components
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public partial class AdminCard
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string? AuthorizeKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
[EditorRequired]
|
||||
[NotNull]
|
||||
public string? HeaderText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment? ChildContent { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue