mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
@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-tooltip-content">
|
|
<div class="ant-tooltip-arrow"></div>
|
|
<div class="ant-tooltip-inner" role="tooltip">
|
|
@if(Title.IsT0)
|
|
{
|
|
@Title.AsT0;
|
|
}
|
|
else
|
|
{
|
|
@Title.AsT1;
|
|
}
|
|
</div>
|
|
</div>
|
|
</Overlay>
|
|
</CascadingValue>
|
|
</CascadingValue>
|