assui 3.0.35 → 3.0.36
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.
|
@@ -177,7 +177,6 @@ import Progress from "antd/es/progress";
|
|
|
177
177
|
import Image from "antd/es/image";
|
|
178
178
|
import Spin from "antd/es/spin";
|
|
179
179
|
import classNames from 'classnames';
|
|
180
|
-
import useUpdateEffect from "ahooks/es/useUpdateEffect";
|
|
181
180
|
import CloseOutlined from "a-icons/es/CloseOutlined";
|
|
182
181
|
import heic2Jpeg from "aa-utils/es/heic2Jpeg";
|
|
183
182
|
import isObject from 'lodash/isObject';
|
|
@@ -214,7 +213,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
214
213
|
var _d = __read(React.useState(false), 2),
|
|
215
214
|
imageLoading = _d[0],
|
|
216
215
|
setImageLoading = _d[1];
|
|
217
|
-
|
|
216
|
+
React.useEffect(function () {
|
|
218
217
|
setFileUrl(value);
|
|
219
218
|
setImageLoading(true);
|
|
220
219
|
heic2Jpeg(value).then(function (resultUrl) {
|
|
@@ -220,7 +220,6 @@ var progress_1 = __importDefault(require("antd/lib/progress"));
|
|
|
220
220
|
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
|
-
var useUpdateEffect_1 = __importDefault(require("ahooks/lib/useUpdateEffect"));
|
|
224
223
|
var CloseOutlined_1 = __importDefault(require("a-icons/lib/CloseOutlined"));
|
|
225
224
|
var heic2Jpeg_1 = __importDefault(require("aa-utils/lib/heic2Jpeg"));
|
|
226
225
|
var isObject_1 = __importDefault(require("lodash/isObject"));
|
|
@@ -257,7 +256,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
257
256
|
var _d = __read(React.useState(false), 2),
|
|
258
257
|
imageLoading = _d[0],
|
|
259
258
|
setImageLoading = _d[1];
|
|
260
|
-
(
|
|
259
|
+
React.useEffect(function () {
|
|
261
260
|
setFileUrl(value);
|
|
262
261
|
setImageLoading(true);
|
|
263
262
|
(0, heic2Jpeg_1["default"])(value).then(function (resultUrl) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.36",
|
|
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": "58c0144b1fef1d4ab9c62d58d75eedc3a458aae1"
|
|
84
84
|
}
|