mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 21:47:38 +08:00
22 lines
480 B
Plaintext
22 lines
480 B
Plaintext
@namespace AntBlazor
|
|
@inherits AntDomComponentBase
|
|
|
|
<div class="@ClassMapper.Class" style="@Style" @attributes="Attributes" Id="@Id">
|
|
@ChildContent
|
|
</div>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
[Parameter] public bool hoverable { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
base.OnInitialized();
|
|
ClassMapper.Add("ant-card-grid")
|
|
.If("ant-card-hoverable", () => hoverable);
|
|
}
|
|
|
|
}
|