2020-06-29 00:15:03 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits OverlayTrigger
|
|
|
|
|
|
|
|
|
|
@using AntDesign.Internal
|
|
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
|
@if (ChildContent != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="@ClassMapper.Class" @ref="@Ref" Id="@Id" style="display: inline-flex; @Style"
|
|
|
|
|
@onclick="OnClickDiv"
|
|
|
|
|
@onmouseenter="OnTriggerMouseEnter"
|
|
|
|
|
@onmouseleave="OnTriggerMouseLeave"
|
|
|
|
|
@oncontextmenu="OnTriggerContextmenu"
|
|
|
|
|
@onfocusin="OnTriggerFocusIn"
|
|
|
|
|
@onfocusout="OnTriggerFocusOut"
|
|
|
|
|
@oncontextmenu:preventDefault>
|
|
|
|
|
@ChildContent
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (Unbound != null)
|
|
|
|
|
{
|
|
|
|
|
@Unbound(RefBack)
|
|
|
|
|
}
|
2020-06-29 00:15:03 +08:00
|
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
|
|
|
|
|
|
<CascadingValue Value="this" Name="Trigger" IsFixed="@true">
|
2020-06-29 00:15:03 +08:00
|
|
|
|
<CascadingValue Value="@ArrowPointAtCenter" Name="ArrowPointAtCenter">
|
|
|
|
|
<Overlay @ref="_overlay"
|
|
|
|
|
HideMillisecondsDelay="10"
|
|
|
|
|
WaitForHideAnimMilliseconds="100"
|
|
|
|
|
OnOverlayMouseEnter="OnOverlayMouseEnter"
|
|
|
|
|
OnOverlayMouseLeave="OnOverlayMouseLeave">
|
|
|
|
|
<div class="ant-popover-content">
|
|
|
|
|
<div class="ant-popover-arrow">
|
|
|
|
|
<span class="ant-popover-arrow-content"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ant-popover-inner" role="tooltip">
|
2020-10-14 13:56:59 +08:00
|
|
|
|
@if (TitleTemplate != null || !string.IsNullOrWhiteSpace(Title))
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-popover-title">
|
|
|
|
|
@if (TitleTemplate != null)@TitleTemplate else @Title
|
|
|
|
|
</div>
|
|
|
|
|
}
|
2020-06-29 00:15:03 +08:00
|
|
|
|
<div class="ant-popover-inner-content">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (ContentTemplate != null)@ContentTemplate else @Content
|
2020-06-29 00:15:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Overlay>
|
|
|
|
|
</CascadingValue>
|
|
|
|
|
</CascadingValue>
|