@zhubangyun/lowcode-core 1.1.7 → 1.1.9
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.
|
@@ -16,29 +16,33 @@ function _loadPlugins() {
|
|
|
16
16
|
_iterator = _createForOfIteratorHelperLoose(plugins);
|
|
17
17
|
case 1:
|
|
18
18
|
if ((_step = _iterator()).done) {
|
|
19
|
-
_context.next =
|
|
19
|
+
_context.next = 8;
|
|
20
20
|
break;
|
|
21
21
|
}
|
|
22
22
|
plugin = _step.value;
|
|
23
23
|
_context.next = 5;
|
|
24
24
|
return loadStyle(plugin);
|
|
25
25
|
case 5:
|
|
26
|
+
console.debug("loadStyle", plugin);
|
|
27
|
+
case 6:
|
|
26
28
|
_context.next = 1;
|
|
27
29
|
break;
|
|
28
|
-
case 7:
|
|
29
|
-
_iterator2 = _createForOfIteratorHelperLoose(plugins);
|
|
30
30
|
case 8:
|
|
31
|
+
_iterator2 = _createForOfIteratorHelperLoose(plugins);
|
|
32
|
+
case 9:
|
|
31
33
|
if ((_step2 = _iterator2()).done) {
|
|
32
|
-
_context.next =
|
|
34
|
+
_context.next = 16;
|
|
33
35
|
break;
|
|
34
36
|
}
|
|
35
37
|
_plugin = _step2.value;
|
|
36
|
-
_context.next =
|
|
38
|
+
_context.next = 13;
|
|
37
39
|
return loadScript(_plugin);
|
|
38
|
-
case
|
|
39
|
-
|
|
40
|
-
break;
|
|
40
|
+
case 13:
|
|
41
|
+
console.debug("loadScript", _plugin);
|
|
41
42
|
case 14:
|
|
43
|
+
_context.next = 9;
|
|
44
|
+
break;
|
|
45
|
+
case 16:
|
|
42
46
|
case "end":
|
|
43
47
|
return _context.stop();
|
|
44
48
|
}
|
|
@@ -15,7 +15,6 @@ export var DesignerAssets = /*#__PURE__*/function () {
|
|
|
15
15
|
_this.data.components.push(component);
|
|
16
16
|
};
|
|
17
17
|
this.data = JSON.parse(JSON.stringify(BaseAssets));
|
|
18
|
-
console.log(this.data);
|
|
19
18
|
// @ts-ignore
|
|
20
19
|
if (window.AliLowCodeEngine) {
|
|
21
20
|
this.addAssets(DesignAssets);
|
|
@@ -12,7 +12,10 @@ function _initEngine() {
|
|
|
12
12
|
while (1) switch (_context.prev = _context.next) {
|
|
13
13
|
case 0:
|
|
14
14
|
_context.next = 2;
|
|
15
|
-
return loadPlugins(["
|
|
15
|
+
return loadPlugins(["next.min.js", "variables.css", "next.var.min.css",
|
|
16
|
+
/* "react.production.min.js",
|
|
17
|
+
"react-dom.production.min.js",*/
|
|
18
|
+
"prop-types.js", "react15-polyfill.js", "lodash.min.js", "moment.min.js", "engine-core.css", "engine-core.js", "engine-ext.js", "engine-ext.css", "index.css", "index.js"].map(function (uri) {
|
|
16
19
|
return "https://cdn.zhiyunhe.com/lowcode/designer/" + uri;
|
|
17
20
|
}));
|
|
18
21
|
case 2:
|
|
@@ -21,29 +21,33 @@ function _loadPlugins() {
|
|
|
21
21
|
_iterator = _createForOfIteratorHelperLoose(plugins);
|
|
22
22
|
case 1:
|
|
23
23
|
if ((_step = _iterator()).done) {
|
|
24
|
-
_context.next =
|
|
24
|
+
_context.next = 8;
|
|
25
25
|
break;
|
|
26
26
|
}
|
|
27
27
|
plugin = _step.value;
|
|
28
28
|
_context.next = 5;
|
|
29
29
|
return loadStyle(plugin);
|
|
30
30
|
case 5:
|
|
31
|
+
console.debug("loadStyle", plugin);
|
|
32
|
+
case 6:
|
|
31
33
|
_context.next = 1;
|
|
32
34
|
break;
|
|
33
|
-
case 7:
|
|
34
|
-
_iterator2 = _createForOfIteratorHelperLoose(plugins);
|
|
35
35
|
case 8:
|
|
36
|
+
_iterator2 = _createForOfIteratorHelperLoose(plugins);
|
|
37
|
+
case 9:
|
|
36
38
|
if ((_step2 = _iterator2()).done) {
|
|
37
|
-
_context.next =
|
|
39
|
+
_context.next = 16;
|
|
38
40
|
break;
|
|
39
41
|
}
|
|
40
42
|
_plugin = _step2.value;
|
|
41
|
-
_context.next =
|
|
43
|
+
_context.next = 13;
|
|
42
44
|
return loadScript(_plugin);
|
|
43
|
-
case
|
|
44
|
-
|
|
45
|
-
break;
|
|
45
|
+
case 13:
|
|
46
|
+
console.debug("loadScript", _plugin);
|
|
46
47
|
case 14:
|
|
48
|
+
_context.next = 9;
|
|
49
|
+
break;
|
|
50
|
+
case 16:
|
|
47
51
|
case "end":
|
|
48
52
|
return _context.stop();
|
|
49
53
|
}
|
|
@@ -20,7 +20,6 @@ var DesignerAssets = exports.DesignerAssets = /*#__PURE__*/function () {
|
|
|
20
20
|
_this.data.components.push(component);
|
|
21
21
|
};
|
|
22
22
|
this.data = JSON.parse(JSON.stringify(_assetsData["default"]));
|
|
23
|
-
console.log(this.data);
|
|
24
23
|
// @ts-ignore
|
|
25
24
|
if (window.AliLowCodeEngine) {
|
|
26
25
|
this.addAssets(_assetsData2["default"]);
|
|
@@ -19,7 +19,10 @@ function _initEngine() {
|
|
|
19
19
|
while (1) switch (_context.prev = _context.next) {
|
|
20
20
|
case 0:
|
|
21
21
|
_context.next = 2;
|
|
22
|
-
return (0, _common.loadPlugins)(["
|
|
22
|
+
return (0, _common.loadPlugins)(["next.min.js", "variables.css", "next.var.min.css",
|
|
23
|
+
/* "react.production.min.js",
|
|
24
|
+
"react-dom.production.min.js",*/
|
|
25
|
+
"prop-types.js", "react15-polyfill.js", "lodash.min.js", "moment.min.js", "engine-core.css", "engine-core.js", "engine-ext.js", "engine-ext.css", "index.css", "index.js"].map(function (uri) {
|
|
23
26
|
return "https://cdn.zhiyunhe.com/lowcode/designer/" + uri;
|
|
24
27
|
}));
|
|
25
28
|
case 2:
|