assui 3.0.33 → 3.0.34
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,6 +178,7 @@ import Image from "antd/es/image";
|
|
|
178
178
|
import classNames from 'classnames';
|
|
179
179
|
import useUpdateEffect from "ahooks/es/useUpdateEffect";
|
|
180
180
|
import CloseOutlined from "a-icons/es/CloseOutlined";
|
|
181
|
+
import heic2Jpeg from "aa-utils/es/heic2Jpeg";
|
|
181
182
|
import isObject from 'lodash/isObject';
|
|
182
183
|
var getLocalImgURL = function getLocalImgURL(file) {
|
|
183
184
|
var URL = window.URL || window.webkitURL;
|
|
@@ -210,12 +211,14 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
210
211
|
uploadPercent = _c[0],
|
|
211
212
|
setUploadPercent = _c[1];
|
|
212
213
|
useUpdateEffect(function () {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
214
|
+
heic2Jpeg(value).then(function (resultUrl) {
|
|
215
|
+
setFileUrl(resultUrl);
|
|
216
|
+
if (value) {
|
|
217
|
+
setUploadStatus('done');
|
|
218
|
+
} else {
|
|
219
|
+
setUploadStatus('init');
|
|
220
|
+
}
|
|
221
|
+
});
|
|
219
222
|
}, [value]);
|
|
220
223
|
var onBeforeUpload = function onBeforeUpload() {
|
|
221
224
|
var rest = [];
|
|
@@ -221,6 +221,7 @@ var image_1 = __importDefault(require("antd/lib/image"));
|
|
|
221
221
|
var classnames_1 = __importDefault(require("classnames"));
|
|
222
222
|
var useUpdateEffect_1 = __importDefault(require("ahooks/lib/useUpdateEffect"));
|
|
223
223
|
var CloseOutlined_1 = __importDefault(require("a-icons/lib/CloseOutlined"));
|
|
224
|
+
var heic2Jpeg_1 = __importDefault(require("aa-utils/lib/heic2Jpeg"));
|
|
224
225
|
var isObject_1 = __importDefault(require("lodash/isObject"));
|
|
225
226
|
var getLocalImgURL = function getLocalImgURL(file) {
|
|
226
227
|
var URL = window.URL || window.webkitURL;
|
|
@@ -253,12 +254,14 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
253
254
|
uploadPercent = _c[0],
|
|
254
255
|
setUploadPercent = _c[1];
|
|
255
256
|
(0, useUpdateEffect_1["default"])(function () {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
257
|
+
(0, heic2Jpeg_1["default"])(value).then(function (resultUrl) {
|
|
258
|
+
setFileUrl(resultUrl);
|
|
259
|
+
if (value) {
|
|
260
|
+
setUploadStatus('done');
|
|
261
|
+
} else {
|
|
262
|
+
setUploadStatus('init');
|
|
263
|
+
}
|
|
264
|
+
});
|
|
262
265
|
}, [value]);
|
|
263
266
|
var onBeforeUpload = function onBeforeUpload() {
|
|
264
267
|
var rest = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.34",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/react-color": "^3.0.6",
|
|
37
37
|
"@types/react-resizable": "^3.0.0",
|
|
38
38
|
"a-icons": "^1.1.13",
|
|
39
|
-
"aa-utils": "^2.1.
|
|
39
|
+
"aa-utils": "^2.1.13",
|
|
40
40
|
"ahooks": "^3.0.8",
|
|
41
41
|
"bignumber.js": "^9.0.1",
|
|
42
42
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "eba2614cfd203779036b489b6c4c93dbc047989a"
|
|
84
84
|
}
|