2020-06-19 23:06:33 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits ColumnBase
|
|
|
|
|
|
2021-01-09 23:57:31 +08:00
|
|
|
|
@if (IsInitialize)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else if (IsPlaceholder)
|
2020-06-19 23:06:33 +08:00
|
|
|
|
{
|
|
|
|
|
<td style="padding: 0px; border: 0px; height: 0px;"></td>
|
|
|
|
|
}
|
2021-01-09 23:57:31 +08:00
|
|
|
|
else if (IsMeasure)
|
|
|
|
|
{
|
|
|
|
|
<td style="padding: 0px; border: 0px; height: 0px;"><div style="height: 0px; overflow: hidden;"> </div></td>
|
|
|
|
|
}
|
2020-06-19 23:06:33 +08:00
|
|
|
|
else if (IsColGroup)
|
|
|
|
|
{
|
2020-12-23 00:47:35 +08:00
|
|
|
|
if (Width != null)
|
2020-06-19 23:06:33 +08:00
|
|
|
|
{
|
2020-11-09 22:17:27 +08:00
|
|
|
|
<col class="ant-table-selection-col" style="width: @((CssSizeLength)Width); min-width: @((CssSizeLength)Width);">
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<col class="ant-table-selection-col">
|
2020-06-19 23:06:33 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-09-28 16:06:02 +08:00
|
|
|
|
else if (IsHeader && HeaderColSpan != 0)
|
2020-06-19 23:06:33 +08:00
|
|
|
|
{
|
2021-01-09 23:57:31 +08:00
|
|
|
|
<th class="@ClassMapper.Class ant-table-selection-column" style="@FixedStyle @HeaderStyle" @key="@Key" colspan="@HeaderColSpan">
|
2020-06-19 23:06:33 +08:00
|
|
|
|
@if (Type == "checkbox")
|
|
|
|
|
{
|
|
|
|
|
<Checkbox @bind-Checked="_checked" CheckedChange="HandleCheckedChange" Indeterminate="Indeterminate" />
|
|
|
|
|
}
|
|
|
|
|
</th>
|
2021-01-09 23:57:31 +08:00
|
|
|
|
}
|
2020-11-03 13:31:22 +08:00
|
|
|
|
else if (!IsHeader && RowSpan != 0 && ColSpan != 0)
|
2020-06-19 23:06:33 +08:00
|
|
|
|
{
|
2021-01-09 23:57:31 +08:00
|
|
|
|
<td class="@ClassMapper.Class ant-table-selection-column" style="@FixedStyle @Style" @key="@Key" rowspan="@RowSpan" colspan="@ColSpan">
|
2020-06-19 23:06:33 +08:00
|
|
|
|
@if (Type == "checkbox")
|
|
|
|
|
{
|
|
|
|
|
<Checkbox @bind-Checked="_checked" Disabled="Disabled" CheckedChange="HandleCheckedChange" />
|
|
|
|
|
}
|
|
|
|
|
else if (Type == "radio")
|
|
|
|
|
{
|
2020-06-29 23:19:25 +08:00
|
|
|
|
<Radio @bind-Checked="_checked" Disabled="Disabled" CheckedChange="HandleCheckedChange" TValue="bool" />
|
2020-06-19 23:06:33 +08:00
|
|
|
|
}
|
|
|
|
|
</td>
|
|
|
|
|
}
|