@byteluck-fe/model-driven-upgrade 2.3.1-beta.1 → 2.3.1-beta.18
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/v1_0.js +4 -2
- package/dist/esm/upgrade/v3_1.js +3 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/VersionBuilder.d.ts +11 -11
- package/dist/types/index.d.ts +2 -2
- package/dist/types/types.d.ts +11 -11
- package/dist/types/upgrade/index.d.ts +17 -17
- package/dist/types/upgrade/v1_0.d.ts +3 -3
- package/dist/types/upgrade/v2_0.d.ts +3 -3
- package/dist/types/upgrade/v2_1.d.ts +3 -3
- package/dist/types/upgrade/v2_10.d.ts +3 -3
- package/dist/types/upgrade/v2_2.d.ts +3 -3
- package/dist/types/upgrade/v2_3.d.ts +3 -3
- package/dist/types/upgrade/v2_4.d.ts +3 -3
- package/dist/types/upgrade/v2_5.d.ts +3 -3
- package/dist/types/upgrade/v2_6.d.ts +3 -3
- package/dist/types/upgrade/v2_7.d.ts +3 -3
- package/dist/types/upgrade/v2_8.d.ts +3 -3
- package/dist/types/upgrade/v2_9.d.ts +3 -3
- package/dist/types/upgrade/v3_0.d.ts +3 -3
- package/dist/types/upgrade/v3_1.d.ts +3 -3
- package/package.json +6 -5
package/dist/esm/upgrade/v1_0.js
CHANGED
|
@@ -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 =
|
|
203
|
-
|
|
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;
|
package/dist/esm/upgrade/v3_1.js
CHANGED
|
@@ -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.
|
|
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;
|