@using AntDesign.Internal @using AntDesign.Select.Internal @namespace AntDesign @inherits SelectBase @typeparam TItemValue @typeparam TItem @{ base.BuildRenderTree(__builder); } @code { static RenderFragment<(Select select, RenderFragment itemTemplate)> selectOptionsRender = ctx => @; static Func, RenderFragment>> optionRender = itemTemplate => option => @ ; protected override RenderFragment RenderOptionDropdown() { @if (SelectOptions != null) { return @
@if (CustomTagSelectOptionItem != null) { } @SelectOptions @if (AddedTags != null) { foreach (var selectOption in AddedTags) { } }
; } else if (SelectOptions == null && !AllOptionsHidden()) { return@
@{ @if (!IsGroupingEnabled) { @selectOptionsRender((this, ItemTemplate)) } else { } }
; } @if (AllOptionsHidden()) { return@
@if (NotFoundContent != null) { @NotFoundContent } else { }
; } return builder => { }; } }