rc-upload
Advanced tools
Comparing version 2.2.0 to 2.3.0
# History | ||
---- | ||
### 2.3.0 / 2016-12-12 | ||
- expose file list as argument to `beforeUpload` [!57](https://github.com/react-component/upload/pull/57) | ||
### 2.2.0 / 2016-10-13 | ||
@@ -5,0 +9,0 @@ |
@@ -98,6 +98,6 @@ 'use strict'; | ||
file.uid = (0, _uid2["default"])(); | ||
this.upload(file); | ||
this.upload(file, postFiles); | ||
} | ||
}, | ||
upload: function upload(file) { | ||
upload: function upload(file, fileList) { | ||
var _this = this; | ||
@@ -114,3 +114,3 @@ | ||
var before = props.beforeUpload(file); | ||
var before = props.beforeUpload(file, fileList); | ||
if (before && before.then) { | ||
@@ -195,11 +195,11 @@ before.then(function (processedFile) { | ||
var _props = this.props; | ||
var Tag = _props.component; | ||
var prefixCls = _props.prefixCls; | ||
var className = _props.className; | ||
var disabled = _props.disabled; | ||
var style = _props.style; | ||
var multiple = _props.multiple; | ||
var accept = _props.accept; | ||
var children = _props.children; | ||
var _props = this.props, | ||
Tag = _props.component, | ||
prefixCls = _props.prefixCls, | ||
className = _props.className, | ||
disabled = _props.disabled, | ||
style = _props.style, | ||
multiple = _props.multiple, | ||
accept = _props.accept, | ||
children = _props.children; | ||
@@ -206,0 +206,0 @@ var cls = (0, _classnames2["default"])((_classNames = {}, (0, _defineProperty3["default"])(_classNames, prefixCls, true), (0, _defineProperty3["default"])(_classNames, prefixCls + '-disabled', disabled), (0, _defineProperty3["default"])(_classNames, className, className), _classNames)); |
@@ -82,4 +82,4 @@ 'use strict'; | ||
} | ||
var props = this.props; | ||
var file = this.file; | ||
var props = this.props, | ||
file = this.file; | ||
@@ -243,9 +243,9 @@ var response = void 0; | ||
var _props = this.props; | ||
var Tag = _props.component; | ||
var disabled = _props.disabled; | ||
var className = _props.className; | ||
var prefixCls = _props.prefixCls; | ||
var children = _props.children; | ||
var style = _props.style; | ||
var _props = this.props, | ||
Tag = _props.component, | ||
disabled = _props.disabled, | ||
className = _props.className, | ||
prefixCls = _props.prefixCls, | ||
children = _props.children, | ||
style = _props.style; | ||
@@ -252,0 +252,0 @@ var iframeStyle = (0, _extends3["default"])({}, IFRAME_STYLE, { |
{ | ||
"name": "rc-upload", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
28103
1