mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-24 10:13:01 +08:00
feat: added ActionButton component (#6631)
This commit is contained in:
@@ -13,6 +13,7 @@ export type TooltipProps = {
|
||||
hideArrow?: boolean
|
||||
popupClassName?: string
|
||||
offset?: OffsetOptions
|
||||
asChild?: boolean
|
||||
}
|
||||
|
||||
const arrow = (
|
||||
@@ -27,6 +28,7 @@ const Tooltip: FC<TooltipProps> = ({
|
||||
hideArrow,
|
||||
popupClassName,
|
||||
offset,
|
||||
asChild,
|
||||
}) => {
|
||||
const [open, setOpen] = useState(false)
|
||||
const [isHoverPopup, {
|
||||
@@ -79,6 +81,7 @@ const Tooltip: FC<TooltipProps> = ({
|
||||
}
|
||||
}}
|
||||
onMouseLeave={() => triggerMethod === 'hover' && handleLeave(true)}
|
||||
asChild={asChild}
|
||||
>
|
||||
{children}
|
||||
</PortalToFollowElemTrigger>
|
||||
|
||||
Reference in New Issue
Block a user