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
|
|
|
@if (Avatar != null)
|
|
|
|
{
|
|
|
|
<div class="ant-card-meta-avatar">
|
|
|
|
@Avatar
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
@if (Title != null || Description != null)
|
|
|
|
{
|
|
|
|
<div class="ant-card-meta-detail">
|
|
|
|
@if (Title != null)
|
|
|
|
{
|
|
|
|
<div class="ant-card-meta-title">
|
|
|
|
@Title
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
@if (Description != null)
|
|
|
|
{
|
|
|
|
@Description
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@code{
|
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
[Parameter]
|
|
|
|
public RenderFragment Title { get; set; }
|
2019-12-17 14:39:23 +08:00
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
[Parameter]
|
|
|
|
public RenderFragment Description { get; set; }
|
2019-12-17 14:39:23 +08:00
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
[Parameter]
|
|
|
|
public RenderFragment Avatar { get; set; }
|
2019-12-17 14:39:23 +08:00
|
|
|
|
|
|
|
protected override void OnInitialized()
|
|
|
|
{
|
|
|
|
base.OnInitialized();
|
|
|
|
ClassMapper.Add("ant-card-meta");
|
|
|
|
}
|
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
}
|