assui 3.0.41 → 3.0.42
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.
|
@@ -178,7 +178,6 @@ import Image from "antd/es/image";
|
|
|
178
178
|
import Spin from "antd/es/spin";
|
|
179
179
|
import classNames from 'classnames';
|
|
180
180
|
import CloseOutlined from "a-icons/es/CloseOutlined";
|
|
181
|
-
import heic2Jpeg from "aa-utils/es/heic2Jpeg";
|
|
182
181
|
import isObject from 'lodash/isObject';
|
|
183
182
|
var getLocalImgURL = function getLocalImgURL(file) {
|
|
184
183
|
var URL = window.URL || window.webkitURL;
|
|
@@ -218,6 +217,8 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
218
217
|
if (value) {
|
|
219
218
|
setImageLoading(true);
|
|
220
219
|
setUploadStatus('done');
|
|
220
|
+
// eslint-disable-next-line global-require
|
|
221
|
+
var heic2Jpeg = require('aa-utils/lib/heic2Jpeg');
|
|
221
222
|
heic2Jpeg(value).then(function (resultUrl) {
|
|
222
223
|
setFileUrl(resultUrl);
|
|
223
224
|
setImageLoading(false);
|
|
@@ -221,7 +221,6 @@ var image_1 = __importDefault(require("antd/lib/image"));
|
|
|
221
221
|
var spin_1 = __importDefault(require("antd/lib/spin"));
|
|
222
222
|
var classnames_1 = __importDefault(require("classnames"));
|
|
223
223
|
var CloseOutlined_1 = __importDefault(require("a-icons/lib/CloseOutlined"));
|
|
224
|
-
var heic2Jpeg_1 = __importDefault(require("aa-utils/lib/heic2Jpeg"));
|
|
225
224
|
var isObject_1 = __importDefault(require("lodash/isObject"));
|
|
226
225
|
var getLocalImgURL = function getLocalImgURL(file) {
|
|
227
226
|
var URL = window.URL || window.webkitURL;
|
|
@@ -261,7 +260,9 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
261
260
|
if (value) {
|
|
262
261
|
setImageLoading(true);
|
|
263
262
|
setUploadStatus('done');
|
|
264
|
-
|
|
263
|
+
// eslint-disable-next-line global-require
|
|
264
|
+
var heic2Jpeg = require('aa-utils/lib/heic2Jpeg');
|
|
265
|
+
heic2Jpeg(value).then(function (resultUrl) {
|
|
265
266
|
setFileUrl(resultUrl);
|
|
266
267
|
setImageLoading(false);
|
|
267
268
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.42",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "859311df4547351b3ed8a520bf275d99d062f916"
|
|
84
84
|
}
|