-
-
- ) : null}
+
+
+ {isDragActive || isDragAccept || isDragReject ? (
+
+ 把图片拖到这,然后松完成添加!
+
+ ) : (
+ <>
+ {files && files.length
+ ? files.map((file, key) => (
+
+ {file.state === 'invalid' || file.state === 'error' ? (
+
+
+ 重新上传
+
+ ) : file.state === 'uploading' ? (
+ <>
+
+
+
+
+ >
+ ) : (
+ <>
+
+
+
+
+
+ {file.info ? (
+ [
+
+ {file.info.width} x {file.info.height}
+
,
+ file.info.len ? (
+
+ {ImageControl.formatFileSize(
+ file.info.len
+ )}
+
+ ) : null
+ ]
+ ) : (
+
...
+ )}
+
+ {!disabled ? (
+
+
+
+ ) : null}
+ {!!crop && !disabled ? (
+
+
+
+ ) : null}
+ {!disabled ? (
+
+
+
+ ) : null}
+
+ >
+ )}
+
+ ))
+ : null}
+
+ {(multiple && (!maxLength || files.length < maxLength)) ||
+ (!multiple && !files.length) ? (
+
+ ) : null}
+
+ {isFocused ? (
+
+ 当前状态支持从剪切板中粘贴图片文件。
+
+ ) : null}
+
+ {!autoUpload && !hideUploadButton && files.length ? (
+
+ ) : null}
+
+ {error ?
{error}
: null}
+ >
+ )}
+
+ )}