@namespace AntDesign
@inherits AntDomComponentBase
@if (Grid == null)
{
@itemChildren(this)
}
else
{
@itemChildren(this)
}
@code{
RenderFragment itemChildren = content =>
@
@if (content.ItemLayout == ListItemLayout.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.Length > 0)
{
@for (int i = 0; i < content.Actions.Length; i++)
{
-
@content.Actions[i]
@if (i != (content.Actions.Length - 1))
{
}
}
}
;
}