rc-upload
Advanced tools
Comparing version 1.13.3 to 1.14.0
# History | ||
---- | ||
### 1.14.0 / 2016-06-14 | ||
### 1.14.0 / 2016-07-19 | ||
- https://github.com/react-component/upload/pull/41 | ||
- https://github.com/react-component/upload/pull/40 | ||
- add component/style prop | ||
@@ -9,0 +8,0 @@ ### 1.13.0 / 2016-06-02 |
@@ -25,2 +25,4 @@ 'use strict'; | ||
propTypes: { | ||
component: _react.PropTypes.string, | ||
style: _react.PropTypes.object, | ||
prefixCls: _react.PropTypes.string, | ||
@@ -169,4 +171,5 @@ multiple: _react.PropTypes.bool, | ||
var props = this.props; | ||
var Tag = this.props.component; | ||
return _react2['default'].createElement( | ||
'span', | ||
Tag, | ||
{ | ||
@@ -179,2 +182,3 @@ onClick: this.onClick, | ||
tabIndex: '0', | ||
style: this.props.style, | ||
className: this.state.disabled ? this.props.prefixCls + ' ' + props.prefixCls + '-disabled' : '' + this.props.prefixCls | ||
@@ -181,0 +185,0 @@ }, |
@@ -40,2 +40,4 @@ 'use strict'; | ||
propTypes: { | ||
component: _react.PropTypes.string, | ||
style: _react.PropTypes.object, | ||
prefixCls: _react.PropTypes.string, | ||
@@ -204,7 +206,8 @@ onStart: _react.PropTypes.func, | ||
}); | ||
var Tag = this.props.component; | ||
return _react2['default'].createElement( | ||
'span', | ||
Tag, | ||
{ | ||
className: this.state.disabled ? this.props.prefixCls + ' ' + this.props.prefixCls + '-disabled' : '' + this.props.prefixCls, | ||
style: { position: 'relative', zIndex: 0 } | ||
style: _extends({ position: 'relative', zIndex: 0 }, this.props.style) | ||
}, | ||
@@ -211,0 +214,0 @@ _react2['default'].createElement('iframe', { |
@@ -27,2 +27,4 @@ 'use strict'; | ||
propTypes: { | ||
component: _react.PropTypes.string, | ||
style: _react.PropTypes.object, | ||
prefixCls: _react.PropTypes.string, | ||
@@ -48,2 +50,3 @@ action: _react.PropTypes.string, | ||
return { | ||
component: 'span', | ||
prefixCls: 'rc-upload', | ||
@@ -50,0 +53,0 @@ data: {}, |
{ | ||
"name": "rc-upload", | ||
"version": "1.13.3", | ||
"version": "1.14.0", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -57,2 +57,4 @@ # rc-upload | ||
|name | string | file| file param post to server | | ||
|style | object | {}| root component inline style | | ||
|component | "div"|"span" | "span"| wrap component name | | ||
|supportServerRender | boolean | false| whether to support server render | | ||
@@ -70,3 +72,3 @@ |onReady | function | | only call when supportServerRender is true, upload is rendered completely | | ||
|beforeUpload| function |null| before upload check, return false or a rejected Promise will stop upload, only for modern browsers| | ||
| withCredentials | boolean | false | ajax upload with cookie send | | ||
|withCredentials | boolean | false | ajax upload with cookie send | | ||
@@ -73,0 +75,0 @@ #### onError arguments |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23486
539
106