ronds-metadata 1.1.82 → 1.1.83
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.
@@ -12,7 +12,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
12
12
|
/*
|
13
13
|
* @Author: wangxian
|
14
14
|
* @Date: 2021-09-18 14:15:04
|
15
|
-
* @LastEditTime: 2023-
|
15
|
+
* @LastEditTime: 2023-02-02 09:13:22
|
16
16
|
*/
|
17
17
|
import React from 'react';
|
18
18
|
import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
|
@@ -83,6 +83,7 @@ function Index(props) {
|
|
83
83
|
span: (formContext === null || formContext === void 0 ? void 0 : formContext.labelSpan) && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? 24 - (formContext === null || formContext === void 0 ? void 0 : formContext.labelSpan) : 24
|
84
84
|
}, extraInfo.layout === 'table' && items.type === 'ref' ? /*#__PURE__*/React.createElement(TableArray, {
|
85
85
|
initValue: formContext.initialValues,
|
86
|
+
initEnumValue: initEnumValue,
|
86
87
|
readonly: (_extraInfo$disabled = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled !== void 0 ? _extraInfo$disabled : disabled,
|
87
88
|
addButtonHidden: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.addButtonHidden,
|
88
89
|
rowNumber: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.rowNumber) || 10,
|
@@ -19,6 +19,7 @@ var TableArray = function TableArray(props) {
|
|
19
19
|
var initValue = props.initValue,
|
20
20
|
readonly = props.readonly,
|
21
21
|
rowNumber = props.rowNumber,
|
22
|
+
initEnumValue = props.initEnumValue,
|
22
23
|
addButtonHidden = props.addButtonHidden,
|
23
24
|
name = props.name,
|
24
25
|
form = props.form,
|
@@ -157,6 +158,11 @@ var TableArray = function TableArray(props) {
|
|
157
158
|
var _extraInfo$enum2;
|
158
159
|
|
159
160
|
_enum = deepClone(_extraInfo === null || _extraInfo === void 0 ? void 0 : (_extraInfo$enum2 = _extraInfo.enum) === null || _extraInfo$enum2 === void 0 ? void 0 : _extraInfo$enum2.value);
|
161
|
+
} // 目前是更具那么的id判断的,暂未考虑重名问题
|
162
|
+
|
163
|
+
|
164
|
+
if (initEnumValue && initEnumValue[data.id]) {
|
165
|
+
_enum = deepClone(initEnumValue[data.id]);
|
160
166
|
}
|
161
167
|
|
162
168
|
_enum.forEach(function (it) {
|