mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-11 10:05:07 +08:00
customize upload button children by user
This commit is contained in:
parent
3cdaea4452
commit
f9b7482b91
@ -24,7 +24,9 @@ var props = {
|
||||
};
|
||||
|
||||
React.render(
|
||||
<Upload {...props} />,
|
||||
<Upload {...props}>
|
||||
<i className="anticon anticon-upload"></i> 点击上传
|
||||
</Upload>,
|
||||
document.getElementById('components-upload-demo-basic')
|
||||
);
|
||||
````
|
||||
|
@ -97,7 +97,7 @@ let AntUpload = React.createClass({
|
||||
<div className={prefixCls + ' ' + prefixCls + '-select'}>
|
||||
<Upload {...props}>
|
||||
<button className='ant-btn ant-btn-ghost'>
|
||||
<i className='anticon anticon-upload'></i> 点击上传
|
||||
{this.props.children}
|
||||
</button>
|
||||
</Upload>
|
||||
<UploadList items={this.state.downloadList} />
|
||||
|
Loading…
Reference in New Issue
Block a user