ant-design-blazor/components/table/ActionColumn.razor
fan0217 b8a6062f6f fix(module: table): add header style and fix the table size (#909)
* rename to header style

* fix selection and action

* delete  useless style

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-12-23 00:47:35 +08:00

30 lines
694 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="@HeaderStyle" colspan="@HeaderColSpan">
@if (TitleTemplate != null)@TitleTemplate else @Title
</th>
}
else if (!IsHeader && RowSpan != 0 && ColSpan != 0)
{
<td class="@ClassMapper.Class" style="@Style" rowspan="@RowSpan" colspan="@ColSpan">
@ChildContent
</td>
}