diff --git a/components/tooltip/index.en-US.md b/components/tooltip/index.en-US.md index 6d80607d11..2399c4637b 100644 --- a/components/tooltip/index.en-US.md +++ b/components/tooltip/index.en-US.md @@ -28,6 +28,8 @@ The following APIs are shared by Tooltip, Popconfirm, Popover. | arrowPointAtCenter | whether arrow pointed at the center of target, supported after `antd@1.11+` | boolean | `false` | | visible | make the float card visible or not | boolean | false | | onVisibleChange | callback of the visible attribute changed | (visible) => void | none | +| mouseEnterDelay | delay time to show when mouse enter.unit: s | number | 0 | +| mouseLeaveDelay | delay time to hide when mouse leave.unit: s | number | 0.1 | | trigger | triggering mode: can be hover, focus, or click. | string | hover | | overlayClassName | class name of the card | string | none | | overlayStyle | style of the card | object | none | diff --git a/components/tooltip/index.tsx b/components/tooltip/index.tsx index e8ed1bd2a6..6d29b17a15 100644 --- a/components/tooltip/index.tsx +++ b/components/tooltip/index.tsx @@ -18,6 +18,8 @@ export interface AbstractTooltipProps { builtinPlacements?: Object; visible?: boolean; onVisibleChange?: (visible: boolean) => void; + mouseEnterDelay?: number; + mouseLeaveDelay?: number; transitionName?: string; trigger?: 'hover' | 'focus' | 'click'; openClassName?: string; diff --git a/components/tooltip/index.zh-CN.md b/components/tooltip/index.zh-CN.md index c7ff814099..29a2f2f067 100644 --- a/components/tooltip/index.zh-CN.md +++ b/components/tooltip/index.zh-CN.md @@ -30,6 +30,8 @@ title: Tooltip | arrowPointAtCenter | 箭头是否指向目标元素中心,`antd@1.11+` 支持 | boolean | `false` | | visible | 用于手动控制浮层显隐 | boolean | false | | onVisibleChange | 显示隐藏的回调 | (visible) => void | 无 | +| mouseEnterDelay | 鼠标移入后延时多少才显示 Tooltip,单位:秒 | number | 0 | +| mouseLeaveDelay | 鼠标移出后延时多少才隐藏 Tooltip,单位:秒 | number | 0.1 | | trigger | 触发行为,可选 `hover/focus/click` | string | hover | | overlayClassName | 卡片类名 | string | 无 | | overlayStyle | 卡片样式 | object | 无 |