ant-design-blazor/components/select/internal/SelectSuffixIcon.razor
zxyao fd73cc980f
fix(module select): simulate setTimeout, ensure that the click event is processed properly (#3525)
* fix(module select): dom symmetrical difference event

* refactor: selector

* fix: test

fix: bunit cannot handle js event

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-12-23 11:23:16 +08:00

63 lines
1.8 KiB
C#

@namespace AntDesign.Select.Internal
@typeparam TItemValue
@typeparam TItem
@if (ParentSelect.SuffixIcon != null)
{
<span class="ant-select-arrow" unselectable="on" aria-hidden="true" style="user-select: none;" >
@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)
{
<span class="ant-select-arrow" unselectable="on" aria-hidden="true" style="user-select: none;" >
@if (ParentSelect.IsSearchEnabled && IsOverlayShow)
{
if (ShowSearchIcon)
{
<Icon Type="search"></Icon>
}
}
else
{
<Icon Type="down"></Icon>
}
@if (ParentSelect.FeedbackIcon!=null)
{
@ParentSelect.FeedbackIcon
}
</span>
}
else
{
<span class="ant-select-arrow" unselectable="on" aria-hidden="true" style="user-select: none;" >
@if (ParentSelect.IsSearchEnabled && IsOverlayShow)
{
if (ShowSearchIcon)
{
<Icon Type="search"></Icon>
}
}
</span>
}
@if (!ParentSelect.Disabled && ParentSelect.AllowClear && ParentSelect.HasValue)
{
<span class="ant-select-clear"
unselectable="on"
aria-hidden="true"
style="user-select: none;"
@ref="@_clearRef">
<Icon Type="close-circle" Theme="fill"></Icon>
</span>
}
}