2020-06-29 00:15:03 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits OverlayTrigger
|
|
|
|
|
|
|
|
|
|
@using AntDesign.Internal
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<CascadingValue Value="this" Name="Trigger">
|
|
|
|
|
<CascadingValue Value="@ArrowPointAtCenter" Name="ArrowPointAtCenter">
|
|
|
|
|
<Overlay @ref="_overlay"
|
|
|
|
|
HideMillisecondsDelay="10"
|
|
|
|
|
WaitForHideAnimMilliseconds="100"
|
|
|
|
|
OverlayChildPrefixCls="@($"{PrefixCls}-menu")"
|
|
|
|
|
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">
|
|
|
|
|
<div class="ant-popover-title">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (TitleTemplate != null)@TitleTemplate else @Title
|
2020-06-29 00:15:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
<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>
|