From a985c158721cb6b969392bc010d6626376f94f73 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Mon, 12 Dec 2016 12:08:15 +0800 Subject: [PATCH] deps: upgrade rc-upload --- components/upload/index.en-US.md | 2 +- components/upload/index.zh-CN.md | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/upload/index.en-US.md b/components/upload/index.en-US.md index 2a0657df2372..b3067e347b89 100644 --- a/components/upload/index.en-US.md +++ b/components/upload/index.en-US.md @@ -29,7 +29,7 @@ Uploading is the process of publishing information (web pages, text, pictures, v | showUploadList | Whether to show uploadList. | Boolean | true | | multiple | Whether to support selected multiple file. `IE10+` supported. You can select multiple files with CTRL holding down while multiple is set to be true | Boolean | false | | accept | File types that can be accepted. See [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) | String | - | -| beforeUpload | Hook function which takes an argument: the uploaded file, will be executed before uploading. Uploading will be stopped with `false` or a rejected Promise returned. **Warning:this function is not supported by old IE**。 | Function | - | +| beforeUpload | Hook function which will be executed before uploading. Uploading will be stopped with `false` or a rejected Promise returned. **Warning:this function is not supported by old IE**。 | (file, fileList) => `boolean | Promise` | - | | customRequest | override for the default xhr behavior allowing for additional customization and ability to implement your own XMLHttpRequest | Function | - | | onChange | A callback function, can be executed when uploading state is changing. See [onChange](#onChange) | Function | - | | listType | Built-in stylesheets, support for two types: `text` or `picture` | String | 'text'| diff --git a/components/upload/index.zh-CN.md b/components/upload/index.zh-CN.md index e53513b4a3fd..53041e1115ce 100644 --- a/components/upload/index.zh-CN.md +++ b/components/upload/index.zh-CN.md @@ -30,7 +30,7 @@ title: Upload | showUploadList | 是否展示 uploadList, 默认开启 | Boolean | true | | multiple | 是否支持多选文件,`ie10+` 支持。开启后按住 ctrl 可选择多个文件。 | Boolean | false | | accept | 接受上传的文件类型, 详见 [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) | String | 无 | -| beforeUpload | 上传文件之前的钩子,参数为上传的文件,若返回 `false` 或者 Promise 则停止上传。**注意:该方法不支持老 IE**。 | Function | 无 | +| beforeUpload | 上传文件之前的钩子,参数为上传的文件,若返回 `false` 或者 Promise 则停止上传。**注意:该方法不支持老 IE**。 | (file, fileList) => `boolean | Promise` | 无 | | customRequest | 通过覆盖默认的上传行为,可以自定义自己的上传实现 | Function | 无 | | onChange | 上传文件改变时的状态,详见 onChange | Function | 无 | | listType | 上传列表的内建样式,支持两种基本样式 `text` or `picture` | String | 'text'| diff --git a/package.json b/package.json index f93ea425ce8c..0670ad5982ef 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "rc-tooltip": "~3.4.2", "rc-tree": "~1.4.0", "rc-tree-select": "~1.8.0", - "rc-upload": "~2.2.0", + "rc-upload": "~2.3.0", "rc-util": "^4.0.1", "react-lazy-load": "^3.0.10", "react-slick": "~0.14.2",