ant-design-blazor/components/table/ActionColumn.razor
bingbingtalk 0930f79da8 feat(module: table): add colspan & rowspan (#649)
* feat(module: table): add colspan & rowspan

* fix: unit test

* test: add colspan and rowspan case

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-09-28 16:06:02 +08:00

26 lines
587 B
C#

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