UNPKG

cjd-parkball

Version:

> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用

36 lines (28 loc) 743 B
--- category: 2 title: 箭头指向 title_en: Arrow pointing at the center --- zh-CN 设置了 `arrowPointAtCenter` 后,箭头将指向目标元素的中心。 en-US By specifying `arrowPointAtCenter` prop, the arrow will point to the center of the target element. ````jsx import { Tooltip, Button } from 'parkball'; ReactDOM.render( <div> <Tooltip placement="topLeft" title="Prompt Text"> <Button>Align edge / 边缘对齐</Button> </Tooltip> <Tooltip placement="topLeft" title="Prompt Text" arrowPointAtCenter> <Button>Arrow points to center / 箭头指向中心</Button> </Tooltip> </div>, mountNode); ```` <style> .code-box-demo .ant-btn { margin-right: 1em; margin-bottom: 1em; } </style>