@namespace AntDesign
@inherits AntDomComponentBase
@if (Grid == null)
{
@itemChildren(this)
}
else
{
@itemChildren(this)
}
@code{
RenderFragment itemChildren = content =>
@
@if (content.ItemLayout == AntDirectionVHType.Vertical && content.Extra != null)
{
@content.ChildContent
@content.actionsContent(content)
}
else
{
@content.ChildContent
@content.actionsContent(content)
@if (content.Extra != null)
{
@content.Extra
}
}
;
RenderFragment actionsContent = content =>
@
@if (content.Actions != null && content.Actions.Count > 0)
{
@for (int i = 0; i < content.Actions.Count; i++)
{
-
@content.Actions[i]
@if (i != (content.Actions.Count - 1))
{
}
}
}
;
}