mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
35 lines
774 B
C#
35 lines
774 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public partial class CardGrid : AntDomComponentBase
|
|
{
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
[Parameter]
|
|
public bool Hoverable { get; set; }
|
|
|
|
[CascadingParameter]
|
|
public Card Parent { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
Parent?.MarkHasGrid();
|
|
|
|
ClassMapper.Add("ant-card-grid")
|
|
.If("ant-card-hoverable", () => Hoverable);
|
|
|
|
base.OnInitialized();
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
base.Dispose(disposing);
|
|
}
|
|
}
|
|
}
|