@namespace AntDesign @inherits ComponentBase @typeparam TItem @if (SelfNode.Loading) { } else { @if (SelfNode?.SwitcherIconTemplate != null || SelfNode?.SwitcherIcon != null) { if (SelfNode.SwitcherIconTemplate != null) { @SelfNode.SwitcherIconTemplate(SelfNode) } else if (SelfNode.SwitcherIcon != null) { } } else { @if (TreeComponent.ShowLine) { if (!SelfNode.IsLeaf) { @if (TreeComponent.SwitcherIconTemplate != null) { @TreeComponent.SwitcherIconTemplate(SelfNode) } else if (TreeComponent.SwitcherIcon != null) { } else { } } else { if (TreeComponent.ShowLeafIcon) { } else { } } } else if (!SelfNode.IsLeaf) { } } }