mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
fix: 文件上传错误时显示
This commit is contained in:
parent
019ca97614
commit
c7496cb1bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user