@dckj-npm/lowcode-plugin-code-generator 1.3.6 → 1.3.8
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.
|
@@ -92,7 +92,8 @@ export function CodeGenActionBtn(_ref) {
|
|
|
92
92
|
solution: 'vuejs3',
|
|
93
93
|
schema: sanitizedSchemas,
|
|
94
94
|
flattenResult: true,
|
|
95
|
-
resourceList: resourceList
|
|
95
|
+
resourceList: resourceList,
|
|
96
|
+
workerJsUrl: '/standalone-worker.min.js'
|
|
96
97
|
});
|
|
97
98
|
case 9:
|
|
98
99
|
result = _context.sent;
|
package/es/utils/utils.js
CHANGED
|
@@ -93,12 +93,7 @@ export var getAllSchemaByResourceList = /*#__PURE__*/function () {
|
|
|
93
93
|
var storageKey = getLSName(scenarioName, item.id);
|
|
94
94
|
var localSchema = window.localStorage.getItem(storageKey);
|
|
95
95
|
if (!localSchema) {
|
|
96
|
-
|
|
97
|
-
return {
|
|
98
|
-
version: '1.0.0',
|
|
99
|
-
componentsTree: [],
|
|
100
|
-
componentsMap: []
|
|
101
|
-
};
|
|
96
|
+
throw new Error("\u672A\u627E\u5230\u9875\u9762 \"" + (item.title || item.id) + "\" \u7684 schema\uFF0C\u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u4FDD\u5B58\u8BE5\u9875\u9762\u3002");
|
|
102
97
|
}
|
|
103
98
|
try {
|
|
104
99
|
var parsed = JSON.parse(localSchema);
|
|
@@ -99,7 +99,8 @@ function CodeGenActionBtn(_ref) {
|
|
|
99
99
|
solution: 'vuejs3',
|
|
100
100
|
schema: sanitizedSchemas,
|
|
101
101
|
flattenResult: true,
|
|
102
|
-
resourceList: resourceList
|
|
102
|
+
resourceList: resourceList,
|
|
103
|
+
workerJsUrl: '/standalone-worker.min.js'
|
|
103
104
|
});
|
|
104
105
|
case 9:
|
|
105
106
|
result = _context.sent;
|
package/lib/utils/utils.js
CHANGED
|
@@ -101,12 +101,7 @@ var getAllSchemaByResourceList = exports.getAllSchemaByResourceList = /*#__PURE_
|
|
|
101
101
|
var storageKey = getLSName(scenarioName, item.id);
|
|
102
102
|
var localSchema = window.localStorage.getItem(storageKey);
|
|
103
103
|
if (!localSchema) {
|
|
104
|
-
|
|
105
|
-
return {
|
|
106
|
-
version: '1.0.0',
|
|
107
|
-
componentsTree: [],
|
|
108
|
-
componentsMap: []
|
|
109
|
-
};
|
|
104
|
+
throw new Error("\u672A\u627E\u5230\u9875\u9762 \"" + (item.title || item.id) + "\" \u7684 schema\uFF0C\u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u4FDD\u5B58\u8BE5\u9875\u9762\u3002");
|
|
110
105
|
}
|
|
111
106
|
try {
|
|
112
107
|
var parsed = JSON.parse(localSchema);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dckj-npm/lowcode-plugin-code-generator",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "集团低代码引擎 - 浏览器出码插件",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@alilc/lowcode-code-generator": "^1.0.4",
|
|
36
36
|
"@alilc/lowcode-plugin-base-monaco-editor": "^1.0.0",
|
|
37
37
|
"@alilc/lowcode-types": "^1.0.0",
|
|
38
|
-
"@dckj-npm/lowcode-code-generator": "^1.2.
|
|
38
|
+
"@dckj-npm/lowcode-code-generator": "^1.2.25",
|
|
39
39
|
"@types/file-saver": "^2.0.4",
|
|
40
40
|
"@types/js-base64": "^3.3.1",
|
|
41
41
|
"@types/string-natural-compare": "^3.0.2",
|