mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-06 05:57:39 +08:00
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);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|