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