From 6cecc9a0ea68acb25a82ab4d1862de59166ef7ee Mon Sep 17 00:00:00 2001 From: Ilan Hasanov Date: Sat, 28 Jul 2018 17:50:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20fixing=20upload=20component=20ty?= =?UTF-8?q?pos=20and=20capitalization=20consistency=20for=20en-US?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/upload/demo/fileList.md | 8 ++++---- components/upload/demo/picture-style.md | 5 ++--- components/upload/index.en-US.md | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/components/upload/demo/fileList.md b/components/upload/demo/fileList.md index 6dee6259dd..b3c1c96732 100644 --- a/components/upload/demo/fileList.md +++ b/components/upload/demo/fileList.md @@ -42,10 +42,10 @@ class MyUpload extends React.Component { let fileList = info.fileList; // 1. Limit the number of uploaded files - // Only to show two recent uploaded files, and old ones will be replaced by the new + // Only to show two recent uploaded files, and old ones will be replaced by the new fileList = fileList.slice(-2); - // 2. read from response and show file link + // 2. Read from response and show file link fileList = fileList.map((file) => { if (file.response) { // Component will show file.url as link @@ -54,7 +54,7 @@ class MyUpload extends React.Component { return file; }); - // 3. filter successfully uploaded files according to response from server + // 3. Filter successfully uploaded files according to response from server fileList = fileList.filter((file) => { if (file.response) { return file.response.status === 'success'; @@ -74,7 +74,7 @@ class MyUpload extends React.Component { return ( ); diff --git a/components/upload/demo/picture-style.md b/components/upload/demo/picture-style.md index ac28dda202..a83576c904 100644 --- a/components/upload/demo/picture-style.md +++ b/components/upload/demo/picture-style.md @@ -13,7 +13,6 @@ title: If uploaded file is a picture, the thumbnail can be shown. `IE8/9` do not support local thumbnail show. Please use `thumbUrl` instead. - ````jsx import { Upload, Button, Icon } from 'antd'; @@ -48,14 +47,14 @@ ReactDOM.render(


, diff --git a/components/upload/index.en-US.md b/components/upload/index.en-US.md index 0f6b41b91f..51a50ea164 100644 --- a/components/upload/index.en-US.md +++ b/components/upload/index.en-US.md @@ -42,7 +42,7 @@ Uploading is the process of publishing information (web pages, text, pictures, v ### onChange -> The function will be called when uploading is in progress, completed or failed +> The function will be called when uploading is in progress, completed or failed When uploading state change, it returns: