ronds-metadata 1.1.4 → 1.1.5
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.
@@ -117,6 +117,23 @@ function Index(props) {
|
|
117
117
|
initEnumValue: initEnumValue
|
118
118
|
};
|
119
119
|
}, [field]);
|
120
|
+
var getSchemaByRefId = React.useCallback( /*#__PURE__*/function () {
|
121
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(server) {
|
122
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
123
|
+
while (1) {
|
124
|
+
switch (_context2.prev = _context2.next) {
|
125
|
+
case 0:
|
126
|
+
case "end":
|
127
|
+
return _context2.stop();
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}, _callee2);
|
131
|
+
}));
|
132
|
+
|
133
|
+
return function (_x) {
|
134
|
+
return _ref2.apply(this, arguments);
|
135
|
+
};
|
136
|
+
}(), []);
|
120
137
|
React.useEffect(function () {
|
121
138
|
if (refId) {
|
122
139
|
var server = new MetadataService();
|
@@ -14,14 +14,14 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
14
14
|
/*
|
15
15
|
* @Author:wangxian
|
16
16
|
* @Date: 2021-09-18 14:15:04
|
17
|
-
* @LastEditTime: 2022-05-23
|
17
|
+
* @LastEditTime: 2022-05-23 14:31:37
|
18
18
|
*/
|
19
19
|
import React from 'react';
|
20
20
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
21
21
|
import { useGetExtraInfo } from '../hooks';
|
22
22
|
import { MetadataService } from '../../../framework/metadata/MetadataService';
|
23
|
-
import { deepClone } from '
|
24
|
-
import { useAsyncMemo } from '
|
23
|
+
import { deepClone } from '../../../utils';
|
24
|
+
import { useAsyncMemo } from '../../../framework/hooks/use-async-memo';
|
25
25
|
|
26
26
|
function Index(props) {
|
27
27
|
var _extraInfo$http3, _extraInfo$http4;
|