2020-07-11 01:46:35 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@using AntDesign.Internal
|
|
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="@ClassMapper.Class">
|
|
|
|
|
<textarea @ref="@Ref"
|
|
|
|
|
@bind="@Value"
|
|
|
|
|
@attributes="@Attributes"
|
|
|
|
|
style="white-space: pre-wrap; @Style"
|
|
|
|
|
id="@Id"
|
|
|
|
|
rows="@Rows"
|
|
|
|
|
disabled="@Disable"
|
|
|
|
|
readonly="@Readonly"
|
|
|
|
|
placeholder="@Placeholder"
|
|
|
|
|
@onfocus="@Onfocus"
|
|
|
|
|
@onblur="@Onblur"
|
|
|
|
|
@onkeypress="@OnKeyPress"
|
|
|
|
|
@onkeydown="@OnKeyDown"
|
|
|
|
|
@onkeyup="@OnKeyUp" />
|
|
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<CascadingValue Value="this" IsFixed="@true">
|
2020-07-11 01:46:35 +08:00
|
|
|
|
@if (ShowSuggestions)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-mentions-measure" style="z-index:1050;">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="ant-mentions-dropdown" style="@DropdownStyle">
|
|
|
|
|
<div class="ant-mentions-dropdown-menu" role="menu">
|
|
|
|
|
@if (LstOriginalOptions.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
@if (Loading)
|
|
|
|
|
{
|
|
|
|
|
<MentionsOption Value="ANTD_SEARCHING" Disable="true">
|
|
|
|
|
<Spin Size="small"></Spin>
|
|
|
|
|
</MentionsOption>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
foreach (var item in LstOriginalOptions)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
<MentionsOption Value="@item.Value">@item.ChildContent</MentionsOption>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@ChildContent
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</CascadingValue>
|
|
|
|
|
|
|
|
|
|
</div>
|