@lemon-fe/components 1.4.22-alpha.2 → 1.4.22-alpha.3

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.
@@ -194,13 +194,15 @@ export default function FieldModal(props) {
194
194
  message: fieldModal.customColumnNameTextRequired
195
195
  }, {
196
196
  validator: function validator(_, val) {
197
- var _groups$find;
198
- if (groupId ? (_groups$find = groups.find(function (item) {
199
- return item.groupId === groupId;
200
- })) === null || _groups$find === void 0 || (_groups$find = _groups$find.children) === null || _groups$find === void 0 ? void 0 : _groups$find.some(function (item) {
201
- return item.headerName === val;
197
+ if (groupId ? groups.some(function (item) {
198
+ if (item.groupId === groupId) {
199
+ return item.children.some(function (child) {
200
+ return (typeof openProp === 'boolean' || child.colId !== (openProp === null || openProp === void 0 ? void 0 : openProp.id)) && child.headerName === val;
201
+ });
202
+ }
203
+ return false;
202
204
  }) : nodes.some(function (item) {
203
- return item.title === val;
205
+ return (typeof openProp === 'boolean' || item.id !== (openProp === null || openProp === void 0 ? void 0 : openProp.id)) && item.title === val;
204
206
  })) {
205
207
  return Promise.reject(new Error(fieldModal.idTooltip));
206
208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.4.22-alpha.2",
3
+ "version": "1.4.22-alpha.3",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://registry.npmjs.org"
60
60
  },
61
- "gitHead": "b558090241f16b9e2be6079f6d8a8fad1e212cb7"
61
+ "gitHead": "8689b1f8504006653c00dbb88c37b62e455a8148"
62
62
  }