ronds-metadata 1.0.60 → 1.0.61
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.
@@ -82,9 +82,8 @@ var MetadataEditV2 = function MetadataEditV2(props) {
|
|
82
82
|
}, [form, initialValues]);
|
83
83
|
|
84
84
|
var onMyFinish = function onMyFinish(values) {
|
85
|
-
|
85
|
+
// console.log('values:', values, JSON.stringify(values));
|
86
86
|
// console.log('values:', values);
|
87
|
-
|
88
87
|
var _metaSchema = metaSchemaRef.current;
|
89
88
|
_metaSchema.id = values.id;
|
90
89
|
_metaSchema.type = values.type;
|
@@ -164,7 +163,6 @@ var MetadataEditV2 = function MetadataEditV2(props) {
|
|
164
163
|
};
|
165
164
|
|
166
165
|
var onAddFields = function onAddFields(index) {
|
167
|
-
// debugger;
|
168
166
|
if (index === -1) {
|
169
167
|
var _id = form.getFieldValue('id');
|
170
168
|
|
@@ -208,8 +206,6 @@ var MetadataEditV2 = function MetadataEditV2(props) {
|
|
208
206
|
};
|
209
207
|
|
210
208
|
var onFieldsChange = function onFieldsChange(values) {
|
211
|
-
// debugger;
|
212
|
-
// console.log('onFieldsChange', values, curFields);
|
213
209
|
var _fields = fields;
|
214
210
|
_fields[curFields.id] = values;
|
215
211
|
setFields(_objectSpread({}, _fields));
|
@@ -221,7 +217,6 @@ var MetadataEditV2 = function MetadataEditV2(props) {
|
|
221
217
|
};
|
222
218
|
|
223
219
|
var processFileds = function processFileds(schema) {
|
224
|
-
debugger;
|
225
220
|
var _properties = schema.properties;
|
226
221
|
var _fields = fields;
|
227
222
|
|
@@ -4,6 +4,12 @@ import "antd/es/button/style";
|
|
4
4
|
import _Button from "antd/es/button";
|
5
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
6
6
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
7
|
+
|
8
|
+
/*
|
9
|
+
* @Author: wangxian
|
10
|
+
* @Date: 2021-09-18 14:15:04
|
11
|
+
* @LastEditTime: 2022-04-11 09:52:46
|
12
|
+
*/
|
7
13
|
import React from 'react';
|
8
14
|
import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
|
9
15
|
import { MetadataFormContext } from '../interface';
|
@@ -11,7 +17,7 @@ import { useGetExtraInfo } from '../hooks';
|
|
11
17
|
import { getDataCell } from '../utils';
|
12
18
|
|
13
19
|
function Index(props) {
|
14
|
-
var _fields
|
20
|
+
var _fields$, _fields$$value;
|
15
21
|
|
16
22
|
var id = props.id,
|
17
23
|
items = props.items,
|
@@ -33,7 +39,6 @@ function Index(props) {
|
|
33
39
|
setHelp(arr[arr.length - 1]);
|
34
40
|
}
|
35
41
|
}, [items]);
|
36
|
-
debugger;
|
37
42
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
38
43
|
style: {
|
39
44
|
position: 'relative',
|
@@ -43,7 +48,7 @@ function Index(props) {
|
|
43
48
|
className: "ant-form-item-label mt-1"
|
44
49
|
}, /*#__PURE__*/React.createElement("label", {
|
45
50
|
className: "".concat((extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.require) && 'ant-form-item-required')
|
46
|
-
}, extraInfo.label || ((_fields$
|
51
|
+
}, extraInfo.label || ((_fields$ = fields[0]) === null || _fields$ === void 0 ? void 0 : (_fields$$value = _fields$.value) === null || _fields$$value === void 0 ? void 0 : _fields$$value.label) || id)), formContext.isShowTypeInfo && /*#__PURE__*/React.createElement("div", {
|
47
52
|
style: {
|
48
53
|
padding: '0 6px',
|
49
54
|
position: 'absolute',
|