mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
button should inside children
This commit is contained in:
parent
24b81829a1
commit
1e7cf6d364
@ -25,7 +25,9 @@ var props = {
|
||||
|
||||
React.render(
|
||||
<Upload {...props}>
|
||||
<i className="anticon anticon-upload"></i> 点击上传
|
||||
<button className="ant-btn ant-btn-ghost">
|
||||
<i className="anticon anticon-upload"></i> 点击上传
|
||||
</button>
|
||||
</Upload>,
|
||||
document.getElementById('components-upload-demo-basic')
|
||||
);
|
||||
|
@ -96,9 +96,7 @@ let AntUpload = React.createClass({
|
||||
return (
|
||||
<div className={prefixCls + ' ' + prefixCls + '-select'}>
|
||||
<Upload {...props}>
|
||||
<button className='ant-btn ant-btn-ghost'>
|
||||
{this.props.children}
|
||||
</button>
|
||||
{this.props.children}
|
||||
</Upload>
|
||||
<UploadList items={this.state.downloadList} />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user