2020-05-29 00:33:49 +08:00
|
|
|
|
@namespace AntDesign
|
2020-04-23 17:13:56 +08:00
|
|
|
|
@inherits AntDomComponentBase
|
2020-04-20 10:03:32 +08:00
|
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
|
<div class="@ClassMapper.Class" @ref="@Ref" style="@Style" id="@Id">
|
2020-04-20 10:03:32 +08:00
|
|
|
|
<div class="@(PrefixCls)-image" style="@ImageStyle">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (ImageTemplate != null)
|
2020-04-20 10:03:32 +08:00
|
|
|
|
{
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@ImageTemplate
|
2020-04-20 10:03:32 +08:00
|
|
|
|
}
|
2020-09-16 13:58:16 +08:00
|
|
|
|
else if (string.IsNullOrEmpty(Image) == false)
|
2020-06-02 19:15:15 +08:00
|
|
|
|
{
|
2020-09-16 13:58:16 +08:00
|
|
|
|
string alt = Description.TryPickT0(out string des, out _) ? des : LocaleProvider.CurrentLocale.Empty.Description;
|
|
|
|
|
|
|
|
|
|
<img alt="@alt" src="@Image" />
|
2020-06-02 19:15:15 +08:00
|
|
|
|
}
|
2020-09-16 13:58:16 +08:00
|
|
|
|
else if (Simple)
|
2020-04-20 10:03:32 +08:00
|
|
|
|
{
|
2020-09-16 13:58:16 +08:00
|
|
|
|
<EmptySimpleImg />
|
2020-04-20 10:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2020-09-16 13:58:16 +08:00
|
|
|
|
<EmptyDefaultImg />
|
2020-04-20 10:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (DescriptionTemplate != null)
|
2020-04-20 10:03:32 +08:00
|
|
|
|
{
|
2020-09-16 13:58:16 +08:00
|
|
|
|
<p class="@(PrefixCls)-description">@DescriptionTemplate</p>
|
2020-04-20 10:03:32 +08:00
|
|
|
|
}
|
2020-09-16 13:58:16 +08:00
|
|
|
|
else if (Description.IsT1 == false || Description.AsT1 == true)
|
2020-04-20 10:03:32 +08:00
|
|
|
|
{
|
2020-09-16 13:58:16 +08:00
|
|
|
|
<p class="@(PrefixCls)-description">@Description.AsT0</p>
|
2020-04-20 10:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
<div class="@(PrefixCls)-footer">
|
|
|
|
|
@ChildContent
|
|
|
|
|
</div>
|
2020-09-16 13:58:16 +08:00
|
|
|
|
</div>
|