mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
f9b615c2ca
...for affix,back-top,breadcrumb,card,divider,typogragpy and timeline Co-authored-by: ElderJames <shunjiey@hotmail.com>
46 lines
939 B
C#
46 lines
939 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id">
|
|
@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{
|
|
|
|
[Parameter]
|
|
public RenderFragment Title { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment Description { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment Avatar { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
base.OnInitialized();
|
|
ClassMapper.Add("ant-card-meta");
|
|
}
|
|
|
|
}
|