Skip to content

Commit 34c880f

Browse files
committed
feat: tooltip add align #252
1 parent e450e92 commit 34c880f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

components/tooltip/abstractTooltipProps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ export default () => ({
1717
getPopupContainer: PropTypes.func,
1818
arrowPointAtCenter: PropTypes.bool.def(false),
1919
autoAdjustOverflow: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]).def(true),
20+
align: PropTypes.object.def({}),
2021
})

components/tooltip/index.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The following APIs are shared by Tooltip, Popconfirm, Popover.
2121
| 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` |
2222
| trigger | Tooltip trigger mode | `hover` \| `focus` \| `click` \| `contextmenu` | `hover` |
2323
| visible(v-model) | Whether the floating tooltip card is visible or not | boolean | `false` |
24+
| align | this value will be merged into placement's config, please refer to the settings [dom-align](https://github.com/yiminghe/dom-align) | Object | - |
2425

2526
### events
2627
| Events Name | Description | Arguments |

components/tooltip/index.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
| placement | 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | top |
2222
| trigger | 触发行为,可选 `hover/focus/click/contextmenu` | string | hover |
2323
| visible(v-model) | 用于手动控制浮层显隐 | boolean | false |
24+
| align | 该值将合并到 placement 的配置中,设置参考 [dom-align](https://github.com/yiminghe/dom-align) | Object ||
2425

2526
### 事件
2627
| 事件名称 | 说明 | 回调参数 |

0 commit comments

Comments
 (0)