mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-06 05:57:39 +08:00
43664736f7
* feat(module: table): support fixed header & columns * fix layout of the fixed columns & header * fix scrollbar hidding * header and body sync scroll * fix column width calc * fix demo pagesize * fix docs
38 lines
899 B
C#
38 lines
899 B
C#
@namespace AntDesign
|
|
@inherits ColumnBase
|
|
|
|
@if (IsInitialize)
|
|
{
|
|
return;
|
|
}
|
|
else if (IsPlaceholder)
|
|
{
|
|
<td style="padding: 0px; border: 0px; height: 0px;"></td>
|
|
}
|
|
else if (IsMeasure)
|
|
{
|
|
<td style="padding: 0px; border: 0px; height: 0px;"><div style="height: 0px; overflow: hidden;"> </div></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="@FixedStyle @HeaderStyle" colspan="@HeaderColSpan">
|
|
@if (TitleTemplate != null)@TitleTemplate else @Title
|
|
</th>
|
|
}
|
|
else if (!IsHeader && RowSpan != 0 && ColSpan != 0)
|
|
{
|
|
<td class="@ClassMapper.Class" style="@FixedStyle @Style" rowspan="@RowSpan" colspan="@ColSpan">
|
|
@ChildContent
|
|
</td>
|
|
} |