ant-design-blazor/components/table/ActionColumn.razor
James Yeung fcd8393742 feat(module: table): support for tree data (#771)
* feat(module: table): support for tree data

* feat(module: table): support for tree data

* fix: tests
2020-11-09 22:17:27 +08:00

30 lines
643 B
C#

@namespace AntDesign
@inherits ColumnBase
@if (IsPlaceholder)
{
<td style="padding: 0px; border: 0px; height: 0px;"></td>
}
else if (IsColGroup)
{
if (Width != null)
{
<col style="width: @((CssSizeLength)Width); min-width: @((CssSizeLength)Width);">
}
else
{
<col />
}
}
else if (IsHeader && HeaderColSpan != 0)
{
<th class="@ClassMapper.Class" style="@Style" colspan="@HeaderColSpan">
@(Title)
</th>
}
else if (!IsHeader && RowSpan != 0 && ColSpan != 0)
{
<td class="@ClassMapper.Class" style="@Style" rowspan="@RowSpan" colspan="@ColSpan">
@ChildContent
</td>
}