mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-02 03:57:38 +08:00
fix(module: table): avoid selection disabled at the time that there are no rows (#3436)
This commit is contained in:
parent
766045ce64
commit
f301bea650
@ -8,20 +8,22 @@
|
||||
checked="@Checked"
|
||||
disabled="@IsDisabled"
|
||||
autofocus=@AutoFocus
|
||||
@onchange="@InputCheckedChange"
|
||||
@onchange="@InputCheckedChange"
|
||||
type="checkbox"
|
||||
class="ant-checkbox-input" />
|
||||
<span class="ant-checkbox-inner"></span>
|
||||
</span>
|
||||
<span>
|
||||
@if (ChildContent != null)
|
||||
{
|
||||
|
||||
@if (ChildContent != null)
|
||||
{
|
||||
<span>
|
||||
@ChildContent
|
||||
}
|
||||
else
|
||||
{
|
||||
@Label
|
||||
}
|
||||
</span>
|
||||
</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span>@Label</span>
|
||||
}
|
||||
|
||||
</label>
|
||||
|
||||
|
@ -29,7 +29,7 @@ namespace AntDesign
|
||||
|
||||
//private int[] _selectedIndexes;
|
||||
|
||||
private bool IsHeaderDisabled => RowSelections.All(x => x.Disabled);
|
||||
private bool IsHeaderDisabled => RowSelections.Any() && RowSelections.All(x => x.Disabled);
|
||||
|
||||
private bool? _selected;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user