@namespace AntDesign @inherits AntDomComponentBase @if (IconTemplate != null) { @IconTemplate } else if (Icon != null) { } @if (RouterLink == null) { @content(this) } else { @content(this) } @code { RenderFragment content = item =>@ @if (item.Title != null) { @item.Title } else { @item.ChildContent } ; }