2020-05-30 01:46:41 +08:00
|
|
|
@namespace AntDesign
|
2020-06-19 23:06:33 +08:00
|
|
|
@inherits ColumnBase
|
2020-06-05 16:06:23 +08:00
|
|
|
@typeparam TData
|
2020-05-30 01:46:41 +08:00
|
|
|
|
2020-06-19 23:06:33 +08:00
|
|
|
@if (IsPlaceholder)
|
2020-05-30 01:46:41 +08:00
|
|
|
{
|
2020-06-19 23:06:33 +08:00
|
|
|
<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)
|
|
|
|
{
|
|
|
|
<th class="@ClassMapper.Class" style="@FixedStyle @Style">
|
2020-06-05 16:06:23 +08:00
|
|
|
@(Title ?? DisplayName ?? FieldName)
|
|
|
|
</th>
|
2020-05-30 01:46:41 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2020-06-19 23:06:33 +08:00
|
|
|
<td class="@ClassMapper.Class" style="@FixedStyle @Style">
|
2020-06-05 16:06:23 +08:00
|
|
|
@if (CellRender != null)
|
|
|
|
{
|
|
|
|
@CellRender(Field)
|
|
|
|
}
|
|
|
|
else if (ChildContent != null)
|
|
|
|
{
|
|
|
|
@ChildContent
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
@Field
|
|
|
|
}
|
|
|
|
</td>
|
2020-05-30 01:46:41 +08:00
|
|
|
}
|