mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 13:37:35 +08:00
1181673273
* feat(module: table): add summary row * feat: add fixed summary cell
32 lines
570 B
C#
32 lines
570 B
C#
@namespace AntDesign
|
|
|
|
@if (IsSummary)
|
|
{
|
|
<tr>@ChildContent</tr>
|
|
}
|
|
|
|
@code{
|
|
|
|
[CascadingParameter]
|
|
private ITable Table { get; set; }
|
|
|
|
[CascadingParameter(Name = "IsInitialize")]
|
|
private bool IsInitialize { get; set; }
|
|
|
|
[CascadingParameter(Name = "IsSummary")]
|
|
private bool IsSummary { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
base.OnInitialized();
|
|
|
|
if (IsInitialize)
|
|
{
|
|
Table.AddSummaryRow(this);
|
|
}
|
|
|
|
}
|
|
} |