@byteluck-fe/model-driven-upgrade 2.8.1-beta.11 → 2.8.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.
@@ -3,7 +3,7 @@
3
3
  * @Autor: SuperLucky-Q
4
4
  * @Date: 2023-02-16 14:45:22
5
5
  * @LastEditors: SuperLuckyqi
6
- * @LastEditTime: 2023-12-22 09:29:55
6
+ * @LastEditTime: 2024-01-05 15:23:17
7
7
  */ function _define_property(obj, key, value) {
8
8
  if (key in obj) {
9
9
  Object.defineProperty(obj, key, {
@@ -18,7 +18,7 @@
18
18
  return obj;
19
19
  }
20
20
  import { loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
21
- import { MetaAutoWidth } from "@byteluck-fe/model-driven-core";
21
+ import { MetaAutoWidth, AutoWidth } from "@byteluck-fe/model-driven-core";
22
22
  var dataCleaner = function(schemaItems, payload) {
23
23
  var isArray = Array.isArray(schemaItems);
24
24
  var schemaArray = isArray ? schemaItems : [
@@ -160,6 +160,12 @@ function conversion(schema, payload) {
160
160
  item.props.show_type = "icon";
161
161
  }
162
162
  }
163
+ if (item.props.flex === undefined) {
164
+ item.props.flex = 1;
165
+ }
166
+ if (item.props.auto_width === undefined) {
167
+ item.props.auto_width = new AutoWidth();
168
+ }
163
169
  });
164
170
  }
165
171
  //2023-12-24 qiyu 保证低版本升级上来时,默认是开启的