@byteluck-fe/model-driven-upgrade 5.3.0-1-beta4 → 5.3.1-2-zt
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": "5.3.
|
|
3
|
+
"version": "5.3.1-2-zt",
|
|
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": "5.3.
|
|
30
|
-
"@byteluck-fe/model-driven-core": "
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "
|
|
29
|
+
"@byteluck-fe/model-driven-controls": "5.3.1-2-zt",
|
|
30
|
+
"@byteluck-fe/model-driven-core": "2.23.0-beta.26-zt",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "2.23.0-beta.23-zt",
|
|
32
32
|
"compare-versions": "6.0.0-rc.1",
|
|
33
33
|
"tslib": "^2.1.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "863173a36f3466aef72aaa1a902f40f1db35d322"
|
|
36
36
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
2
|
-
var dataCleaner = function(schemaItems, payload) {
|
|
3
|
-
console.log(payload, 'payload');
|
|
4
|
-
var isArray = Array.isArray(schemaItems);
|
|
5
|
-
var schemaArray = isArray ? schemaItems : [
|
|
6
|
-
schemaItems
|
|
7
|
-
];
|
|
8
|
-
var new_schema = loop(schemaArray, function(item) {
|
|
9
|
-
return conversion(item, payload);
|
|
10
|
-
});
|
|
11
|
-
return isArray ? new_schema : new_schema[0];
|
|
12
|
-
};
|
|
13
|
-
function conversion(schema, payload) {
|
|
14
|
-
//电子签章增加签署位置 默认为 free 自由签署
|
|
15
|
-
if (schema.type === CONTROL_TYPE.ELECTRONIC_SIGNATURE) {
|
|
16
|
-
var electronicSignatureControl = schema;
|
|
17
|
-
if (electronicSignatureControl.props.signature_config.undersigned_list.length) {
|
|
18
|
-
electronicSignatureControl.props.signature_config.undersigned_list.forEach(function(item) {
|
|
19
|
-
if ((item === null || item === void 0 ? void 0 : item.signature_position) === undefined) {
|
|
20
|
-
item.signature_position = 'free';
|
|
21
|
-
item.platform_auto_sign = false;
|
|
22
|
-
item.pos_x = 0;
|
|
23
|
-
item.pos_y = 0;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
schema = electronicSignatureControl;
|
|
28
|
-
}
|
|
29
|
-
return schema;
|
|
30
|
-
}
|
|
31
|
-
export { dataCleaner };
|