mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
modify popconfirm & popover & tooltip placement
This commit is contained in:
parent
cb2a711ee2
commit
7334a07025
@ -19,15 +19,15 @@ React.render(<div>
|
||||
<Popconfirm placement="left" title={text} onConfirm={confirm}>
|
||||
<a href="javascript:;">左边</a>
|
||||
</Popconfirm>
|
||||
<Popconfirm placement="right" title={text} onConfirm={confirm}>
|
||||
<a href="javascript:;">右边</a>
|
||||
</Popconfirm>
|
||||
<Popconfirm placement="top" title={text} onConfirm={confirm}>
|
||||
<a href="javascript:;">上边</a>
|
||||
</Popconfirm>
|
||||
<Popconfirm placement="bottom" title={text} onConfirm={confirm}>
|
||||
<a href="javascript:;">下边</a>
|
||||
</Popconfirm>
|
||||
<Popconfirm placement="right" title={text} onConfirm={confirm}>
|
||||
<a href="javascript:;">右边</a>
|
||||
</Popconfirm>
|
||||
</div>, document.getElementById('components-popconfirm-demo-placement'));
|
||||
````
|
||||
|
||||
|
@ -18,15 +18,15 @@ React.render(<div>
|
||||
<Popover placement="left" title={text} overlay={content}>
|
||||
<button className="ant-btn">左</button>
|
||||
</Popover>
|
||||
<Popover placement="right" title={text} overlay={content}>
|
||||
<button className="ant-btn">右</button>
|
||||
</Popover>
|
||||
<Popover placement="top" title={text} overlay={content}>
|
||||
<button className="ant-btn">上</button>
|
||||
</Popover>
|
||||
<Popover placement="bottom" title={text} overlay={content}>
|
||||
<button className="ant-btn">下</button>
|
||||
</Popover>
|
||||
<Popover placement="right" title={text} overlay={content}>
|
||||
<button className="ant-btn">右</button>
|
||||
</Popover>
|
||||
</div>, document.getElementById('components-popover-demo-placement'));
|
||||
````
|
||||
|
||||
|
@ -15,15 +15,15 @@ React.render(
|
||||
<Tooltip placement="left" title={text}>
|
||||
<a href="#">左边左边</a>
|
||||
</Tooltip>
|
||||
<Tooltip placement="right" title={text}>
|
||||
<a href="#">右边右边</a>
|
||||
</Tooltip>
|
||||
<Tooltip placement="top" title={text}>
|
||||
<a href="#">上边上边</a>
|
||||
</Tooltip>
|
||||
<Tooltip placement="bottom" title={text}>
|
||||
<a href="#">下边下边</a>
|
||||
</Tooltip>
|
||||
<Tooltip placement="right" title={text}>
|
||||
<a href="#">右边右边</a>
|
||||
</Tooltip>
|
||||
</div>
|
||||
, document.getElementById('components-tooltip-demo-placement'));
|
||||
````
|
||||
|
Loading…
Reference in New Issue
Block a user