mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
3117e72344
* fix(module:table): fix selection issues * allow SetSeletion(null) when there is not a Selection column * allow change selection by setting RowDate.Selected
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
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 class="ant-table-selection-col" style="width: @((CssSizeLength)Width); min-width: @((CssSizeLength)Width);">
|
|
}
|
|
else
|
|
{
|
|
<col class="ant-table-selection-col">
|
|
}
|
|
}
|
|
else if (IsHeader && HeaderColSpan != 0)
|
|
{
|
|
<th class="@ClassMapper.Class ant-table-selection-column" style="@FixedStyle @HeaderStyle" @key="@Key" colspan="@HeaderColSpan">
|
|
@if (Type == "checkbox")
|
|
{
|
|
<Checkbox Checked="_checked" CheckedChange="HandleCheckedChange" Indeterminate="Indeterminate" />
|
|
}
|
|
</th>
|
|
}
|
|
else if (!IsHeader && 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 Checked="_checked" Disabled="Disabled" CheckedChange="HandleCheckedChange" />
|
|
}
|
|
else if (Type == "radio")
|
|
{
|
|
<Radio Checked="_checked" Disabled="Disabled" CheckedChange="HandleCheckedChange" TValue="bool" />
|
|
}
|
|
</td>
|
|
} |