fix: 文件上传错误时显示

This commit is contained in:
wuduoyi 2021-04-25 15:31:23 +08:00
parent 019ca97614
commit c7496cb1bb

View File

@ -1213,7 +1213,12 @@ export default class FileControl extends React.Component<FileProps, FileState> {
{file.state === 'invalid' ||
file.state === 'error' ? (
<Icon icon="fail" className="icon" />
<>
<Icon icon="fail" className="icon" />
<span className="text-danger">
{(file as FileValue).error || null}
</span>
</>
) : null}
{file.state !== 'uploading' && !disabled ? (
<a