2020-05-29 00:33:49 +08:00
|
|
|
|
@namespace AntDesign
|
2020-05-19 22:34:09 +08:00
|
|
|
|
@inherits OverlayTrigger
|
|
|
|
|
|
2020-05-29 00:33:49 +08:00
|
|
|
|
@using AntDesign.Internal
|
2020-05-19 22:34:09 +08:00
|
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
|
@if (ChildContent != null)
|
|
|
|
|
{
|
2020-10-14 17:24:26 +08:00
|
|
|
|
<div class="@ClassMapper.Class" @ref="@Ref" Id="@Id" style="display: inline-block; @Style"
|
2020-05-19 22:34:09 +08:00
|
|
|
|
@onclick="OnClickDiv"
|
|
|
|
|
@onmouseenter="OnTriggerMouseEnter"
|
|
|
|
|
@onmouseleave="OnTriggerMouseLeave"
|
|
|
|
|
@oncontextmenu="OnTriggerContextmenu"
|
|
|
|
|
@onfocusin="OnTriggerFocusIn"
|
|
|
|
|
@onfocusout="OnTriggerFocusOut"
|
|
|
|
|
@oncontextmenu:preventDefault>
|
|
|
|
|
@ChildContent
|
|
|
|
|
</div>
|
2021-01-21 17:20:10 +08:00
|
|
|
|
}
|
|
|
|
|
@if (Unbound != null)
|
|
|
|
|
{
|
|
|
|
|
@Unbound(RefBack)
|
|
|
|
|
}
|
2020-05-19 22:34:09 +08:00
|
|
|
|
|
2020-05-21 12:21:22 +08:00
|
|
|
|
<CascadingValue Value="this" Name="Trigger">
|
2020-05-19 22:34:09 +08:00
|
|
|
|
<CascadingValue Value="@ArrowPointAtCenter" Name="ArrowPointAtCenter">
|
2020-05-21 12:21:22 +08:00
|
|
|
|
<Overlay @ref="_overlay"
|
|
|
|
|
HideMillisecondsDelay="10"
|
|
|
|
|
WaitForHideAnimMilliseconds="100"
|
|
|
|
|
OnOverlayMouseEnter="OnOverlayMouseEnter"
|
2021-07-05 13:45:59 +08:00
|
|
|
|
OnOverlayMouseLeave="OnOverlayMouseLeave"
|
|
|
|
|
OnOverlayMouseUp="OnOverlayMouseUp">
|
2020-07-24 23:05:38 +08:00
|
|
|
|
@if (Title.Value != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-tooltip-content">
|
|
|
|
|
<div class="ant-tooltip-arrow">
|
|
|
|
|
<span class="ant-tooltip-arrow-content"></span>
|
2020-05-31 22:26:33 +08:00
|
|
|
|
</div>
|
2020-07-24 23:05:38 +08:00
|
|
|
|
<div class="ant-tooltip-inner" role="tooltip">
|
|
|
|
|
@if (Title.IsT0 && !string.IsNullOrWhiteSpace(Title.AsT0))
|
|
|
|
|
{
|
|
|
|
|
@Title.AsT0
|
|
|
|
|
}
|
|
|
|
|
else if (Title.IsT1)
|
|
|
|
|
{
|
2020-05-31 22:26:33 +08:00
|
|
|
|
@Title.AsT1
|
2020-07-24 23:05:38 +08:00
|
|
|
|
}
|
|
|
|
|
else if (Title.IsT2)
|
|
|
|
|
{
|
|
|
|
|
@Title.AsT2
|
|
|
|
|
}
|
2020-05-31 22:26:33 +08:00
|
|
|
|
</div>
|
2020-07-24 23:05:38 +08:00
|
|
|
|
</div>
|
|
|
|
|
}
|
2020-05-21 12:21:22 +08:00
|
|
|
|
</Overlay>
|
2020-05-19 22:34:09 +08:00
|
|
|
|
</CascadingValue>
|
2020-05-21 12:21:22 +08:00
|
|
|
|
</CascadingValue>
|