ronds-metadata 1.2.96 → 1.2.97
Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
37
37
|
/*
|
38
38
|
* @Author:wangxian
|
39
39
|
* @Date: 2021-09-18 14:15:04
|
40
|
-
* @LastEditTime: 2023-08-
|
40
|
+
* @LastEditTime: 2023-08-19 11:12:38
|
41
41
|
*/
|
42
42
|
import React from 'react';
|
43
43
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -294,21 +294,19 @@ function Index(props) {
|
|
294
294
|
}
|
295
295
|
return _context2.abrupt("return", res);
|
296
296
|
case 9:
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
setTreeData(_toConsumableArray(_enum));
|
297
|
+
// 目前是更具那么的id判断的,暂未考虑重名问题
|
298
|
+
if (initEnumValue[id]) {
|
299
|
+
_enum = deepClone(initEnumValue[id]);
|
300
|
+
if (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$http6 = extraInfo.http) === null || _extraInfo$http6 === void 0 ? void 0 : _extraInfo$http6.isCascader) {
|
301
|
+
setCascaderOption(_toConsumableArray(_enum));
|
302
|
+
}
|
303
|
+
if (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$http7 = extraInfo.http) === null || _extraInfo$http7 === void 0 ? void 0 : _extraInfo$http7.isTreeSelect) {
|
304
|
+
setTreeData(_toConsumableArray(_enum));
|
305
|
+
}
|
307
306
|
}
|
308
|
-
|
309
|
-
case 14:
|
307
|
+
case 10:
|
310
308
|
return _context2.abrupt("return", []);
|
311
|
-
case
|
309
|
+
case 11:
|
312
310
|
case "end":
|
313
311
|
return _context2.stop();
|
314
312
|
}
|