mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
docs: doc of tooltip add overlayInnerStyle (#31119)
* docs: doc of tooltip add overlayInnerStyle * Update components/tooltip/index.en-US.md Co-authored-by: afc163 <afc163@gmail.com> * Update components/tooltip/index.zh-CN.md Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
399f073001
commit
09bb8ee80e
@ -14,9 +14,9 @@ A simple text popup tip.
|
|||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
| Property | Description | Type | Default |
|
| Property | Description | Type | Default |
|
||||||
| --- | --- | --- | --- |
|
| -------- | ----------------------------- | ---------------------------- | ------- |
|
||||||
| title | The text shown in the tooltip | ReactNode \| () => ReactNode | - |
|
| title | The text shown in the tooltip | ReactNode \| () => ReactNode | - |
|
||||||
|
|
||||||
### Common API
|
### 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 | |
|
| mouseLeaveDelay | Delay in seconds, before tooltip is hidden on mouse leave | number | 0.1 | |
|
||||||
| overlayClassName | Class name of the tooltip card | string | - | |
|
| overlayClassName | Class name of the tooltip card | string | - | |
|
||||||
| overlayStyle | Style of the tooltip card | object | - | |
|
| 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` | |
|
| 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` | |
|
| 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 | |
|
| visible | Whether the floating tooltip card is visible or not | boolean | false | |
|
||||||
|
@ -16,9 +16,9 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg
|
|||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 |
|
| 参数 | 说明 | 类型 | 默认值 |
|
||||||
| --- | --- | --- | --- |
|
| ----- | -------- | ---------------------------- | ------ |
|
||||||
| title | 提示文字 | ReactNode \| () => ReactNode | - |
|
| title | 提示文字 | ReactNode \| () => ReactNode | - |
|
||||||
|
|
||||||
### 共同的 API
|
### 共同的 API
|
||||||
|
|
||||||
@ -37,6 +37,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg
|
|||||||
| mouseLeaveDelay | 鼠标移出后延时多少才隐藏 Tooltip,单位:秒 | number | 0.1 | |
|
| mouseLeaveDelay | 鼠标移出后延时多少才隐藏 Tooltip,单位:秒 | number | 0.1 | |
|
||||||
| overlayClassName | 卡片类名 | string | - | |
|
| overlayClassName | 卡片类名 | string | - | |
|
||||||
| overlayStyle | 卡片样式 | object | - | |
|
| overlayStyle | 卡片样式 | object | - | |
|
||||||
|
| overlayInnerStyle | 卡片内容区域的样式对象 | object | - | |
|
||||||
| placement | 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | `top` | |
|
| placement | 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | `top` | |
|
||||||
| trigger | 触发行为,可选 `hover` \| `focus` \| `click` \| `contextMenu`,可使用数组设置多个触发行为 | string \| string\[] | `hover` | |
|
| trigger | 触发行为,可选 `hover` \| `focus` \| `click` \| `contextMenu`,可使用数组设置多个触发行为 | string \| string\[] | `hover` | |
|
||||||
| visible | 用于手动控制浮层显隐 | boolean | false | |
|
| visible | 用于手动控制浮层显隐 | boolean | false | |
|
||||||
|
Loading…
Reference in New Issue
Block a user