@namespace AntDesign @inherits ComponentBase @typeparam TItem @if (TreeComponent.TitleIconTemplate != null && TreeComponent.ShowIcon) { @TreeComponent.TitleIconTemplate(SelfNode) } else if (string.IsNullOrWhiteSpace(SelfNode.Icon) == false && TreeComponent.ShowIcon) { @if (string.IsNullOrWhiteSpace(SelfNode.Icon) == false) { } } @if (TreeComponent.TitleTemplate != null) { @TreeComponent.TitleTemplate(SelfNode) } else { @SelfNode.Title }