ronds-metadata 1.1.93 → 1.1.95

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.
Files changed (32) hide show
  1. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +2 -0
  2. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.js +17 -0
  3. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +2 -0
  4. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.js +17 -0
  5. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +23 -2
  6. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +2 -0
  7. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.js +17 -0
  8. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +2 -0
  9. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.js +17 -0
  10. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +2 -0
  11. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.js +17 -0
  12. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.js +8 -4
  13. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +4 -0
  14. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.js +13 -1
  15. package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +3 -2
  16. package/es/comps/FormGenerator/comps/Canvas/core/index.js +40 -16
  17. package/es/comps/FormGenerator/comps/Canvas/index.js +71 -4
  18. package/es/comps/FormGenerator/comps/Settings/index.js +31 -11
  19. package/es/comps/FormGenerator/settings/index.d.ts +170 -2
  20. package/es/comps/FormGenerator/settings/index.js +46 -4
  21. package/es/comps/FormGenerator/settings/ruleConfig.js +1 -3
  22. package/es/comps/FormGenerator/transformer.d.ts +5 -11
  23. package/es/comps/FormGenerator/transformer.js +62 -16
  24. package/es/comps/JsonView/index.less +41 -41
  25. package/es/comps/MetadataEdit/index.less +10 -10
  26. package/es/comps/MetadataEdit/type.d.ts +20 -20
  27. package/es/comps/MetadataForm/DataCell/Select.js +30 -14
  28. package/es/comps/MetadataForm/DataCell/layout/TableArray.js +8 -0
  29. package/es/comps/MetadataForm/utils.js +3 -3
  30. package/es/framework/metadata/types.d.ts +98 -98
  31. package/es/theme.less +77 -77
  32. package/package.json +94 -94
@@ -1008,6 +1008,62 @@ export declare const mutiSelectParam: {
1008
1008
  isMutiple: boolean;
1009
1009
  };
1010
1010
  };
1011
+ export declare const colorParam: {
1012
+ type: string;
1013
+ schema: {
1014
+ id: string;
1015
+ type: string;
1016
+ properties: ({
1017
+ id: string;
1018
+ type: string;
1019
+ fields: {
1020
+ id: string;
1021
+ type: string;
1022
+ refId: string;
1023
+ value: {
1024
+ label: string;
1025
+ };
1026
+ }[];
1027
+ } | {
1028
+ id: string;
1029
+ type: string;
1030
+ fields: {
1031
+ id: string;
1032
+ type: string;
1033
+ refId: string;
1034
+ value: {
1035
+ common: {
1036
+ label: string;
1037
+ };
1038
+ 'common-en-US': {};
1039
+ };
1040
+ }[];
1041
+ })[];
1042
+ types: {
1043
+ id: string;
1044
+ type: string;
1045
+ properties: {
1046
+ id: string;
1047
+ type: string;
1048
+ fields: {
1049
+ id: string;
1050
+ type: string;
1051
+ refId: string;
1052
+ value: {
1053
+ text: {};
1054
+ common: {
1055
+ label: string;
1056
+ };
1057
+ 'common-en-US': {};
1058
+ };
1059
+ }[];
1060
+ }[];
1061
+ }[];
1062
+ }[];
1063
+ rule: {
1064
+ type: string;
1065
+ };
1066
+ };
1011
1067
  export declare const basicComps: {
1012
1068
  id: string;
1013
1069
  name: string;
@@ -1054,6 +1110,117 @@ export declare const basicComps: {
1054
1110
  }[];
1055
1111
  };
1056
1112
  }[];
1113
+ export declare const complexComps: {
1114
+ id: string;
1115
+ name: string;
1116
+ type: string;
1117
+ param: {
1118
+ type: string;
1119
+ schema: {
1120
+ id: string;
1121
+ type: string;
1122
+ properties: ({
1123
+ id: string;
1124
+ type: string;
1125
+ fields: {
1126
+ id: string;
1127
+ type: string;
1128
+ refId: string;
1129
+ value: {
1130
+ label: string;
1131
+ };
1132
+ }[];
1133
+ } | {
1134
+ id: string;
1135
+ type: string;
1136
+ fields: {
1137
+ id: string;
1138
+ type: string;
1139
+ refId: string;
1140
+ value: {
1141
+ common: {
1142
+ label: string;
1143
+ };
1144
+ 'common-en-US': {};
1145
+ };
1146
+ }[];
1147
+ })[];
1148
+ types: {
1149
+ id: string;
1150
+ type: string;
1151
+ properties: {
1152
+ id: string;
1153
+ type: string;
1154
+ fields: {
1155
+ id: string;
1156
+ type: string;
1157
+ refId: string;
1158
+ value: {
1159
+ text: {};
1160
+ common: {
1161
+ label: string;
1162
+ };
1163
+ 'common-en-US': {};
1164
+ };
1165
+ }[];
1166
+ }[];
1167
+ }[];
1168
+ }[];
1169
+ };
1170
+ }[];
1171
+ export declare const objParam: {
1172
+ type: string;
1173
+ schema: {
1174
+ id: string;
1175
+ type: string;
1176
+ properties: ({
1177
+ id: string;
1178
+ type: string;
1179
+ fields: {
1180
+ id: string;
1181
+ type: string;
1182
+ refId: string;
1183
+ value: {
1184
+ label: string;
1185
+ };
1186
+ }[];
1187
+ } | {
1188
+ id: string;
1189
+ type: string;
1190
+ fields: {
1191
+ id: string;
1192
+ type: string;
1193
+ refId: string;
1194
+ value: {
1195
+ common: {
1196
+ label: string;
1197
+ };
1198
+ 'common-en-US': {};
1199
+ };
1200
+ }[];
1201
+ })[];
1202
+ types: {
1203
+ id: string;
1204
+ type: string;
1205
+ properties: {
1206
+ id: string;
1207
+ type: string;
1208
+ fields: {
1209
+ id: string;
1210
+ type: string;
1211
+ refId: string;
1212
+ value: {
1213
+ text: {};
1214
+ common: {
1215
+ label: string;
1216
+ };
1217
+ 'common-en-US': {};
1218
+ };
1219
+ }[];
1220
+ }[];
1221
+ }[];
1222
+ }[];
1223
+ };
1057
1224
  export declare const layoutComps: {
1058
1225
  id: string;
1059
1226
  name: string;
@@ -1228,7 +1395,7 @@ export declare const formSettingSchema: {
1228
1395
  };
1229
1396
  common: {
1230
1397
  label: string;
1231
- tooltip: string;
1398
+ help: string;
1232
1399
  depend: {};
1233
1400
  };
1234
1401
  };
@@ -1307,7 +1474,7 @@ export declare const formSetting: {
1307
1474
  };
1308
1475
  common: {
1309
1476
  label: string;
1310
- tooltip: string;
1477
+ help: string;
1311
1478
  depend: {};
1312
1479
  };
1313
1480
  };
@@ -1326,5 +1493,6 @@ export declare const streamEventType: {
1326
1493
  onNodeCopy: string;
1327
1494
  onClearCanvas: string;
1328
1495
  onSettingValueChange: string;
1496
+ onTypesChange: string;
1329
1497
  onDropOver: string;
1330
1498
  };
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  /*
4
4
  * @Author: wangxian
5
5
  * @Date: 2023-02-06 08:24:17
6
- * @LastEditTime: 2023-02-14 14:30:30
6
+ * @LastEditTime: 2023-02-17 08:53:34
7
7
  */
8
8
  import { RefRule, Rule } from './ruleConfig';
9
9
  export var inputSchema = [{
@@ -93,6 +93,13 @@ export var mutiSelectParam = {
93
93
  rule: {
94
94
  isMutiple: true
95
95
  }
96
+ };
97
+ export var colorParam = {
98
+ type: 'text',
99
+ schema: settingSchema.textarea,
100
+ rule: {
101
+ type: 'colorPicker'
102
+ }
96
103
  }; // 基础组件列表渲染
97
104
 
98
105
  export var basicComps = [{
@@ -130,13 +137,44 @@ export var basicComps = [{
130
137
  name: '下拉多选',
131
138
  type: 'mutiSelect',
132
139
  param: mutiSelectParam
133
- }]; // 布局组件列表渲染
140
+ }]; // 基础组件列表渲染
141
+
142
+ export var complexComps = [{
143
+ id: 'color',
144
+ name: '颜色选择',
145
+ type: 'color',
146
+ param: colorParam
147
+ }, {
148
+ id: 'password',
149
+ name: '密码框',
150
+ type: 'password',
151
+ param: inputParam
152
+ }, {
153
+ id: 'upload',
154
+ name: '上传',
155
+ type: 'upload',
156
+ param: textareaParam
157
+ }, {
158
+ id: 'checkbox',
159
+ name: '多选框',
160
+ type: 'checkbox',
161
+ param: dateParam
162
+ }, {
163
+ id: 'radio',
164
+ name: '单选框',
165
+ type: 'radio',
166
+ param: numberParam
167
+ }];
168
+ export var objParam = {
169
+ type: 'ref',
170
+ schema: settingSchema.input
171
+ }; // 布局组件列表渲染
134
172
 
135
173
  export var layoutComps = [{
136
174
  id: 'obj',
137
175
  name: '对象',
138
176
  type: 'obj',
139
- param: inputParam
177
+ param: objParam
140
178
  }, {
141
179
  id: 'list',
142
180
  name: '常规列表',
@@ -147,6 +185,9 @@ export var layoutComps = [{
147
185
  export var sidebarCtx = [{
148
186
  name: '基础组件',
149
187
  children: basicComps
188
+ }, {
189
+ name: '高级组件',
190
+ children: complexComps
150
191
  }, {
151
192
  name: '布局组件',
152
193
  children: layoutComps
@@ -230,7 +271,7 @@ export var formSettingSchema = [{
230
271
  },
231
272
  common: {
232
273
  label: '标签宽度',
233
- tooltip: '不填自适应默认宽度',
274
+ help: '不填自适应默认宽度',
234
275
  depend: {}
235
276
  }
236
277
  }
@@ -256,5 +297,6 @@ export var streamEventType = {
256
297
  onNodeCopy: 'onNodeCopy',
257
298
  onClearCanvas: 'onClearCanvas',
258
299
  onSettingValueChange: 'onSettingValueChange',
300
+ onTypesChange: 'onTypesChange',
259
301
  onDropOver: 'onDropOver'
260
302
  };
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  /*
4
4
  * @Author: wangxian
5
5
  * @Date: 2023-02-08 10:36:25
6
- * @LastEditTime: 2023-02-10 19:38:32
6
+ * @LastEditTime: 2023-02-16 14:43:53
7
7
  */
8
8
  import { DEFAULT_DATE_FORMAT } from '../../../comps/MetadataForm/DataCell/Input';
9
9
  export var Rule = {
@@ -201,8 +201,6 @@ export var Rule = {
201
201
  value: 'textarea'
202
202
  }, {
203
203
  value: 'upload'
204
- }, {
205
- value: 'buttonCell'
206
204
  }],
207
205
  type: 'enum',
208
206
  fields: [{
@@ -1,13 +1,7 @@
1
1
  import { FG } from '../../comps/FormGenerator/index.d';
2
- export declare const transFG2Schema: (nodes: FG.Node[], settings: any) => {
3
- id: string;
4
- type: string;
5
- properties: any[];
6
- fields: {
7
- id: string;
8
- type: string;
9
- refId: string;
10
- value: {};
11
- }[];
2
+ export declare const transFG2Schema: (nodes: FG.Node[], settings: any, _types?: any, schemaId?: string) => any;
3
+ export declare const transSchema2FG: (schema: any) => {
4
+ nodes: any[];
5
+ setting: any[];
12
6
  types: any[];
13
- }[];
7
+ };
@@ -4,7 +4,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  /*
5
5
  * @Author: wangxian
6
6
  * @Date: 2023-02-08 14:45:46
7
- * @LastEditTime: 2023-02-10 18:18:23
7
+ * @LastEditTime: 2023-02-17 17:22:08
8
8
  */
9
9
  import { deepClone } from '../../utils';
10
10
  var EMPTY_OBJ = [{
@@ -16,8 +16,7 @@ var EMPTY_OBJ = [{
16
16
  type: 'ref',
17
17
  refId: 'com.ronds.schema.default.Rule.Form',
18
18
  value: {}
19
- }],
20
- types: []
19
+ }]
21
20
  }];
22
21
  var EMPTY_PROP = {
23
22
  id: '',
@@ -36,7 +35,12 @@ var renderProp = function renderProp(node, setting) {
36
35
  var _setting = setting && deepClone(setting) || {};
37
36
 
38
37
  _prop.id = (_setting === null || _setting === void 0 ? void 0 : _setting.id) || node.id;
39
- _prop.type = node.param.type;
38
+ _prop.type = node.param.type; // ref类型加上refId
39
+
40
+ if (node.param.type === 'ref') {
41
+ _prop.refId = "".concat(_prop.id, "_ref");
42
+ }
43
+
40
44
  _prop.fields[0].value = _objectSpread(_objectSpread({}, _setting), {}, _defineProperty({
41
45
  label: (_setting === null || _setting === void 0 ? void 0 : _setting.label) || node.name
42
46
  }, node.param.type, _objectSpread({}, node.param.rule || _objectSpread({}, _setting[node.param.type]))));
@@ -44,23 +48,65 @@ var renderProp = function renderProp(node, setting) {
44
48
  }; // FG配置生成 metedata
45
49
 
46
50
 
47
- export var transFG2Schema = function transFG2Schema(nodes, settings) {
48
- var schema = deepClone(EMPTY_OBJ);
49
- var props = [];
51
+ export var transFG2Schema = function transFG2Schema(nodes, settings, _types, schemaId) {
52
+ try {
53
+ var schema = deepClone(EMPTY_OBJ);
54
+
55
+ if (schemaId) {
56
+ schema[0].id = schemaId;
57
+ }
58
+
59
+ var props = [];
60
+ var types = [];
61
+
62
+ for (var i = 0; i < nodes.length; i++) {
63
+ var _prop = renderProp(nodes[i], settings && settings[nodes[i].id]);
64
+
65
+ props.push(_prop);
66
+ }
50
67
 
51
- for (var i = 0; i < nodes.length; i++) {
52
- var _prop = renderProp(nodes[i], settings[nodes[i].id]);
68
+ schema[0].properties = [].concat(props);
53
69
 
54
- props.push(_prop);
70
+ if (settings && (settings === null || settings === void 0 ? void 0 : settings.formSetting)) {
71
+ schema[0].fields[0].value = deepClone(settings.formSetting);
72
+ } else {
73
+ delete schema[0].fields;
74
+ }
75
+
76
+ if (_types) {
77
+ var typeKeys = Object.keys(_types);
78
+
79
+ for (var _i = 0; _i < typeKeys.length; _i++) {
80
+ var _type = transFG2Schema(_types[typeKeys[_i]].nodes, settings["".concat(typeKeys[_i], "_ref")], undefined, "".concat(_types[typeKeys[_i]].id, "_ref"));
81
+
82
+ types.push(_type[0]);
83
+ }
84
+ }
85
+
86
+ if (types.length > 0) {
87
+ schema[0].types = [].concat(types);
88
+ }
89
+
90
+ return schema;
91
+ } catch (error) {
92
+ console.warn('transFG2Schema.err', error);
55
93
  }
94
+ };
95
+
96
+ var processProps = function processProps(prop) {}; // metadata 生成FG配置
97
+
56
98
 
57
- schema[0].properties = [].concat(props);
99
+ export var transSchema2FG = function transSchema2FG(schema) {
100
+ var res = {
101
+ nodes: [],
102
+ setting: [],
103
+ types: []
104
+ };
105
+ var _props = schema[0].properties; // { id: 'input', name: '输入框', type: 'input', param: inputParam },
58
106
 
59
- if (settings.formSetting) {
60
- schema[0].fields[0].value = deepClone(settings.formSetting);
61
- } else {
62
- delete schema[0].fields;
107
+ for (var i = 0; i < _props.length; i++) {
108
+ var obj = processProps(_props[i]);
63
109
  }
64
110
 
65
- return schema;
111
+ return res;
66
112
  };
@@ -1,41 +1,41 @@
1
- pre {
2
- margin: 0;
3
- font-weight: 900;
4
- font-size: 14px;
5
- }
6
- .string {
7
- color: #3ab54a;
8
- }
9
- .number {
10
- color: #25aae2;
11
- }
12
- .boolean {
13
- color: #f98280;
14
- }
15
- .null {
16
- color: #f1592a;
17
- }
18
- .width-10 {
19
- width: 10px;
20
- }
21
- .key {
22
- color: #92278f;
23
- }
24
- .open {
25
- display: inline-block;
26
- width: 12px;
27
- height: 12px;
28
- background: url('./icon/close.png') no-repeat;
29
- background-size: 100% 100%;
30
- vertical-align: middle;
31
- cursor: pointer;
32
- }
33
- .close {
34
- display: inline-block;
35
- width: 12px;
36
- height: 12px;
37
- background: url('./icon/open.png') no-repeat;
38
- background-size: 100% 100%;
39
- vertical-align: middle;
40
- cursor: pointer;
41
- }
1
+ pre {
2
+ margin: 0;
3
+ font-weight: 900;
4
+ font-size: 14px;
5
+ }
6
+ .string {
7
+ color: #3ab54a;
8
+ }
9
+ .number {
10
+ color: #25aae2;
11
+ }
12
+ .boolean {
13
+ color: #f98280;
14
+ }
15
+ .null {
16
+ color: #f1592a;
17
+ }
18
+ .width-10 {
19
+ width: 10px;
20
+ }
21
+ .key {
22
+ color: #92278f;
23
+ }
24
+ .open {
25
+ display: inline-block;
26
+ width: 12px;
27
+ height: 12px;
28
+ background: url('./icon/close.png') no-repeat;
29
+ background-size: 100% 100%;
30
+ vertical-align: middle;
31
+ cursor: pointer;
32
+ }
33
+ .close {
34
+ display: inline-block;
35
+ width: 12px;
36
+ height: 12px;
37
+ background: url('./icon/open.png') no-repeat;
38
+ background-size: 100% 100%;
39
+ vertical-align: middle;
40
+ cursor: pointer;
41
+ }
@@ -1,10 +1,10 @@
1
- .metadata-edit {
2
- height: 100%;
3
- width: 100%;
4
- .ant-row {
5
- display: block;
6
- }
7
- .pr-10 {
8
- padding-right: 10px;
9
- }
10
- }
1
+ .metadata-edit {
2
+ height: 100%;
3
+ width: 100%;
4
+ .ant-row {
5
+ display: block;
6
+ }
7
+ .pr-10 {
8
+ padding-right: 10px;
9
+ }
10
+ }
@@ -1,20 +1,20 @@
1
- export interface IMetaFileds {
2
- id: string;
3
- type: 'object';
4
- properties: any[];
5
- value: any;
6
- }
7
-
8
- export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
9
-
10
- export type IMetaProperty = {
11
- /**
12
- * 属性的名称
13
- */
14
- id: string;
15
- /**
16
- * 类型
17
- */
18
- type: string;
19
- enum?: any[];
20
- };
1
+ export interface IMetaFileds {
2
+ id: string;
3
+ type: 'object';
4
+ properties: any[];
5
+ value: any;
6
+ }
7
+
8
+ export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
9
+
10
+ export type IMetaProperty = {
11
+ /**
12
+ * 属性的名称
13
+ */
14
+ id: string;
15
+ /**
16
+ * 类型
17
+ */
18
+ type: string;
19
+ enum?: any[];
20
+ };
@@ -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-14 16:38:38
34
+ * @LastEditTime: 2023-02-16 14:32:47
35
35
  */
36
36
  import React from 'react';
37
37
  import { MetadataFormContext, MetadataRefContext } from '../interface';
@@ -41,6 +41,7 @@ import { deepClone } from '../../../utils';
41
41
  import { useAsyncMemo } from '../../../framework/hooks/use-async-memo';
42
42
  import { tr } from '../../../framework/locale';
43
43
  import useObservable from '../../../framework/rxjs-hooks/useObservable';
44
+ import { assign } from '../utils';
44
45
 
45
46
  function Index(props) {
46
47
  var _extraInfo$depend, _extraInfo$http6, _extraInfo$http7, _extraInfo$http8, _extraInfo$http9;
@@ -91,11 +92,19 @@ function Index(props) {
91
92
  var _watchArr = _watch.split(',');
92
93
 
93
94
  if (_watchArr.length === 1) {
94
- var _p$payload, _p$payload2, _p$payload3;
95
+ var evalString = '';
95
96
 
96
- var _value = p === null || p === void 0 ? void 0 : (_p$payload = p.payload) === null || _p$payload === void 0 ? void 0 : _p$payload.allVals[_watchArr[0]];
97
+ for (var i = 0; i < name.length; i++) {
98
+ if (i < name.length - 1) {
99
+ evalString = "".concat(evalString, "[name[").concat(i, "]]");
100
+ }
101
+ }
102
+
103
+ var _value = eval("p?.payload?.allVals".concat(evalString, "[_watchArr[0]]"));
104
+
105
+ var _changeData = eval("p?.payload?.val".concat(evalString, "[_watchArr[0]]"));
97
106
 
98
- if (_value && (p === null || p === void 0 ? void 0 : (_p$payload2 = p.payload) === null || _p$payload2 === void 0 ? void 0 : _p$payload2.val[_watchArr[0]])) {
107
+ if (_value && _changeData) {
99
108
  if ((extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.http.method) === 'post') {
100
109
  var _wRef = watchValueRef.current || {};
101
110
 
@@ -108,36 +117,43 @@ function Index(props) {
108
117
  }
109
118
  }
110
119
 
111
- if (p === null || p === void 0 ? void 0 : (_p$payload3 = p.payload) === null || _p$payload3 === void 0 ? void 0 : _p$payload3.val[_watchArr[0]]) {
120
+ if (_changeData) {
112
121
  setTimeout(function () {
113
- formContext.form.setFieldsValue(_defineProperty({}, id, undefined));
122
+ var v = {};
123
+ assign(name, undefined, v);
124
+ formContext.form.setFieldsValue(_objectSpread({}, v));
114
125
  }, 100);
115
126
  }
116
127
  } else {
117
128
  var b = false;
118
129
 
119
- for (var i = 0; i < _watchArr.length; i++) {
120
- var _p$payload4;
130
+ for (var _i = 0; _i < _watchArr.length; _i++) {
131
+ var w = _watchArr[_i];
132
+ var _evalString = '';
121
133
 
122
- var w = _watchArr[i];
134
+ for (var _i2 = 0; _i2 < name.length; _i2++) {
135
+ if (_i2 < name.length - 1) {
136
+ _evalString = "".concat(_evalString, "[name[").concat(_i2, "]]");
137
+ }
138
+ }
123
139
 
124
- var _value2 = p === null || p === void 0 ? void 0 : (_p$payload4 = p.payload) === null || _p$payload4 === void 0 ? void 0 : _p$payload4.allVals[w];
140
+ var _value2 = eval("p?.payload?.allVals".concat(_evalString, "[w]"));
125
141
 
126
142
  if (_value2) {
127
- var _p$payload5;
128
-
129
143
  var _wRef2 = watchValueRef.current || {};
130
144
 
131
145
  _wRef2[w] = _value2;
132
146
  watchValueRef.current = _wRef2;
133
- b = p === null || p === void 0 ? void 0 : (_p$payload5 = p.payload) === null || _p$payload5 === void 0 ? void 0 : _p$payload5.val[w];
147
+ b = eval("p?.payload?.val".concat(_evalString, "[w]"));
134
148
  }
135
149
  }
136
150
 
137
151
  if (b) {
138
152
  setWatchValue(_objectSpread({}, watchValueRef.current));
139
153
  setTimeout(function () {
140
- formContext.form.setFieldsValue(_defineProperty({}, id, undefined));
154
+ var v = {};
155
+ assign(name, undefined, v);
156
+ formContext.form.setFieldsValue(_objectSpread({}, v));
141
157
  }, 100);
142
158
  }
143
159
  }