From fa9316f78c7a00b70d01a1ba0f6f7a85ac7f78ea Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 7 Aug 2020 17:31:00 +0800 Subject: [PATCH] docs: info about Upload file.status --- components/upload/index.en-US.md | 2 +- components/upload/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/upload/index.en-US.md b/components/upload/index.en-US.md index e96f0cb891..2b3c9edca8 100644 --- a/components/upload/index.en-US.md +++ b/components/upload/index.en-US.md @@ -66,7 +66,7 @@ When uploading state change, it returns: { 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 + status: 'done', // options:uploading, done, error, removed. Intercepted file by beforeUpload don't have status field. response: '{"status": "success"}', // response from server linkProps: '{"download": "image"}', // additional html props of file link xhr: 'XMLHttpRequest{ ... }', // XMLHttpRequest Header diff --git a/components/upload/index.zh-CN.md b/components/upload/index.zh-CN.md index 77277c6d1a..fee0d2e9e7 100644 --- a/components/upload/index.zh-CN.md +++ b/components/upload/index.zh-CN.md @@ -67,7 +67,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/QaeBt_ZMg/Upload.svg { uid: 'uid', // 文件唯一标识,建议设置为负数,防止和内部产生的 id 冲突 name: 'xx.png' // 文件名 - status: 'done', // 状态有:uploading done error removed + status: 'done', // 状态有:uploading done error removed,被 beforeUpload 拦截的文件没有 status 属性 response: '{"status": "success"}', // 服务端响应内容 linkProps: '{"download": "image"}', // 下载链接额外的 HTML 属性 }