ronds-metadata 1.2.26 → 1.2.28
Sign up to get free protection for your applications and to get access to all the features.
@@ -58,12 +58,6 @@ var TableArray = function TableArray(props) {
|
|
58
58
|
setList = _React$useState10[1];
|
59
59
|
|
60
60
|
var listRef = React.useRef([]);
|
61
|
-
|
62
|
-
var _React$useState11 = React.useState({}),
|
63
|
-
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
64
|
-
enumOptions = _React$useState12[0],
|
65
|
-
setEnumOptions = _React$useState12[1];
|
66
|
-
|
67
61
|
var enumOptionsRef = React.useRef({});
|
68
62
|
useObservable(function (p) {
|
69
63
|
if ((p === null || p === void 0 ? void 0 : p.type) === 'setFieldsValue') {
|
@@ -295,7 +289,6 @@ var TableArray = function TableArray(props) {
|
|
295
289
|
});
|
296
290
|
|
297
291
|
enumOptionsRef.current[data.id] = _options;
|
298
|
-
setEnumOptions(_objectSpread({}, enumOptionsRef.current));
|
299
292
|
return _options;
|
300
293
|
}, []);
|
301
294
|
var processColumnType = React.useCallback(function (data, _extraInfo) {
|
@@ -327,7 +320,7 @@ var TableArray = function TableArray(props) {
|
|
327
320
|
enum: it.type === 'enum' ? processEnumData(it, extraInfo) : undefined,
|
328
321
|
mode: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$enum5 = extraInfo.enum) === null || _extraInfo$enum5 === void 0 ? void 0 : _extraInfo$enum5.isMutiple) ? 'multiple' : undefined,
|
329
322
|
render: function render(val) {
|
330
|
-
if (it.type
|
323
|
+
if (it.type === 'enum') {
|
331
324
|
if (Array.isArray(val)) {
|
332
325
|
return val.map(function (v) {
|
333
326
|
return /*#__PURE__*/React.createElement(_Tag, {
|
@@ -351,7 +344,7 @@ var TableArray = function TableArray(props) {
|
|
351
344
|
}
|
352
345
|
|
353
346
|
return _columns;
|
354
|
-
}, [
|
347
|
+
}, []);
|
355
348
|
var columns = React.useMemo(function () {
|
356
349
|
var _columns = [];
|
357
350
|
|
package/es/framework/fg/index.js
CHANGED
@@ -3,7 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
4
4
|
|
5
5
|
/* eslint-disable */
|
6
|
-
import { transFG2Schema } from '
|
6
|
+
import { transFG2Schema } from '../../comps/FormGenerator/transformer';
|
7
7
|
import { renderBasicFormProps, renderLayoutFormProps, renderSetting } from './utils';
|
8
8
|
/**
|
9
9
|
* 链式调用 组件元数据表单的机器人
|