ant-design-blazor/components/card/CardGrid.razor

23 lines
456 B
C#
Raw Normal View History

@namespace AntDesign
2019-12-17 14:39:23 +08:00
@inherits AntDomComponentBase
<div class="@ClassMapper.Class" style="@Style" id="@Id">
2019-12-17 14:39:23 +08:00
@ChildContent
</div>
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
[Parameter]
public bool Hoverable { get; set; }
2019-12-17 14:39:23 +08:00
protected override void OnInitialized()
{
base.OnInitialized();
ClassMapper.Add("ant-card-grid")
.If("ant-card-hoverable", () => Hoverable);
2019-12-17 14:39:23 +08:00
}
}