@byteluck-fe/model-driven-upgrade 6.1.0-2-beta.3 → 6.1.0-2-beta.5

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.
@@ -16,15 +16,18 @@ var dataCleaner = function(schemaItems, payload) {
16
16
  return isArray ? new_schema : new_schema[0];
17
17
  };
18
18
  function conversion(schema, payload) {
19
- if ([
20
- CONTROL_TYPE.INPUT,
21
- CONTROL_TYPE.TEXTAREA,
22
- CONTROL_TYPE.RICH_TEXT
23
- ].includes(schema.type)) {
24
- var _schema_parent;
25
- if (((_schema_parent = schema.parent) === null || _schema_parent === void 0 ? void 0 : _schema_parent.type) === CONTROL_TYPE.SUBTABLE_COLUMN) {
26
- schema.props.lineEllipsis = 1;
27
- }
19
+ if (schema.type === CONTROL_TYPE.SUBTABLE) {
20
+ schema.props.headers.forEach(function(item) {
21
+ if ([
22
+ CONTROL_TYPE.INPUT,
23
+ CONTROL_TYPE.TEXTAREA,
24
+ CONTROL_TYPE.RICH_TEXT
25
+ ].includes(item.children[0].type)) {
26
+ if (item.children[0].props.auto_height === undefined) {
27
+ item.children[0].props.line_ellipsis = 1;
28
+ }
29
+ }
30
+ });
28
31
  }
29
32
  return schema;
30
33
  }