ronds-metadata 1.2.96 → 1.2.98
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.
|
@@ -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-21 09:28:47
|
|
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
|
}
|
|
@@ -443,6 +441,7 @@ function Index(props) {
|
|
|
443
441
|
open: treeselectOpen,
|
|
444
442
|
onDropdownVisibleChange: onDropdownVisibleChange,
|
|
445
443
|
treeExpandedKeys: expandedKeys,
|
|
444
|
+
labelInValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.labelInValue,
|
|
446
445
|
allowClear: true,
|
|
447
446
|
disabled: (_extraInfo$disabled2 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled2 !== void 0 ? _extraInfo$disabled2 : disabled,
|
|
448
447
|
placeholder: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.placeholder,
|