ronds-metadata 1.1.80 → 1.1.82
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/DynamicPorts/graph.js +1 -2
- package/es/comps/MdView/index.less +2 -2
- package/es/comps/MetadataForm/DataCell/Ref.js +2 -2
- package/es/comps/MetadataForm/hooks/index.js +1 -1
- package/es/comps/MetadataForm/index.js +2 -1
- package/es/comps/MetadataForm/index.less +1 -1
- package/es/theme.less +2 -0
- package/package.json +1 -1
@@ -62,10 +62,10 @@
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
|
65
|
-
color:
|
65
|
+
color: var(--ronds-metadata-color-text-2);
|
66
66
|
font-size: 14px;
|
67
67
|
line-height: 1.60625;
|
68
|
-
background-color:
|
68
|
+
background-color: var(--ronds-metadata-color-bg-2);
|
69
69
|
border-radius: 8px;
|
70
70
|
counter-reset: h2-index;
|
71
71
|
|
@@ -179,7 +179,7 @@ function Index(props) {
|
|
179
179
|
};
|
180
180
|
}(), [refId]);
|
181
181
|
React.useEffect(function () {
|
182
|
-
if (refId) {
|
182
|
+
if (refId && formContext.__TYPE__) {
|
183
183
|
var server = new MetadataService();
|
184
184
|
getSchemaByRefId(server, formContext.__TYPE__);
|
185
185
|
return function () {
|
@@ -199,7 +199,7 @@ function Index(props) {
|
|
199
199
|
if (isRefForm && !field && schema.length > 0) {
|
200
200
|
var _fieldRule$, _fieldRule$$value, _fieldRule$2, _fieldRule$2$value, _fieldRule$2$value$co;
|
201
201
|
|
202
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
|
202
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Row, null, !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.titleHidden) && /*#__PURE__*/React.createElement(_Col, {
|
203
203
|
span: 24
|
204
204
|
}, /*#__PURE__*/React.createElement("div", {
|
205
205
|
style: {
|
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
/*
|
6
6
|
* @Author: your name
|
7
7
|
* @Date: 2021-09-18 14:15:04
|
8
|
-
* @LastEditTime:
|
8
|
+
* @LastEditTime: 2023-01-16 16:42:04
|
9
9
|
*/
|
10
10
|
import { getLocale } from '../../../framework/locale';
|
11
11
|
import moment from 'moment';
|
@@ -49,7 +49,7 @@ var MetadataForm = function MetadataForm(props) {
|
|
49
49
|
mySchma = _React$useState2[0],
|
50
50
|
setMySchema = _React$useState2[1];
|
51
51
|
|
52
|
-
var _React$useState3 = React.useState(
|
52
|
+
var _React$useState3 = React.useState(),
|
53
53
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
54
54
|
innerSchemas = _React$useState4[0],
|
55
55
|
setInnerSchemas = _React$useState4[1];
|
@@ -104,6 +104,7 @@ var MetadataForm = function MetadataForm(props) {
|
|
104
104
|
React.useEffect(function () {
|
105
105
|
if (schema && schema.length > 0) {
|
106
106
|
setMySchema(_toConsumableArray(schema));
|
107
|
+
setInnerSchemas(undefined);
|
107
108
|
}
|
108
109
|
}, [schema]);
|
109
110
|
React.useEffect(function () {
|
package/es/theme.less
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
--ronds-metadata-color-bg-2: #0d1f40;
|
4
4
|
--ronds-metadata-color-bg-4: #1c3771;
|
5
5
|
--ronds-metadata-color-text-1: #ffffff;
|
6
|
+
--ronds-metadata-color-text-2: #ffffff;
|
6
7
|
|
7
8
|
::-webkit-scrollbar {
|
8
9
|
width: 6px;
|
@@ -39,6 +40,7 @@
|
|
39
40
|
--ronds-metadata-color-bg-2: rgba(229, 238, 255, 0.85);
|
40
41
|
--ronds-metadata-color-bg-4: #ffffff;
|
41
42
|
--ronds-metadata-color-text-1: #1d2129;
|
43
|
+
--ronds-metadata-color-text-2: #24292f;
|
42
44
|
|
43
45
|
::-webkit-scrollbar {
|
44
46
|
width: 6px;
|