feat: 增加 AdminCard 组件

This commit is contained in:
Argo-Tianyi 2021-12-25 13:02:54 +08:00
parent edf50b0a7a
commit 874b45b29b
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<Block Name="@AuthorizeKey">
<Card>
<CardHeader>
@HeaderText
</CardHeader>
<CardBody>
@ChildContent
</CardBody>
</Card>
</Block>

View File

@ -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; }
}
}