ronds-metadata 1.1.41 → 1.1.43
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.
- package/es/comps/MetadataForm/DataCell/Array.js +3 -2
- package/es/comps/MetadataForm/DataCell/Input.js +2 -2
- package/es/comps/MetadataForm/DataCell/Number.js +7 -1
- package/es/comps/MetadataForm/DataCell/Ref.js +1 -1
- package/es/comps/MetadataForm/DataCell/Switch.js +2 -2
- package/es/comps/MetadataForm/index.less +3 -0
- package/package.json +1 -1
@@ -8,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
8
|
/*
|
9
9
|
* @Author: wangxian
|
10
10
|
* @Date: 2021-09-18 14:15:04
|
11
|
-
* @LastEditTime: 2022-
|
11
|
+
* @LastEditTime: 2022-10-10 09:19:02
|
12
12
|
*/
|
13
13
|
import React from 'react';
|
14
14
|
import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
|
@@ -82,7 +82,8 @@ function Index(props) {
|
|
82
82
|
padding: '10px',
|
83
83
|
border: '1px solid var(--ronds-metadata-color-border-1)',
|
84
84
|
width: '100%',
|
85
|
-
borderRadius: '4px'
|
85
|
+
borderRadius: '4px',
|
86
|
+
margin: '0 0 8px'
|
86
87
|
}
|
87
88
|
}, /*#__PURE__*/React.createElement(_Form.List, {
|
88
89
|
name: myName,
|
@@ -14,7 +14,7 @@ import _Input from "antd/es/input";
|
|
14
14
|
/*
|
15
15
|
* @Author: wangxian
|
16
16
|
* @Date: 2021-09-18 14:15:04
|
17
|
-
* @LastEditTime: 2022-
|
17
|
+
* @LastEditTime: 2022-10-10 11:27:15
|
18
18
|
*/
|
19
19
|
import React from 'react';
|
20
20
|
import { UploadOutlined } from '@ant-design/icons';
|
@@ -101,7 +101,7 @@ function Index(props) {
|
|
101
101
|
key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|
102
102
|
initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|
103
103
|
style: {
|
104
|
-
display: "".concat(extraInfo.hidden ? 'none' : '
|
104
|
+
display: "".concat(extraInfo.hidden ? 'none' : '')
|
105
105
|
},
|
106
106
|
label: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id,
|
107
107
|
name: name,
|
@@ -4,6 +4,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import "antd/es/input-number/style";
|
5
5
|
import _InputNumber from "antd/es/input-number";
|
6
6
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
7
|
+
|
8
|
+
/*
|
9
|
+
* @Author: wangxian
|
10
|
+
* @Date: 2021-09-18 14:15:04
|
11
|
+
* @LastEditTime: 2022-10-10 11:27:22
|
12
|
+
*/
|
7
13
|
import React from 'react';
|
8
14
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
9
15
|
import { useGetExtraInfo } from '../hooks';
|
@@ -47,7 +53,7 @@ function Index(props) {
|
|
47
53
|
key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|
48
54
|
initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|
49
55
|
style: {
|
50
|
-
display: "".concat(extraInfo.hidden ? 'none' : '
|
56
|
+
display: "".concat(extraInfo.hidden ? 'none' : '')
|
51
57
|
},
|
52
58
|
label: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id,
|
53
59
|
name: name,
|
@@ -226,7 +226,7 @@ function Index(props) {
|
|
226
226
|
border: '1px solid var(--ronds-metadata-color-border-1)',
|
227
227
|
width: '100%',
|
228
228
|
borderRadius: '4px',
|
229
|
-
display: "".concat(formContext.isFoldForm && isFold ? 'none' : '
|
229
|
+
display: "".concat(formContext.isFoldForm && isFold ? 'none' : '')
|
230
230
|
}
|
231
231
|
}, /*#__PURE__*/React.createElement(MetadataRefContext.Provider, {
|
232
232
|
value: {
|
@@ -8,7 +8,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
8
8
|
/*
|
9
9
|
* @Author: wangxian
|
10
10
|
* @Date: 2021-09-18 14:15:04
|
11
|
-
* @LastEditTime: 2022-
|
11
|
+
* @LastEditTime: 2022-10-10 11:27:41
|
12
12
|
*/
|
13
13
|
import React from 'react';
|
14
14
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -56,7 +56,7 @@ function Index(props) {
|
|
56
56
|
key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|
57
57
|
initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|
58
58
|
style: {
|
59
|
-
display: "".concat(extraInfo.hidden ? 'none' : '
|
59
|
+
display: "".concat(extraInfo.hidden ? 'none' : '')
|
60
60
|
},
|
61
61
|
name: name,
|
62
62
|
valuePropName: "checked",
|