diff --git a/components/upload/demo/multiple.md b/components/upload/demo/multiple.md index 1c03d314cb..60af122c6c 100644 --- a/components/upload/demo/multiple.md +++ b/components/upload/demo/multiple.md @@ -17,6 +17,11 @@ var props = { if (info.file.status !== 'uploading') { console.log(info.file, info.fileList); } + if (info.file.status === 'done') { + message.success(info.file.name + ' 上传成功。'); + } else if (info.file.error) { + message.error(info.file.name + ' 上传失败。'); + } } };