2023-09-20 06:59:57 +08:00
|
|
|
|
@namespace AntDesign.Select.Internal
|
|
|
|
|
@typeparam TItemValue
|
|
|
|
|
@typeparam TItem
|
|
|
|
|
|
|
|
|
|
@if (ParentSelect.SuffixIcon != null)
|
|
|
|
|
{
|
2023-12-23 11:23:16 +08:00
|
|
|
|
<span class="ant-select-arrow" unselectable="on" aria-hidden="true" style="user-select: none;" >
|
2023-09-20 06:59:57 +08:00
|
|
|
|
@ParentSelect.SuffixIcon
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
else if (ParentSelect.Loading)
|
|
|
|
|
{
|
|
|
|
|
<span class="ant-select-arrow ant-select-arrow-loading" unselectable="on" aria-hidden="true" style="user-select: none;">
|
|
|
|
|
<Icon Type="loading"></Icon>
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (ShowArrowIcon || ParentSelect.FeedbackIcon != null)
|
|
|
|
|
{
|
2023-12-23 11:23:16 +08:00
|
|
|
|
<span class="ant-select-arrow" unselectable="on" aria-hidden="true" style="user-select: none;" >
|
2023-09-20 06:59:57 +08:00
|
|
|
|
@if (ParentSelect.IsSearchEnabled && IsOverlayShow)
|
|
|
|
|
{
|
|
|
|
|
if (ShowSearchIcon)
|
|
|
|
|
{
|
|
|
|
|
<Icon Type="search"></Icon>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<Icon Type="down"></Icon>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@if (ParentSelect.FeedbackIcon!=null)
|
|
|
|
|
{
|
|
|
|
|
@ParentSelect.FeedbackIcon
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2023-12-23 11:23:16 +08:00
|
|
|
|
<span class="ant-select-arrow" unselectable="on" aria-hidden="true" style="user-select: none;" >
|
2023-09-20 06:59:57 +08:00
|
|
|
|
@if (ParentSelect.IsSearchEnabled && IsOverlayShow)
|
|
|
|
|
{
|
|
|
|
|
if (ShowSearchIcon)
|
|
|
|
|
{
|
|
|
|
|
<Icon Type="search"></Icon>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@if (!ParentSelect.Disabled && ParentSelect.AllowClear && ParentSelect.HasValue)
|
|
|
|
|
{
|
2023-12-23 11:23:16 +08:00
|
|
|
|
<span class="ant-select-clear"
|
|
|
|
|
unselectable="on"
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
style="user-select: none;"
|
|
|
|
|
@ref="@_clearRef">
|
2023-09-20 06:59:57 +08:00
|
|
|
|
<Icon Type="close-circle" Theme="fill"></Icon>
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
}
|