mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 13:08:23 +08:00
7e7d63aaec
* refactor: add ChildContent and title for column * feat: add pagination and empty * feat(module: table): add officeial demo * fix: indent
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<div class="@ClassMapper.Class" @ref="@Ref" style="@Style" id="@Id">
|
|
<div class="@(PrefixCls)-image" style="@ImageStyle">
|
|
@if (Image.IsT0 && !string.IsNullOrEmpty(Image.AsT0))
|
|
{
|
|
Description.TryPickT0(out string des, out _);
|
|
string alt = !string.IsNullOrEmpty(des) ? des : "empty";
|
|
<img alt="@alt" src="@Image.AsT0" />
|
|
}
|
|
else if (Simple)
|
|
{
|
|
@PRESENTED_IMAGE_SIMPLE
|
|
}
|
|
else if (Image.IsT1 && Image.AsT1 != null)
|
|
{
|
|
@Image.AsT1
|
|
}
|
|
else
|
|
{
|
|
@PRESENTED_IMAGE_DEFAULT
|
|
}
|
|
</div>
|
|
|
|
@if (Description.IsT0 && !string.IsNullOrEmpty(Description.AsT0))
|
|
{
|
|
<p class="@(PrefixCls)-description">@Description.AsT0</p>
|
|
}
|
|
@if (Description.IsT2 && Description.AsT2 != null)
|
|
{
|
|
<p class="@(PrefixCls)-description">@Description.AsT2</p>
|
|
}
|
|
<div class="@(PrefixCls)-footer">
|
|
@ChildContent
|
|
</div>
|
|
</div>
|
|
|
|
@code
|
|
{
|
|
public static RenderFragment PRESENTED_IMAGE_DEFAULT =@<EmptyDefaultImg />;
|
|
|
|
public static RenderFragment PRESENTED_IMAGE_SIMPLE = @<EmptySimpleImg />;
|
|
} |