change trigger element

This commit is contained in:
afc163 2015-06-26 10:22:08 +08:00
parent 1fea96ac42
commit 42c5942b9f
2 changed files with 6 additions and 6 deletions

View File

@ -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'));
````

View File

@ -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>