diff --git a/components/tooltip/index.en-US.md b/components/tooltip/index.en-US.md index b13544e8ef..ee022b0317 100644 --- a/components/tooltip/index.en-US.md +++ b/components/tooltip/index.en-US.md @@ -14,9 +14,9 @@ A simple text popup tip. ## API -| Property | Description | Type | Default | -| --- | --- | --- | --- | -| title | The text shown in the tooltip | ReactNode \| () => ReactNode | - | +| Property | Description | Type | Default | +| -------- | ----------------------------- | ---------------------------- | ------- | +| title | The text shown in the tooltip | ReactNode \| () => ReactNode | - | ### Common API @@ -35,6 +35,7 @@ The following APIs are shared by Tooltip, Popconfirm, Popover. | mouseLeaveDelay | Delay in seconds, before tooltip is hidden on mouse leave | number | 0.1 | | | overlayClassName | Class name of the tooltip card | string | - | | | overlayStyle | Style of the tooltip card | object | - | | +| overlayInnerStyle | Style of the tooltip inner content | object | - | | | placement | The position of the tooltip relative to the target, which can be one of `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | `top` | | | trigger | Tooltip trigger mode. Could be multiple by passing an array | `hover` \| `focus` \| `click` \| `contextMenu` \| Array<string> | `hover` | | | visible | Whether the floating tooltip card is visible or not | boolean | false | | diff --git a/components/tooltip/index.zh-CN.md b/components/tooltip/index.zh-CN.md index 6b6d06142c..9e33f243ff 100644 --- a/components/tooltip/index.zh-CN.md +++ b/components/tooltip/index.zh-CN.md @@ -16,9 +16,9 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg ## API -| 参数 | 说明 | 类型 | 默认值 | -| --- | --- | --- | --- | -| title | 提示文字 | ReactNode \| () => ReactNode | - | +| 参数 | 说明 | 类型 | 默认值 | +| ----- | -------- | ---------------------------- | ------ | +| title | 提示文字 | ReactNode \| () => ReactNode | - | ### 共同的 API @@ -37,6 +37,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg | mouseLeaveDelay | 鼠标移出后延时多少才隐藏 Tooltip,单位:秒 | number | 0.1 | | | overlayClassName | 卡片类名 | string | - | | | overlayStyle | 卡片样式 | object | - | | +| overlayInnerStyle | 卡片内容区域的样式对象 | object | - | | | placement | 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | `top` | | | trigger | 触发行为,可选 `hover` \| `focus` \| `click` \| `contextMenu`,可使用数组设置多个触发行为 | string \| string\[] | `hover` | | | visible | 用于手动控制浮层显隐 | boolean | false | |