@namespace AntDesign
@inherits AntDomComponentBase
@typeparam TItem
@if (Header != null)
{
}
@if (DataSource != null && DataSource.Any())
{
@childrenContent(this)
}
else
{
}
@if (Footer != null)
{
}
@if (LoadMore != null)
{
@LoadMore
}
@code{
RenderFragment> childrenContent = content =>
@
@if (content.Grid != null)
{
@foreach (var item in content.DataSource)
{
@if (content.Extra != null)
{
@content.Item(item)
}
else
{
@content.Item(item)
}
}
}
else
{
@foreach (var item in content.DataSource)
{
@if (content.Extra != null)
{
@content.Item(item)
}
else
{
@content.Item(item)
}
}
}
;
}