fix: should pass style to upload correctly, close: #3072

This commit is contained in:
Benjy Cui 2016-09-20 15:11:30 +08:00
parent e9d65904a1
commit f04b65b25e
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ export default class Upload extends React.Component<UploadProps, any> {
onDragOver={this.onFileDrop}
onDragLeave={this.onFileDrop}
>
<RcUpload {...props} ref="upload">
<RcUpload {...props} ref="upload" className={`${prefixCls}-btn`}>
<div className={`${prefixCls}-drag-container`}>
{this.props.children}
</div>

View File

@ -68,7 +68,7 @@
"rc-tooltip": "~3.4.2",
"rc-tree": "~1.3.6",
"rc-tree-select": "~1.8.0",
"rc-upload": "~2.0.3",
"rc-upload": "~2.1.0",
"rc-util": "^3.3.0",
"react-addons-pure-render-mixin": "^15.0.0",
"react-slick": "~0.14.2",