mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 17:01:18 +08:00
7e7d63aaec
* refactor: add ChildContent and title for column * feat: add pagination and empty * feat(module: table): add officeial demo * fix: indent
24 lines
363 B
C#
24 lines
363 B
C#
@namespace AntDesign
|
|
@inherits AntComponentBase
|
|
@typeparam TItem
|
|
|
|
@if (IsHeader)
|
|
{
|
|
<th class="ant-table-cell">@(Title??DisplayName??FieldName)</th>
|
|
}
|
|
else
|
|
{
|
|
@if (CellRender != null)
|
|
{
|
|
<td>@CellRender(Field)</td>
|
|
}
|
|
else if (ChildContent != null)
|
|
{
|
|
<td>@ChildContent</td>
|
|
}
|
|
else
|
|
{
|
|
<td>@Field</td>
|
|
}
|
|
}
|