ronds-metadata 1.2.2 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -337,6 +337,10 @@ var Editable = function Editable(props) {
337
337
  }
338
338
  }, /*#__PURE__*/React.createElement(DndProvider, {
339
339
  backend: HTML5Backend
340
+ }, /*#__PURE__*/React.createElement("div", {
341
+ style: {
342
+ height: "".concat((type === 'multiple' || type === 'freedom') && !readonly && isAddRow && defaultValue ? 'calc(100% - 40px)' : '100%')
343
+ }
340
344
  }, /*#__PURE__*/React.createElement(_Table, _extends({
341
345
  key: _columns.length,
342
346
  className: "ronds-edit-table",
@@ -367,7 +371,7 @@ var Editable = function Editable(props) {
367
371
  onMove: onMove
368
372
  };
369
373
  }
370
- }))), (type === 'multiple' || type === 'freedom') && !readonly && isAddRow && defaultValue && /*#__PURE__*/React.createElement(_Button, {
374
+ })))), (type === 'multiple' || type === 'freedom') && !readonly && isAddRow && defaultValue && /*#__PURE__*/React.createElement(_Button, {
371
375
  block: true,
372
376
  type: "dashed",
373
377
  style: {
@@ -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-02-22 13:54:18
15
+ * @LastEditTime: 2023-02-23 15:42:40
16
16
  */
17
17
  import React from 'react';
18
18
  import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
@@ -30,6 +30,7 @@ function Index(props) {
30
30
  isRefForm = props.isRefForm,
31
31
  fieldRule = props.fields,
32
32
  colSpan = props.colSpan,
33
+ labelSpan = props.labelSpan,
33
34
  initEnumValue = props.initEnumValue,
34
35
  name = props.name,
35
36
  disabled = props.disabled;
@@ -72,15 +73,15 @@ function Index(props) {
72
73
  }
73
74
  }, [items]);
74
75
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
75
- span: (formContext === null || formContext === void 0 ? void 0 : formContext.labelSpan) && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? formContext === null || formContext === void 0 ? void 0 : formContext.labelSpan : 24
76
+ span: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? labelSpan : 24
76
77
  }, !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.titleHidden) && /*#__PURE__*/React.createElement("div", {
77
78
  style: {
78
79
  position: 'relative',
79
80
  width: '100%',
80
- textAlign: "".concat((formContext === null || formContext === void 0 ? void 0 : formContext.labelSpan) && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? 'right' : 'left')
81
+ textAlign: "".concat(labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? 'right' : 'left')
81
82
  }
82
83
  }, /*#__PURE__*/React.createElement("div", {
83
- className: "ant-form-item-label mt-1 "
84
+ className: "ant-form-item-label ant-form-item-label-wrap mt-1 "
84
85
  }, /*#__PURE__*/React.createElement("label", {
85
86
  className: "".concat((extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.require) && 'ant-form-item-required')
86
87
  }, extraInfo.label || fieldRule && ((_fieldRule$ = fieldRule[0]) === null || _fieldRule$ === void 0 ? void 0 : (_fieldRule$$value = _fieldRule$.value) === null || _fieldRule$$value === void 0 ? void 0 : _fieldRule$$value.label) || fieldRule && ((_fieldRule$2 = fieldRule[0]) === null || _fieldRule$2 === void 0 ? void 0 : (_fieldRule$2$value = _fieldRule$2.value) === null || _fieldRule$2$value === void 0 ? void 0 : _fieldRule$2$value.common.label) || id)), formContext.isShowTypeInfo && /*#__PURE__*/React.createElement("div", {
@@ -92,7 +93,7 @@ function Index(props) {
92
93
  background: '#fff'
93
94
  }
94
95
  }, help || (items === null || items === void 0 ? void 0 : items.type)))), /*#__PURE__*/React.createElement(_Col, {
95
- 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
96
+ span: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? 24 - labelSpan : 24
96
97
  }, extraInfo.layout === 'table' && items.type === 'ref' ? /*#__PURE__*/React.createElement(TableArray, {
97
98
  initValue: formContext.initialValues,
98
99
  initEnumValue: initEnumValue,
@@ -135,7 +136,7 @@ function Index(props) {
135
136
  isRefForm: isRefForm,
136
137
  isShowTypeInfo: formContext.isShowTypeInfo,
137
138
  field: field
138
- }, colSpan), /*#__PURE__*/React.createElement(MinusCircleOutlined, {
139
+ }, 23), /*#__PURE__*/React.createElement(MinusCircleOutlined, {
139
140
  style: {
140
141
  marginLeft: '10px'
141
142
  },
@@ -17,7 +17,7 @@ import _Input from "antd/es/input";
17
17
  /*
18
18
  * @Author: wangxian
19
19
  * @Date: 2021-09-18 14:15:04
20
- * @LastEditTime: 2023-02-22 15:51:51
20
+ * @LastEditTime: 2023-02-23 16:30:57
21
21
  */
22
22
  import React from 'react';
23
23
  import { UploadOutlined } from '@ant-design/icons';
@@ -73,7 +73,7 @@ function Index(props) {
73
73
 
74
74
  case 'textarea':
75
75
  return /*#__PURE__*/React.createElement(TextArea, {
76
- rows: 4,
76
+ rows: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.textareaRows) || 4,
77
77
  disabled: (_extraInfo$disabled2 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled2 !== void 0 ? _extraInfo$disabled2 : disabled,
78
78
  placeholder: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.placeholder
79
79
  });
@@ -134,6 +134,14 @@ function Index(props) {
134
134
  color: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.color
135
135
  } : {}
136
136
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
137
+ labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
138
+ span: labelSpan,
139
+ offset: 0
140
+ } : undefined,
141
+ wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
142
+ span: 24 - labelSpan,
143
+ offset: 0
144
+ } : undefined,
137
145
  name: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$addonAfter5 = extraInfo.addonAfter) === null || _extraInfo$addonAfter5 === void 0 ? void 0 : _extraInfo$addonAfter5.key) ? [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name), ['value']) : [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name)),
138
146
  rules: [{
139
147
  required: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.require
@@ -9,7 +9,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
9
9
  /*
10
10
  * @Author: wangxian
11
11
  * @Date: 2021-09-18 14:15:04
12
- * @LastEditTime: 2023-02-21 19:16:02
12
+ * @LastEditTime: 2023-02-23 16:31:33
13
13
  */
14
14
  import React from 'react';
15
15
  import { MetadataFormContext, MetadataRefContext } from '../interface';
@@ -22,6 +22,7 @@ function Index(props) {
22
22
  name = props.name,
23
23
  isRefForm = props.isRefForm,
24
24
  disabled = props.disabled,
25
+ labelSpan = props.labelSpan,
25
26
  field = props.field,
26
27
  isObj = props.isObj;
27
28
  var formContext = React.useContext(MetadataFormContext) || {};
@@ -62,6 +63,14 @@ function Index(props) {
62
63
  color: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.color
63
64
  } : {}
64
65
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
66
+ labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
67
+ span: labelSpan,
68
+ offset: 0
69
+ } : undefined,
70
+ wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
71
+ span: 24 - labelSpan,
72
+ offset: 0
73
+ } : undefined,
65
74
  rules: [{
66
75
  required: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.require
67
76
  }].concat(_toConsumableArray(rules)),
@@ -84,6 +93,14 @@ function Index(props) {
84
93
  color: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.color
85
94
  } : {}
86
95
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
96
+ labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
97
+ span: labelSpan,
98
+ offset: 0
99
+ } : undefined,
100
+ wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
101
+ span: 24 - labelSpan,
102
+ offset: 0
103
+ } : undefined,
87
104
  name: name,
88
105
  rules: [{
89
106
  required: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.require
@@ -99,7 +116,6 @@ function Index(props) {
99
116
  paddingRight: '10px'
100
117
  },
101
118
  name: [field === null || field === void 0 ? void 0 : field.name],
102
- fieldKey: [field === null || field === void 0 ? void 0 : field.fieldKey],
103
119
  rules: [{
104
120
  required: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.require
105
121
  }].concat(_toConsumableArray(rules)),
@@ -30,6 +30,7 @@ function Index(props) {
30
30
  disabled = props.disabled,
31
31
  isRefForm = props.isRefForm,
32
32
  fieldRule = props.fields,
33
+ labelSpan = props.labelSpan,
33
34
  initEnumValue = props.initEnumValue,
34
35
  field = props.field,
35
36
  name = props.name;
@@ -263,6 +264,14 @@ function Index(props) {
263
264
  return !field ? /*#__PURE__*/React.createElement(_Form.Item, {
264
265
  key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
265
266
  label: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id,
267
+ labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
268
+ span: labelSpan,
269
+ offset: 0
270
+ } : undefined,
271
+ wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
272
+ span: 24 - labelSpan,
273
+ offset: 0
274
+ } : undefined,
266
275
  initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
267
276
  style: {
268
277
  display: "".concat(extraInfo.hidden ? 'none' : 'block')
@@ -31,7 +31,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
31
31
  /*
32
32
  * @Author:wangxian
33
33
  * @Date: 2021-09-18 14:15:04
34
- * @LastEditTime: 2023-02-21 19:19:39
34
+ * @LastEditTime: 2023-02-23 09:58:36
35
35
  */
36
36
  import React from 'react';
37
37
  import { MetadataFormContext, MetadataRefContext } from '../interface';
@@ -53,6 +53,7 @@ function Index(props) {
53
53
  initEnumValue = _props$initEnumValue === void 0 ? {} : _props$initEnumValue,
54
54
  disabled = props.disabled,
55
55
  field = props.field,
56
+ labelSpan = props.labelSpan,
56
57
  isObj = props.isObj,
57
58
  _props$enum = props.enum,
58
59
  myEnum = _props$enum === void 0 ? [] : _props$enum;
@@ -88,73 +89,77 @@ function Index(props) {
88
89
  var _watch = extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$http = extraInfo.http) === null || _extraInfo$http === void 0 ? void 0 : _extraInfo$http.watch;
89
90
 
90
91
  if (_watch && (p === null || p === void 0 ? void 0 : p.type) === 'onValuesChange') {
91
- var _watchArr = _watch.split(',');
92
+ try {
93
+ var _watchArr = _watch.split(',');
92
94
 
93
- if (_watchArr.length === 1) {
94
- var evalString = '';
95
+ if (_watchArr.length === 1) {
96
+ var evalString = '';
95
97
 
96
- for (var i = 0; i < name.length; i++) {
97
- if (i < name.length - 1) {
98
- evalString = "".concat(evalString, "[name[").concat(i, "]]");
98
+ for (var i = 0; i < name.length; i++) {
99
+ if (i < name.length - 1) {
100
+ evalString = "".concat(evalString, "[name[").concat(i, "]]");
101
+ }
99
102
  }
100
- }
101
103
 
102
- var _value = eval("p?.payload?.allVals".concat(evalString, "[_watchArr[0]]"));
104
+ var _value = eval("p?.payload?.allVals".concat(evalString, "[_watchArr[0]]"));
103
105
 
104
- var _changeData = eval("p?.payload?.val".concat(evalString, "[_watchArr[0]]"));
106
+ var _changeData = eval("p?.payload?.val".concat(evalString, "[_watchArr[0]]"));
105
107
 
106
- if (_value && _changeData) {
107
- if ((extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.http.method) === 'post') {
108
- var _wRef = watchValueRef.current || {};
108
+ if (_value && _changeData) {
109
+ if ((extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.http.method) === 'post') {
110
+ var _wRef = watchValueRef.current || {};
109
111
 
110
- _wRef[_watchArr[0]] = _value;
111
- watchValueRef.current = _wRef;
112
- setWatchValue(_value);
113
- } else {
114
- setWatchValue(_value.toString());
115
- watchValueRef.current = _value;
112
+ _wRef[_watchArr[0]] = _value;
113
+ watchValueRef.current = _wRef;
114
+ setWatchValue(_value);
115
+ } else {
116
+ setWatchValue(_value.toString());
117
+ watchValueRef.current = _value;
118
+ }
116
119
  }
117
- }
118
120
 
119
- if (_changeData) {
120
- setTimeout(function () {
121
- var v = {};
122
- assign(name, undefined, v);
123
- formContext.form.setFieldsValue(_objectSpread({}, v));
124
- }, 100);
125
- }
126
- } else {
127
- var b = false;
121
+ if (_changeData) {
122
+ setTimeout(function () {
123
+ var v = {};
124
+ assign(name, undefined, v);
125
+ formContext.form.setFieldsValue(_objectSpread({}, v));
126
+ }, 100);
127
+ }
128
+ } else {
129
+ var b = false;
128
130
 
129
- for (var _i = 0; _i < _watchArr.length; _i++) {
130
- var w = _watchArr[_i];
131
- var _evalString = '';
131
+ for (var _i = 0; _i < _watchArr.length; _i++) {
132
+ var w = _watchArr[_i];
133
+ var _evalString = '';
132
134
 
133
- for (var _i2 = 0; _i2 < name.length; _i2++) {
134
- if (_i2 < name.length - 1) {
135
- _evalString = "".concat(_evalString, "[name[").concat(_i2, "]]");
135
+ for (var _i2 = 0; _i2 < name.length; _i2++) {
136
+ if (_i2 < name.length - 1) {
137
+ _evalString = "".concat(_evalString, "[name[").concat(_i2, "]]");
138
+ }
136
139
  }
137
- }
138
140
 
139
- var _value2 = eval("p?.payload?.allVals".concat(_evalString, "[w]"));
141
+ var _value2 = eval("p?.payload?.allVals".concat(_evalString, "[w]"));
140
142
 
141
- if (_value2) {
142
- var _wRef2 = watchValueRef.current || {};
143
+ if (_value2) {
144
+ var _wRef2 = watchValueRef.current || {};
143
145
 
144
- _wRef2[w] = _value2;
145
- watchValueRef.current = _wRef2;
146
- b = eval("p?.payload?.val".concat(_evalString, "[w]"));
146
+ _wRef2[w] = _value2;
147
+ watchValueRef.current = _wRef2;
148
+ b = eval("p?.payload?.val".concat(_evalString, "[w]"));
149
+ }
147
150
  }
148
- }
149
151
 
150
- if (b) {
151
- setWatchValue(_objectSpread({}, watchValueRef.current));
152
- setTimeout(function () {
153
- var v = {};
154
- assign(name, undefined, v);
155
- formContext.form.setFieldsValue(_objectSpread({}, v));
156
- }, 100);
152
+ if (b) {
153
+ setWatchValue(_objectSpread({}, watchValueRef.current));
154
+ setTimeout(function () {
155
+ var v = {};
156
+ assign(name, undefined, v);
157
+ formContext.form.setFieldsValue(_objectSpread({}, v));
158
+ }, 100);
159
+ }
157
160
  }
161
+ } catch (error) {
162
+ console.warn('watch:' + error);
158
163
  }
159
164
  }
160
165
  }, [formContext.stream$, extraInfo]);
@@ -453,6 +458,14 @@ function Index(props) {
453
458
  color: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.color
454
459
  } : {}
455
460
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
461
+ labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
462
+ span: labelSpan,
463
+ offset: 0
464
+ } : undefined,
465
+ wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
466
+ span: 24 - labelSpan,
467
+ offset: 0
468
+ } : undefined,
456
469
  name: [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name)),
457
470
  rules: [{
458
471
  required: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.require
@@ -473,6 +486,14 @@ function Index(props) {
473
486
  color: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.color
474
487
  } : {}
475
488
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
489
+ labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
490
+ span: labelSpan,
491
+ offset: 0
492
+ } : undefined,
493
+ wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
494
+ span: 24 - labelSpan,
495
+ offset: 0
496
+ } : undefined,
476
497
  name: name,
477
498
  rules: [{
478
499
  required: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.require
@@ -21,6 +21,7 @@ function Index(props) {
21
21
  name = props.name,
22
22
  isRefForm = props.isRefForm,
23
23
  disabled = props.disabled,
24
+ labelSpan = props.labelSpan,
24
25
  field = props.field,
25
26
  isObj = props.isObj;
26
27
  var formContext = React.useContext(MetadataFormContext) || {};
@@ -40,6 +41,14 @@ function Index(props) {
40
41
  color: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.color
41
42
  } : {}
42
43
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
44
+ labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
45
+ span: labelSpan,
46
+ offset: 0
47
+ } : undefined,
48
+ wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
49
+ span: 24 - labelSpan,
50
+ offset: 0
51
+ } : undefined,
43
52
  name: [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name)),
44
53
  valuePropName: "checked",
45
54
  rules: [{
@@ -60,6 +69,14 @@ function Index(props) {
60
69
  color: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.color
61
70
  } : {}
62
71
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
72
+ labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
73
+ span: labelSpan,
74
+ offset: 0
75
+ } : undefined,
76
+ wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
77
+ span: 24 - labelSpan,
78
+ offset: 0
79
+ } : undefined,
63
80
  key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
64
81
  initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
65
82
  style: {
@@ -323,12 +323,15 @@ var TableArray = function TableArray(props) {
323
323
  return /*#__PURE__*/React.createElement("div", {
324
324
  style: {
325
325
  width: '100%',
326
+ padding: '0 0 8px',
326
327
  height: addButtonHidden || readonly ? "".concat(rowNumber * getCellHeight(readonly) + 45, "px") : "".concat(rowNumber * getCellHeight(readonly) + 45 + 40, "px")
327
328
  }
328
329
  }, /*#__PURE__*/React.createElement(_Form.Item, {
329
330
  name: name,
331
+ noStyle: true,
330
332
  style: {
331
- margin: 0
333
+ margin: 0,
334
+ height: '100%'
332
335
  }
333
336
  }, /*#__PURE__*/React.createElement(Editable, {
334
337
  type: "multiple",
@@ -37,7 +37,7 @@ export function withAddOnAfter(WrappedComponent) {
37
37
  var labelSpan = React.useMemo(function () {
38
38
  var _fields$0$value, _fields$0$value$commo;
39
39
 
40
- var _labelSpan = undefined;
40
+ var _labelSpan = formContext === null || formContext === void 0 ? void 0 : formContext.labelSpan;
41
41
 
42
42
  var _colSpan = fields && ((_fields$0$value = fields[0].value) === null || _fields$0$value === void 0 ? void 0 : (_fields$0$value$commo = _fields$0$value.common) === null || _fields$0$value$commo === void 0 ? void 0 : _fields$0$value$commo.colSpan);
43
43
 
@@ -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: 2023-02-21 19:11:53
8
+ * @LastEditTime: 2023-02-23 14:53:08
9
9
  */
10
10
  import { getLocale } from '../../../framework/locale';
11
11
  import moment from 'moment';
@@ -98,8 +98,14 @@ export var useWatchDepend = function useWatchDepend(_depends, stream$) {
98
98
 
99
99
  var processDependHiddenOrShow = function processDependHiddenOrShow(depend, changeData, stream$) {
100
100
  try {
101
- var regex = /\w+(\.\w+)?[=<>!]{1}/g;
101
+ // const regex = /\w+(\.\w+)?[=<>!]{1}/g;
102
+ var regex = /\w+(\.\w+)?[=<>!]{1}|\w+(\.\w+)?(\.indexOf\('\w+'\)[=<>!]{1})/g;
102
103
  var keys = depend.trim().match(regex);
104
+
105
+ if (!keys) {
106
+ return false;
107
+ }
108
+
103
109
  var expression = depend;
104
110
 
105
111
  for (var i = 0; i < keys.length; i++) {
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "fa"; /* Project id 2247093 */
3
- src: url('iconfont.woff2?t=1667906194044') format('woff2'),
4
- url('iconfont.woff?t=1667906194044') format('woff'),
5
- url('iconfont.ttf?t=1667906194044') format('truetype');
3
+ src: url('iconfont.woff2?t=1677113748870') format('woff2'),
4
+ url('iconfont.woff?t=1677113748870') format('woff'),
5
+ url('iconfont.ttf?t=1677113748870') format('truetype');
6
6
  }
7
7
 
8
8
  .fa {
@@ -13,6 +13,10 @@
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
+ .fa-Es:before {
17
+ content: "\e6a1";
18
+ }
19
+
16
20
  .fa-transform:before {
17
21
  content: "\ed70";
18
22
  }
@@ -0,0 +1,380 @@
1
+ {
2
+ "id": "2247093",
3
+ "name": "工业大数据",
4
+ "font_family": "fa",
5
+ "css_prefix_text": "fa-",
6
+ "description": "",
7
+ "glyphs": [
8
+ {
9
+ "icon_id": "13543355",
10
+ "name": "elasticsearch Elasticsearch",
11
+ "font_class": "Es",
12
+ "unicode": "e6a1",
13
+ "unicode_decimal": 59041
14
+ },
15
+ {
16
+ "icon_id": "490744",
17
+ "name": "transform",
18
+ "font_class": "transform",
19
+ "unicode": "ed70",
20
+ "unicode_decimal": 60784
21
+ },
22
+ {
23
+ "icon_id": "6151161",
24
+ "name": "info-circle-fill",
25
+ "font_class": "info",
26
+ "unicode": "e7dc",
27
+ "unicode_decimal": 59356
28
+ },
29
+ {
30
+ "icon_id": "6756289",
31
+ "name": "专家",
32
+ "font_class": "expert",
33
+ "unicode": "e60c",
34
+ "unicode_decimal": 58892
35
+ },
36
+ {
37
+ "icon_id": "9058121",
38
+ "name": "8_8人工智能",
39
+ "font_class": "ai1",
40
+ "unicode": "e60d",
41
+ "unicode_decimal": 58893
42
+ },
43
+ {
44
+ "icon_id": "25885522",
45
+ "name": "AI、智能大脑-08",
46
+ "font_class": "ai2",
47
+ "unicode": "e893",
48
+ "unicode_decimal": 59539
49
+ },
50
+ {
51
+ "icon_id": "4638874",
52
+ "name": "智能AI",
53
+ "font_class": "ai",
54
+ "unicode": "e887",
55
+ "unicode_decimal": 59527
56
+ },
57
+ {
58
+ "icon_id": "5928197",
59
+ "name": "信号",
60
+ "font_class": "signal",
61
+ "unicode": "ec4a",
62
+ "unicode_decimal": 60490
63
+ },
64
+ {
65
+ "icon_id": "12095328",
66
+ "name": "圆",
67
+ "font_class": "circle",
68
+ "unicode": "e660",
69
+ "unicode_decimal": 58976
70
+ },
71
+ {
72
+ "icon_id": "9839113",
73
+ "name": "资产扫描",
74
+ "font_class": "scan",
75
+ "unicode": "e6df",
76
+ "unicode_decimal": 59103
77
+ },
78
+ {
79
+ "icon_id": "703054",
80
+ "name": "language-python-text",
81
+ "font_class": "py",
82
+ "unicode": "e916",
83
+ "unicode_decimal": 59670
84
+ },
85
+ {
86
+ "icon_id": "7123309",
87
+ "name": "redis",
88
+ "font_class": "Redis",
89
+ "unicode": "e669",
90
+ "unicode_decimal": 58985
91
+ },
92
+ {
93
+ "icon_id": "1338316",
94
+ "name": "盒子",
95
+ "font_class": "hezi",
96
+ "unicode": "e60b",
97
+ "unicode_decimal": 58891
98
+ },
99
+ {
100
+ "icon_id": "1851186",
101
+ "name": "消息",
102
+ "font_class": "message",
103
+ "unicode": "e637",
104
+ "unicode_decimal": 58935
105
+ },
106
+ {
107
+ "icon_id": "8802625",
108
+ "name": "数据库2",
109
+ "font_class": "shujuku",
110
+ "unicode": "e645",
111
+ "unicode_decimal": 58949
112
+ },
113
+ {
114
+ "icon_id": "3582411",
115
+ "name": "沙漏",
116
+ "font_class": "hourglass",
117
+ "unicode": "e66b",
118
+ "unicode_decimal": 58987
119
+ },
120
+ {
121
+ "icon_id": "20183028",
122
+ "name": "bucket",
123
+ "font_class": "Bucket",
124
+ "unicode": "e8ce",
125
+ "unicode_decimal": 59598
126
+ },
127
+ {
128
+ "icon_id": "18005114",
129
+ "name": "dlf-数据湖构建",
130
+ "font_class": "RondsLake",
131
+ "unicode": "e8a2",
132
+ "unicode_decimal": 59554
133
+ },
134
+ {
135
+ "icon_id": "10937694",
136
+ "name": "分组",
137
+ "font_class": "Schema",
138
+ "unicode": "e62a",
139
+ "unicode_decimal": 58922
140
+ },
141
+ {
142
+ "icon_id": "1526261",
143
+ "name": "文件",
144
+ "font_class": "Minio",
145
+ "unicode": "e64e",
146
+ "unicode_decimal": 58958
147
+ },
148
+ {
149
+ "icon_id": "5886128",
150
+ "name": "颜色",
151
+ "font_class": "color",
152
+ "unicode": "e678",
153
+ "unicode_decimal": 59000
154
+ },
155
+ {
156
+ "icon_id": "9948899",
157
+ "name": "graph",
158
+ "font_class": "Neo4j",
159
+ "unicode": "e612",
160
+ "unicode_decimal": 58898
161
+ },
162
+ {
163
+ "icon_id": "11836501",
164
+ "name": "知识库",
165
+ "font_class": "knowledge",
166
+ "unicode": "e621",
167
+ "unicode_decimal": 58913
168
+ },
169
+ {
170
+ "icon_id": "1162764",
171
+ "name": "评价",
172
+ "font_class": "evaluate",
173
+ "unicode": "e608",
174
+ "unicode_decimal": 58888
175
+ },
176
+ {
177
+ "icon_id": "1444787",
178
+ "name": "json",
179
+ "font_class": "json1",
180
+ "unicode": "e7bd",
181
+ "unicode_decimal": 59325
182
+ },
183
+ {
184
+ "icon_id": "9589361",
185
+ "name": "统计结果",
186
+ "font_class": "result",
187
+ "unicode": "e64c",
188
+ "unicode_decimal": 58956
189
+ },
190
+ {
191
+ "icon_id": "19544305",
192
+ "name": "分析卡片",
193
+ "font_class": "analysis",
194
+ "unicode": "e72e",
195
+ "unicode_decimal": 59182
196
+ },
197
+ {
198
+ "icon_id": "11755927",
199
+ "name": "对",
200
+ "font_class": "select",
201
+ "unicode": "e701",
202
+ "unicode_decimal": 59137
203
+ },
204
+ {
205
+ "icon_id": "13303552",
206
+ "name": "http",
207
+ "font_class": "Http",
208
+ "unicode": "e668",
209
+ "unicode_decimal": 58984
210
+ },
211
+ {
212
+ "icon_id": "13752783",
213
+ "name": "问号",
214
+ "font_class": "question",
215
+ "unicode": "e60e",
216
+ "unicode_decimal": 58894
217
+ },
218
+ {
219
+ "icon_id": "8334931",
220
+ "name": "运维中心",
221
+ "font_class": "monitor",
222
+ "unicode": "e61f",
223
+ "unicode_decimal": 58911
224
+ },
225
+ {
226
+ "icon_id": "12268077",
227
+ "name": "算法包管理",
228
+ "font_class": "algorithm_lab",
229
+ "unicode": "e607",
230
+ "unicode_decimal": 58887
231
+ },
232
+ {
233
+ "icon_id": "13210919",
234
+ "name": "视觉计算处理器",
235
+ "font_class": "engine",
236
+ "unicode": "e610",
237
+ "unicode_decimal": 58896
238
+ },
239
+ {
240
+ "icon_id": "7674872",
241
+ "name": "用户",
242
+ "font_class": "user",
243
+ "unicode": "e713",
244
+ "unicode_decimal": 59155
245
+ },
246
+ {
247
+ "icon_id": "11688055",
248
+ "name": "退出登录",
249
+ "font_class": "logout",
250
+ "unicode": "e611",
251
+ "unicode_decimal": 58897
252
+ },
253
+ {
254
+ "icon_id": "14559270",
255
+ "name": "大屏展示",
256
+ "font_class": "screen",
257
+ "unicode": "e606",
258
+ "unicode_decimal": 58886
259
+ },
260
+ {
261
+ "icon_id": "14683074",
262
+ "name": "修改密码",
263
+ "font_class": "password",
264
+ "unicode": "e605",
265
+ "unicode_decimal": 58885
266
+ },
267
+ {
268
+ "icon_id": "344281",
269
+ "name": "消息通知",
270
+ "font_class": "news",
271
+ "unicode": "e638",
272
+ "unicode_decimal": 58936
273
+ },
274
+ {
275
+ "icon_id": "8094195",
276
+ "name": "记录",
277
+ "font_class": "record",
278
+ "unicode": "e648",
279
+ "unicode_decimal": 58952
280
+ },
281
+ {
282
+ "icon_id": "15946868",
283
+ "name": "首页",
284
+ "font_class": "home",
285
+ "unicode": "e609",
286
+ "unicode_decimal": 58889
287
+ },
288
+ {
289
+ "icon_id": "521045",
290
+ "name": "JSON格式化",
291
+ "font_class": "json",
292
+ "unicode": "e61a",
293
+ "unicode_decimal": 58906
294
+ },
295
+ {
296
+ "icon_id": "1308544",
297
+ "name": "754编辑器_代码",
298
+ "font_class": "code",
299
+ "unicode": "e654",
300
+ "unicode_decimal": 58964
301
+ },
302
+ {
303
+ "icon_id": "16092271",
304
+ "name": "流程图",
305
+ "font_class": "diagram",
306
+ "unicode": "e60a",
307
+ "unicode_decimal": 58890
308
+ },
309
+ {
310
+ "icon_id": "741054",
311
+ "name": "平台管理",
312
+ "font_class": "setting",
313
+ "unicode": "e84b",
314
+ "unicode_decimal": 59467
315
+ },
316
+ {
317
+ "icon_id": "1472570",
318
+ "name": "配置数据源",
319
+ "font_class": "datasource",
320
+ "unicode": "e62e",
321
+ "unicode_decimal": 58926
322
+ },
323
+ {
324
+ "icon_id": "5961310",
325
+ "name": "流计算",
326
+ "font_class": "stream",
327
+ "unicode": "ec56",
328
+ "unicode_decimal": 60502
329
+ },
330
+ {
331
+ "icon_id": "4772840",
332
+ "name": "数据接入—Kafka集群",
333
+ "font_class": "Kafka",
334
+ "unicode": "e64f",
335
+ "unicode_decimal": 58959
336
+ },
337
+ {
338
+ "icon_id": "7193673",
339
+ "name": "表单",
340
+ "font_class": "Table",
341
+ "unicode": "e72d",
342
+ "unicode_decimal": 59181
343
+ },
344
+ {
345
+ "icon_id": "7556314",
346
+ "name": "Postgresql",
347
+ "font_class": "PostgreSql",
348
+ "unicode": "e63b",
349
+ "unicode_decimal": 58939
350
+ },
351
+ {
352
+ "icon_id": "11520190",
353
+ "name": "数据源",
354
+ "font_class": "link",
355
+ "unicode": "e636",
356
+ "unicode_decimal": 58934
357
+ },
358
+ {
359
+ "icon_id": "13328246",
360
+ "name": "files",
361
+ "font_class": "LocalFileSystem",
362
+ "unicode": "e600",
363
+ "unicode_decimal": 58880
364
+ },
365
+ {
366
+ "icon_id": "13723265",
367
+ "name": "cassandra",
368
+ "font_class": "Cassandra",
369
+ "unicode": "e74f",
370
+ "unicode_decimal": 59215
371
+ },
372
+ {
373
+ "icon_id": "14095342",
374
+ "name": "数据库",
375
+ "font_class": "DataBase",
376
+ "unicode": "e797",
377
+ "unicode_decimal": 59287
378
+ }
379
+ ]
380
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.2.2",
4
+ "version": "1.2.4",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",