mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 13:37:35 +08:00
63d09f76a5
* feat: add pagination and empty * fix: indent * feat(module: table): add checkbox selection * feat(module: table): add radio selection * feat: add selected rows
26 lines
700 B
C#
26 lines
700 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
@if (IsHeader)
|
|
{
|
|
<th class="ant-table-cell ant-table-selection-column">
|
|
@if (Type == "checkbox")
|
|
{
|
|
<Checkbox @bind-Checked="Checked" CheckedChange="HandleCheckedChange" Indeterminate="Indeterminate"/>
|
|
}
|
|
</th>
|
|
}
|
|
else
|
|
{
|
|
<td class="ant-table-cell ant-table-selection-column">
|
|
@if (Type == "checkbox")
|
|
{
|
|
<Checkbox @bind-Checked="Checked" Disabled="Disabled" CheckedChange="HandleCheckedChange"/>
|
|
}
|
|
else if (Type == "radio")
|
|
{
|
|
<Radio @bind-Checked="Checked" Disabled="Disabled" CheckedChange="HandleCheckedChange"/>
|
|
}
|
|
</td>
|
|
}
|