@namespace AntDesign
@inherits AntDomComponentBase
@if (_itemRender != null)
{
@_itemRender(ItemRenderContext)
}
else
{
@_renderItemTemplate(ItemRenderContext)
}
@code {
private readonly RenderFragment _renderItemTemplate = (context) =>
@
@{
var type = context.Type;
var page = context.Page;
}
@if (type == "page")
{
@(page)
}
else
{
}
;
}