@zgfe/modules-dm 1.0.56-zhongyuan.21 → 1.0.56-zhongyuan.23
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.
|
@@ -102,20 +102,27 @@ var RightDetail = function RightDetail(props) {
|
|
|
102
102
|
};
|
|
103
103
|
}();
|
|
104
104
|
var handleChange = function handleChange(info) {
|
|
105
|
-
|
|
105
|
+
var _info$fileList;
|
|
106
|
+
if (info.file.status === 'removed') {
|
|
107
|
+
setImageUrl([]);
|
|
108
|
+
setImagePath('');
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
info.fileList && setImageUrl([_objectSpread(_objectSpread({}, (_info$fileList = info.fileList) === null || _info$fileList === void 0 ? void 0 : _info$fileList[0]), {}, {
|
|
112
|
+
status: 'done'
|
|
113
|
+
})]);
|
|
106
114
|
if (info.file.status === 'uploading') {
|
|
107
115
|
setLoading(true);
|
|
108
116
|
return;
|
|
109
117
|
}
|
|
110
|
-
if (info.file.status === 'done') {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
118
|
+
// if (info.file.status === 'done') {
|
|
119
|
+
// Get this url from response in real world.
|
|
120
|
+
getBase64(info.file.originFileObj, function (url) {
|
|
121
|
+
setLoading(false);
|
|
122
|
+
});
|
|
123
|
+
// }
|
|
116
124
|
};
|
|
117
125
|
var handleRemoveFile = function handleRemoveFile(file) {
|
|
118
|
-
console.log(file, imageUrl, 'kk');
|
|
119
126
|
// const newArr = imageUrl?.filter((o) => o.name != file.name);
|
|
120
127
|
setImageUrl([]);
|
|
121
128
|
setImagePath('');
|
|
@@ -39,7 +39,6 @@ var SelectAttr = function SelectAttr(_ref) {
|
|
|
39
39
|
}));
|
|
40
40
|
};
|
|
41
41
|
var handleSelectFlexValues = function handleSelectFlexValues(value) {
|
|
42
|
-
console.log(value, 'ss');
|
|
43
42
|
value[0] && setCurrentData(function (pre) {
|
|
44
43
|
return _objectSpread(_objectSpread({}, a), {}, {
|
|
45
44
|
values: value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.56-zhongyuan.
|
|
3
|
+
"version": "1.0.56-zhongyuan.23",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"umi-request": "^1.4.0",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "2d032212777acf8610651a5bb151075b36fec1cf",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|