ronds-metadata 1.1.81 → 1.1.83

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
 
@@ -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-01-10 15:06:46
15
+ * @LastEditTime: 2023-02-02 09:13:22
16
16
  */
17
17
  import React from 'react';
18
18
  import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
@@ -83,6 +83,7 @@ function Index(props) {
83
83
  span: (formContext === null || formContext === void 0 ? void 0 : formContext.labelSpan) && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? 24 - (formContext === null || formContext === void 0 ? void 0 : formContext.labelSpan) : 24
84
84
  }, extraInfo.layout === 'table' && items.type === 'ref' ? /*#__PURE__*/React.createElement(TableArray, {
85
85
  initValue: formContext.initialValues,
86
+ initEnumValue: initEnumValue,
86
87
  readonly: (_extraInfo$disabled = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled !== void 0 ? _extraInfo$disabled : disabled,
87
88
  addButtonHidden: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.addButtonHidden,
88
89
  rowNumber: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.rowNumber) || 10,
@@ -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: {
@@ -3,6 +3,7 @@ interface ITableArrayProps {
3
3
  name: string;
4
4
  form: FormInstance;
5
5
  refId: string;
6
+ initEnumValue: any[];
6
7
  readonly?: boolean;
7
8
  rowNumber: number;
8
9
  addButtonHidden?: boolean;
@@ -19,6 +19,7 @@ var TableArray = function TableArray(props) {
19
19
  var initValue = props.initValue,
20
20
  readonly = props.readonly,
21
21
  rowNumber = props.rowNumber,
22
+ initEnumValue = props.initEnumValue,
22
23
  addButtonHidden = props.addButtonHidden,
23
24
  name = props.name,
24
25
  form = props.form,
@@ -157,6 +158,11 @@ var TableArray = function TableArray(props) {
157
158
  var _extraInfo$enum2;
158
159
 
159
160
  _enum = deepClone(_extraInfo === null || _extraInfo === void 0 ? void 0 : (_extraInfo$enum2 = _extraInfo.enum) === null || _extraInfo$enum2 === void 0 ? void 0 : _extraInfo$enum2.value);
161
+ } // 目前是更具那么的id判断的,暂未考虑重名问题
162
+
163
+
164
+ if (initEnumValue && initEnumValue[data.id]) {
165
+ _enum = deepClone(initEnumValue[data.id]);
160
166
  }
161
167
 
162
168
  _enum.forEach(function (it) {
@@ -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';
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.81",
4
+ "version": "1.1.83",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",