button should inside children

pull/162/head
afc163 10 years ago
parent 24b81829a1
commit 1e7cf6d364

@ -25,7 +25,9 @@ var props = {
React.render( React.render(
<Upload {...props}> <Upload {...props}>
<button className="ant-btn ant-btn-ghost">
<i className="anticon anticon-upload"></i> 点击上传 <i className="anticon anticon-upload"></i> 点击上传
</button>
</Upload>, </Upload>,
document.getElementById('components-upload-demo-basic') document.getElementById('components-upload-demo-basic')
); );

@ -96,9 +96,7 @@ let AntUpload = React.createClass({
return ( return (
<div className={prefixCls + ' ' + prefixCls + '-select'}> <div className={prefixCls + ' ' + prefixCls + '-select'}>
<Upload {...props}> <Upload {...props}>
<button className='ant-btn ant-btn-ghost'>
{this.props.children} {this.props.children}
</button>
</Upload> </Upload>
<UploadList items={this.state.downloadList} /> <UploadList items={this.state.downloadList} />
</div> </div>

Loading…
Cancel
Save