ant-design-blazor/components/tooltip/Tooltip.razor
Zhuangkh 3e86809a9c feat:Add component Tooltip (#131)
* feat:Add AntTooltip

* Update Tooltip.razor.cs

Co-authored-by: 笨木头 <musicvs@163.com>
2020-05-19 22:34:09 +08:00

23 lines
738 B
Plaintext

@namespace AntBlazor
@inherits OverlayTrigger
@using AntBlazor.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">
<CascadingValue Value="@Title" Name="Title">
<TooltipPopup @ref="@_overlay" />
</CascadingValue>
</CascadingValue>
</CascadingValue>