@byteluck-fe/model-driven-upgrade 2.8.1-beta.12 → 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.
- package/dist/esm/upgrade/v3_1.js +4 -1
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/esm/upgrade/v3_1.js
CHANGED
|
@@ -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 : [
|
|
@@ -163,6 +163,9 @@ function conversion(schema, payload) {
|
|
|
163
163
|
if (item.props.flex === undefined) {
|
|
164
164
|
item.props.flex = 1;
|
|
165
165
|
}
|
|
166
|
+
if (item.props.auto_width === undefined) {
|
|
167
|
+
item.props.auto_width = new AutoWidth();
|
|
168
|
+
}
|
|
166
169
|
});
|
|
167
170
|
}
|
|
168
171
|
//2023-12-24 qiyu 保证低版本升级上来时,默认是开启的
|