@qlibs/utils 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils/image.js +5 -0
- package/package.json +1 -1
package/dist/utils/image.js
CHANGED
@@ -107,8 +107,13 @@ async function fileListToBase64(fileList) {
|
|
107
107
|
}
|
108
108
|
function getFile(newFile) {
|
109
109
|
if (isImage(newFile) && newFile.originFileObj) {
|
110
|
+
console.info('getFile - return (newFile as any).originFileObj');
|
110
111
|
return newFile.originFileObj;
|
111
112
|
}
|
113
|
+
else if (isImage) {
|
114
|
+
console.info('getFile - return newFile');
|
115
|
+
return newFile;
|
116
|
+
}
|
112
117
|
else {
|
113
118
|
return null;
|
114
119
|
}
|