Browse Source

update upload demos

pull/3033/head
afc163 8 years ago
parent
commit
697b6c7b19
  1. 4
      components/upload/demo/picture-card.md
  2. 1
      components/upload/demo/picture-style.md
  3. 7
      components/upload/index.en-US.md

4
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({
<div className="clearfix">
<Upload {...props}>
<Icon type="plus" />
<div className="ant-upload-text">upload pictures</div>
<div className="ant-upload-text">Upload</div>
</Upload>
<a href="https://os.alipayobjects.com/rmsportal/NDbkJhpzmLxtPhB.png" target="_blank" rel="noopener noreferrer" className="upload-example">
<img alt="example" src="https://os.alipayobjects.com/rmsportal/NDbkJhpzmLxtPhB.png" />

1
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';

7
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

Loading…
Cancel
Save