mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
fd73cc980f
* 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>
63 lines
1.8 KiB
C#
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>
|
|
}
|
|
} |