@byteluck-fe/model-driven-upgrade 6.2.0-2-beta.3 → 7.0.0-1-bate1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-upgrade",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-1-bate1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-controls": "
|
|
30
|
-
"@byteluck-fe/model-driven-core": "
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "
|
|
29
|
+
"@byteluck-fe/model-driven-controls": "7.0.0-1-bate1",
|
|
30
|
+
"@byteluck-fe/model-driven-core": "7.0.0-1-bate1",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "7.0.0-1-bate1",
|
|
32
32
|
"compare-versions": "6.0.0-rc.1",
|
|
33
33
|
"tslib": "^2.1.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "c425879175682ea5d63f6c1e2745e04a01ca06dc"
|
|
36
36
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Description: subtable-column 数据转换
|
|
3
|
-
* @Autor: SuperLucky-Q
|
|
4
|
-
* @Date: 2024-01-22 14:16:13
|
|
5
|
-
* @LastEditors: SuperLuckyqi
|
|
6
|
-
* @LastEditTime: 2024-01-22 14:19:43
|
|
7
|
-
*/ import { loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
8
|
-
var dataCleaner = function(schemaItems, payload) {
|
|
9
|
-
var isArray = Array.isArray(schemaItems);
|
|
10
|
-
var schemaArray = isArray ? schemaItems : [
|
|
11
|
-
schemaItems
|
|
12
|
-
];
|
|
13
|
-
var new_schema = loop(schemaArray, function(item) {
|
|
14
|
-
return conversion(item, payload);
|
|
15
|
-
});
|
|
16
|
-
return isArray ? new_schema : new_schema[0];
|
|
17
|
-
};
|
|
18
|
-
function conversion(schema, payload) {
|
|
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
|
-
});
|
|
31
|
-
}
|
|
32
|
-
return schema;
|
|
33
|
-
}
|
|
34
|
-
export { dataCleaner };
|