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.
@@ -331,8 +331,7 @@ var DPGraph = /*#__PURE__*/function (_GraphCore) {
331
331
  }
332
332
 
333
333
  return loadDPGraph;
334
- }() //
335
- // 判断画布是否准备完成
334
+ }() // 判断画布是否准备完成
336
335
 
337
336
  }, {
338
337
  key: "isGraphReady",
@@ -62,10 +62,10 @@
62
62
  }
63
63
  }
64
64
 
65
- color: @c-text;
65
+ color: var(--ronds-metadata-color-text-2);
66
66
  font-size: 14px;
67
67
  line-height: 1.60625;
68
- background-color: #fff;
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: 2022-10-12 09:04:56
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 () {
@@ -11,7 +11,7 @@
11
11
  .ant-form-item-label {
12
12
  padding: 0px !important;
13
13
  }
14
-
14
+
15
15
  .ant-input-number,
16
16
  .ant-picker {
17
17
  width: 100%;
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.1.80",
4
+ "version": "1.1.82",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",