ronds-metadata 1.2.33 → 1.2.34
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
|
|
1
1
|
import "antd/es/row/style";
|
2
2
|
import _Row from "antd/es/row";
|
3
|
-
import "antd/es/form/style";
|
4
|
-
import _Form from "antd/es/form";
|
5
3
|
import "antd/es/button/style";
|
6
4
|
import _Button from "antd/es/button";
|
7
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
6
|
+
import "antd/es/form/style";
|
7
|
+
import _Form from "antd/es/form";
|
8
8
|
import "antd/es/col/style";
|
9
9
|
import _Col from "antd/es/col";
|
10
10
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
@@ -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-04-18 10:
|
15
|
+
* @LastEditTime: 2023-04-18 10:40:37
|
16
16
|
*/
|
17
17
|
import React from 'react';
|
18
18
|
import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
|
@@ -88,7 +88,11 @@ function Index(props) {
|
|
88
88
|
style: {
|
89
89
|
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
90
90
|
}
|
91
|
-
}, extraInfo.layout === 'table' && items.type === 'ref' ? /*#__PURE__*/React.createElement(
|
91
|
+
}, extraInfo.layout === 'table' && items.type === 'ref' ? /*#__PURE__*/React.createElement(_Form.Item, {
|
92
|
+
name: name,
|
93
|
+
key: id,
|
94
|
+
initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue
|
95
|
+
}, /*#__PURE__*/React.createElement(TableArray, {
|
92
96
|
initValue: formContext.initialValues,
|
93
97
|
extraInfo: extraInfo,
|
94
98
|
initEnumValue: initEnumValue,
|
@@ -98,7 +102,7 @@ function Index(props) {
|
|
98
102
|
refId: items.refId,
|
99
103
|
form: formContext.form,
|
100
104
|
name: name
|
101
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
105
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
102
106
|
style: {
|
103
107
|
padding: '10px',
|
104
108
|
border: '1px solid var(--ronds-metadata-color-border-1)',
|
@@ -108,7 +112,8 @@ function Index(props) {
|
|
108
112
|
}
|
109
113
|
}, /*#__PURE__*/React.createElement(_Form.List, {
|
110
114
|
name: name,
|
111
|
-
key: id
|
115
|
+
key: id,
|
116
|
+
initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue
|
112
117
|
}, function (fields, _ref) {
|
113
118
|
var add = _ref.add,
|
114
119
|
remove = _ref.remove;
|