@nokecy/qc-ui 1.1.83 → 1.1.84

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.
@@ -12,7 +12,8 @@ var containsIndexComponent = function containsIndexComponent(schema) {
12
12
  var _schema$properties;
13
13
  if (!schema) return false;
14
14
  var component = schema['x-component'];
15
- if (typeof component === 'string' && /(?:^|\.)Index$/.test(component)) return true;
15
+ // ArrayTable.Index / ArrayBase.Index,以及业务常用的 ArrayTableIndex(还会把行号写进数据字段)
16
+ if (typeof component === 'string' && /(?:^|\.)(?:Array(?:Table)?)?Index$/.test(component)) return true;
16
17
  return Object.values((_schema$properties = schema.properties) !== null && _schema$properties !== void 0 ? _schema$properties : {}).some(containsIndexComponent);
17
18
  };
18
19
 
@@ -6,7 +6,8 @@ var containsIndexComponent = function containsIndexComponent(schema) {
6
6
  var _schema$properties;
7
7
  if (!schema) return false;
8
8
  var component = schema['x-component'];
9
- if (typeof component === 'string' && /(?:^|\.)Index$/.test(component)) return true;
9
+ // ArrayTable.Index / ArrayBase.Index,以及业务常用的 ArrayTableIndex(还会把行号写进数据字段)
10
+ if (typeof component === 'string' && /(?:^|\.)(?:Array(?:Table)?)?Index$/.test(component)) return true;
10
11
  return Object.values((_schema$properties = schema.properties) !== null && _schema$properties !== void 0 ? _schema$properties : {}).some(containsIndexComponent);
11
12
  };
12
13