@byteluck-fe/model-driven-upgrade 2.3.1-beta.1 → 2.3.1-beta.13

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.
@@ -199,8 +199,10 @@ function conversion(item, payload) {
199
199
  if (new_item.props.headers) {
200
200
  new_item.props.headers = new_item.props.headers.map(function(item, index) {
201
201
  var subtableColumn = new SubTableColumn.Designer();
202
- subtableColumn.props.widthType = item.header_width_config === "1" ? "auto" : "px";
203
- subtableColumn.props.width = item.header_width === "" ? 200 : Number(item.header_width);
202
+ // subtableColumn.props.widthType =
203
+ // item.header_width_config === '1' ? 'auto' : 'px'
204
+ // subtableColumn.props.width =
205
+ // item.header_width === '' ? 200 : Number(item.header_width)
204
206
  subtableColumn.props.caption = isLanguageObject(item.field_name) ? item.field_name["zh"] : item.field_name;
205
207
  var schema = subtableColumn.toSchema();
206
208
  schema.id = item.header_id;
@@ -23,8 +23,10 @@ function conversion(schema, payload) {
23
23
  item.props.meta_auto_width = new MetaAutoWidth();
24
24
  if (item.props.width_type === "px") {
25
25
  item.props.meta_auto_width.pc.width = item.props.width;
26
- item.props.meta_auto_width.mobile.width = item.props.width;
26
+ item.props.meta_auto_width.pc.width_type = "px";
27
27
  }
28
+ delete item.props.width;
29
+ delete item.props.width_type;
28
30
  });
29
31
  }
30
32
  return schema.props.headers;