mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 21:47:38 +08:00
0930f79da8
* feat(module: table): add colspan & rowspan * fix: unit test * test: add colspan and rowspan case Co-authored-by: ElderJames <shunjiey@hotmail.com>
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
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 ant-table-selection-column" style="@FixedStyle @Style" @key="@Key" colspan="@HeaderColSpan">
|
|
@if (Type == "checkbox")
|
|
{
|
|
<Checkbox @bind-Checked="_checked" CheckedChange="HandleCheckedChange" Indeterminate="Indeterminate" />
|
|
}
|
|
</th>
|
|
}
|
|
else if (RowSpan != 0 && ColSpan != 0)
|
|
{
|
|
<td class="@ClassMapper.Class ant-table-selection-column" style="@FixedStyle @Style" @key="@Key" rowspan="@RowSpan" colspan="@ColSpan">
|
|
@if (Type == "checkbox")
|
|
{
|
|
<Checkbox @bind-Checked="_checked" Disabled="Disabled" CheckedChange="HandleCheckedChange" />
|
|
}
|
|
else if (Type == "radio")
|
|
{
|
|
<Radio @bind-Checked="_checked" Disabled="Disabled" CheckedChange="HandleCheckedChange" TValue="bool" />
|
|
}
|
|
</td>
|
|
} |