Browse Source

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

pull/3074/head
Benjy Cui 8 years ago
parent
commit
f04b65b25e
  1. 2
      components/upload/index.tsx
  2. 2
      package.json

2
components/upload/index.tsx

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

2
package.json

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

Loading…
Cancel
Save