2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2020-04-23 17:13:56 +08:00
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
2019-12-17 14:39:23 +08:00
|
|
|
<CascadingValue Value="this">
|
2020-04-23 17:13:56 +08:00
|
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id">
|
2020-09-16 13:58:16 +08:00
|
|
|
@if (TitleTemplate != null || Title != null || Extra != null || AntCardTab != null)
|
2019-12-17 14:39:23 +08:00
|
|
|
{
|
|
|
|
<div class="ant-card-head">
|
|
|
|
<div class="ant-card-head-wrapper">
|
2020-09-16 13:58:16 +08:00
|
|
|
@if (TitleTemplate != null || Title != null)
|
2019-12-17 14:39:23 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
<div class="ant-card-head-title">
|
2020-09-16 13:58:16 +08:00
|
|
|
@if (TitleTemplate != null)@TitleTemplate else @Title
|
2019-12-17 14:39:23 +08:00
|
|
|
</div>
|
|
|
|
}
|
|
|
|
@if (Extra != null)
|
|
|
|
{
|
|
|
|
<div class="ant-card-extra">
|
|
|
|
@Extra
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
@if (AntCardTab != null)
|
|
|
|
{
|
|
|
|
@AntCardTab
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
|
|
|
|
@if (Cover != null)
|
|
|
|
{
|
|
|
|
<div class="ant-card-cover">
|
|
|
|
@Cover
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
<div class="ant-card-body" style="@BodyStyle">
|
|
|
|
@if (!Loading)
|
2019-12-17 14:39:23 +08:00
|
|
|
{
|
|
|
|
@Body
|
2019-12-17 17:53:25 +08:00
|
|
|
@ChildContent
|
2019-12-17 14:39:23 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
<CardLoading></CardLoading>
|
2019-12-17 14:39:23 +08:00
|
|
|
}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if (Actions.Count > 0)
|
|
|
|
{
|
|
|
|
<ul class="ant-card-actions">
|
|
|
|
@foreach (var action in Actions)
|
|
|
|
{
|
|
|
|
<li style="@($"width:{100 / Actions.Count}%") ">
|
|
|
|
<span>@action</span>
|
|
|
|
</li>
|
|
|
|
}
|
|
|
|
</ul>
|
|
|
|
}
|
|
|
|
</div>
|
2020-04-23 17:13:56 +08:00
|
|
|
</CascadingValue>
|