@@ -186,7 +191,7 @@ class List extends Component {
}
getImageList(file) {
- const { extraRender } = this.props;
+ const { extraRender, progressProps } = this.props;
const { prefixCls, downloadURL, imgURL, size, itemCls, alt } = this.getInfo(file);
@@ -219,7 +224,7 @@ class List extends Component {
{extraRender(file)}
{file.state === 'uploading' ?
: null}
{file.state === 'error' && file.errorMsg ?
{file.errorMsg}
@@ -229,7 +234,7 @@ class List extends Component {
}
getPictureCardList(file) {
- const { locale } = this.props;
+ const { locale, progressProps } = this.props;
const { prefixCls, downloadURL, imgURL, itemCls, alt } = this.getInfo(file);
@@ -268,7 +273,7 @@ class List extends Component {
{file.state === 'uploading' ?
: null
}
{file.state !== 'uploading' ? (
diff --git a/src/upload/upload.jsx b/src/upload/upload.jsx
index 9f1d8d34b9..1549451305 100644
--- a/src/upload/upload.jsx
+++ b/src/upload/upload.jsx
@@ -144,6 +144,10 @@ class Upload extends Base {
* @return {Object} object with abort method
*/
request: PropTypes.func,
+ /**
+ * 透传给Progress props
+ */
+ progressProps: PropTypes.object,
};
static defaultProps = {
@@ -441,6 +445,7 @@ class Upload extends Base {
onPreview,
list,
extraRender,
+ progressProps,
...others} = this.props;
const cls = classNames({
@@ -492,7 +497,7 @@ class Upload extends Base {
{listType || list ?
:
null}