button should inside children

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

@ -25,7 +25,9 @@ var props = {
React.render(
<Upload {...props}>
<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>
</Upload>
<UploadList items={this.state.downloadList} />
</div>

Loading…
Cancel
Save