@zgfe/modules-dm 1.0.56-zhongyuan.20 → 1.0.56-zhongyuan.22

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.
@@ -69,6 +69,9 @@ var RightDetail = function RightDetail(props) {
69
69
  _useState12 = _slicedToArray(_useState11, 2),
70
70
  isEdit = _useState12[0],
71
71
  setIsEdit = _useState12[1];
72
+ useEffect(function () {
73
+ setIsEdit(false);
74
+ }, [currentTreeData]);
72
75
  var beforeUpload = /*#__PURE__*/function () {
73
76
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
74
77
  var isJpgOrPng, isLt10M;
@@ -99,7 +102,10 @@ var RightDetail = function RightDetail(props) {
99
102
  };
100
103
  }();
101
104
  var handleChange = function handleChange(info) {
102
- setImageUrl(info.fileList);
105
+ var _info$fileList;
106
+ info.fileList && setImageUrl([_objectSpread(_objectSpread({}, (_info$fileList = info.fileList) === null || _info$fileList === void 0 ? void 0 : _info$fileList[0]), {}, {
107
+ status: 'done'
108
+ })]);
103
109
  if (info.file.status === 'uploading') {
104
110
  setLoading(true);
105
111
  return;
@@ -112,11 +118,8 @@ var RightDetail = function RightDetail(props) {
112
118
  }
113
119
  };
114
120
  var handleRemoveFile = function handleRemoveFile(file) {
115
- console.log(file, imageUrl, 'kk');
116
- var newArr = imageUrl === null || imageUrl === void 0 ? void 0 : imageUrl.filter(function (o) {
117
- return o.name != file.name;
118
- });
119
- setImageUrl(newArr);
121
+ // const newArr = imageUrl?.filter((o) => o.name != file.name);
122
+ setImageUrl([]);
120
123
  setImagePath('');
121
124
  };
122
125
  var uploadImg = function uploadImg(file) {
@@ -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.20",
3
+ "version": "1.0.56-zhongyuan.22",
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": "62fddc636e743e74038d53e3571fcb3564231d9f",
60
+ "gitHead": "9202d80b68f891c992848a8fe1dbb7d5827b47ae",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }