2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2019-12-17 14:39:23 +08:00
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
<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; }
|
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
[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")
|
2020-04-23 17:13:56 +08:00
|
|
|
.If("ant-card-hoverable", () => Hoverable);
|
2019-12-17 14:39:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|