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
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
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"
|
|
|
|
|
OverlayChildPrefixCls="@($"{PrefixCls}-menu")"
|
|
|
|
|
OnOverlayMouseEnter="OnOverlayMouseEnter"
|
|
|
|
|
OnOverlayMouseLeave="OnOverlayMouseLeave">
|
2020-05-31 22:26:33 +08:00
|
|
|
|
@if (Title.IsT0 && !string.IsNullOrEmpty(Title.AsT0))
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-tooltip-content">
|
2020-06-29 00:15:37 +08:00
|
|
|
|
<div class="ant-tooltip-arrow">
|
|
|
|
|
<span class="ant-tooltip-arrow-content"></span>
|
|
|
|
|
</div>
|
2020-05-31 22:26:33 +08:00
|
|
|
|
<div class="ant-tooltip-inner" role="tooltip">
|
|
|
|
|
@Title.AsT0
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
else if (Title.IsT1 && (Title.AsT1)!=null)
|
|
|
|
|
{
|
|
|
|
|
<div class="ant-tooltip-content">
|
2020-06-29 00:15:37 +08:00
|
|
|
|
<div class="ant-tooltip-arrow">
|
|
|
|
|
<span class="ant-tooltip-arrow-content"></span>
|
|
|
|
|
</div>
|
2020-05-31 22:26:33 +08:00
|
|
|
|
<div class="ant-tooltip-inner" role="tooltip">
|
|
|
|
|
@Title.AsT1
|
|
|
|
|
</div>
|
|
|
|
|
</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>
|