diff --git a/components/upload/demo/picture-card.md b/components/upload/demo/picture-card.md index 6e810e88e4..b9e82dce81 100644 --- a/components/upload/demo/picture-card.md +++ b/components/upload/demo/picture-card.md @@ -1,6 +1,6 @@ --- order: 8 -title: +title: zh-CN: 图片卡片样式 en-US: Pictures with card tyle --- @@ -50,7 +50,7 @@ const ImageUploadList = React.createClass({
-
upload pictures
+
Upload
example diff --git a/components/upload/demo/picture-style.md b/components/upload/demo/picture-style.md index d3d8b1fe7e..178db4ed8a 100644 --- a/components/upload/demo/picture-style.md +++ b/components/upload/demo/picture-style.md @@ -14,7 +14,6 @@ title: If uploade file is picture, a thumbnail can be shown. `IE8/9` do not support local thumbnail show. Please use `thumbUrl` instead. - ````jsx import { Upload, Button, Icon } from 'antd'; diff --git a/components/upload/index.en-US.md b/components/upload/index.en-US.md index 4ce8895bff..c449f11f39 100644 --- a/components/upload/index.en-US.md +++ b/components/upload/index.en-US.md @@ -4,7 +4,7 @@ type: Form Controls english: Upload --- -Upload file by selecting or dragging +Upload file by selecting or dragging. ## When To Use @@ -14,7 +14,6 @@ Uploading is the process of publishing information (web pages, text, pictures, v - When you need to show the process of uploading. - When you need to upload files by dragging and dropping. - ## API | Property | Description | Type | Default| @@ -53,13 +52,13 @@ When uploading state change, it returns: ```js { - uid: 'uid', // unique identifier,negative is recommend,to prevent interference with internal generated id + uid: 'uid', // unique identifier,negative is recommend,to prevent interference with internal generated id name: 'xx.png' // file name status: 'done', // options:uploading, done, error, removed response: '{"status": "success"}', // response from server } ``` - + > Before `antd@1.9.0`, this parameter will be Array Object `[file, ...]` in multiple mode, while in `antd@1.9.0+`, it will always be an Object. 2. `fileList` current list of files