@namespace AntDesign @inherits ComponentBase @typeparam TItem @if (CanDraggable) { @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 { @if (SelfNode.TitleTemplate != null) { @SelfNode.TitleTemplate } else if (SelfNode.Matched) { var value = $"{TreeComponent.SearchValue}"; @((MarkupString)SelfNode.Title.Replace(TreeComponent.SearchValue, value)) } else { @SelfNode.Title } } @if (SelfNode.DragTarget) {
}
} else { @if (TreeComponent.TitleIconTemplate != null && TreeComponent.ShowIcon) { @TreeComponent.TitleIconTemplate(SelfNode) } else if ((!string.IsNullOrWhiteSpace(SelfNode.Icon) || SelfNode.IconTemplate != null) && TreeComponent.ShowIcon) { @if (SelfNode.IconTemplate != null) { @SelfNode.IconTemplate(SelfNode) } else if (!string.IsNullOrWhiteSpace(SelfNode.Icon)) { } } @if (TreeComponent.TitleTemplate != null) { @TreeComponent.TitleTemplate(SelfNode) } else if (SelfNode.TitleTemplate != null) { @SelfNode.TitleTemplate } else { @if (SelfNode.Matched && !string.IsNullOrWhiteSpace(TreeComponent.SearchValue)) { var value = $"{TreeComponent.SearchValue}"; @((MarkupString)SelfNode.Title.Replace(TreeComponent.SearchValue, value)) } else { @SelfNode.Title } } @if (SelfNode.DragTarget) {
}
}