mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
change trigger element
This commit is contained in:
parent
1fea96ac42
commit
42c5942b9f
@ -15,7 +15,7 @@ function confirm() {
|
||||
|
||||
React.render(
|
||||
<Popconfirm title="确定要删除这个任务吗?" onConfirm={confirm}>
|
||||
<button className="ant-btn ant-btn-primary">删 除</button>
|
||||
<a href="javascript:;">删除</a>
|
||||
</Popconfirm>
|
||||
, document.getElementById('components-popconfirm-demo-basic'));
|
||||
````
|
||||
|
@ -16,22 +16,22 @@ function confirm() {
|
||||
|
||||
React.render(<div>
|
||||
<Popconfirm placement="left" title={text} onConfirm={confirm}>
|
||||
<button className="ant-btn">左</button>
|
||||
<a href="javascript:;">左边</a>
|
||||
</Popconfirm>
|
||||
<Popconfirm placement="right" title={text} onConfirm={confirm}>
|
||||
<button className="ant-btn">右</button>
|
||||
<a href="javascript:;">右边</a>
|
||||
</Popconfirm>
|
||||
<Popconfirm placement="top" title={text} onConfirm={confirm}>
|
||||
<button className="ant-btn">上</button>
|
||||
<a href="javascript:;">上边</a>
|
||||
</Popconfirm>
|
||||
<Popconfirm placement="bottom" title={text} onConfirm={confirm}>
|
||||
<button className="ant-btn">下</button>
|
||||
<a href="javascript:;">下边</a>
|
||||
</Popconfirm>
|
||||
</div>, document.getElementById('components-popconfirm-demo-placement'));
|
||||
````
|
||||
|
||||
<style>
|
||||
.code-box-demo .ant-popover-wrap > .ant-btn {
|
||||
.code-box-demo .ant-popover-wrap > a {
|
||||
margin-right: 1em;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user