@dao42/d42paas-front 0.5.39 → 0.5.40
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/DaoPaaS.es.js +39 -9
- package/dist/DaoPaaS.umd.js +164 -164
- package/dist/editor.d.ts +7 -1
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -40913,7 +40913,6 @@ class DaoPaaS {
|
|
|
40913
40913
|
initClassDIV.className = "init-class";
|
|
40914
40914
|
document.body.appendChild(initClassDIV);
|
|
40915
40915
|
reactDom.exports.unstable_batchedUpdates(async () => {
|
|
40916
|
-
var _a2;
|
|
40917
40916
|
const {
|
|
40918
40917
|
setUserInfo,
|
|
40919
40918
|
userInfo
|
|
@@ -40952,14 +40951,9 @@ class DaoPaaS {
|
|
|
40952
40951
|
PlaygroundInit(__spreadProps(__spreadValues(__spreadValues({}, this.userInfo), args), {
|
|
40953
40952
|
io: this.io
|
|
40954
40953
|
}));
|
|
40955
|
-
(
|
|
40956
|
-
this.
|
|
40957
|
-
|
|
40958
|
-
reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
|
|
40959
|
-
fallback: /* @__PURE__ */ jsx(Loading, {}),
|
|
40960
|
-
children: /* @__PURE__ */ jsx(ArgRenderToComponent, __spreadValues({}, comp.props))
|
|
40961
|
-
}), this.editorDOM);
|
|
40962
|
-
});
|
|
40954
|
+
if (this.components) {
|
|
40955
|
+
this.mapRender(this.components);
|
|
40956
|
+
}
|
|
40963
40957
|
});
|
|
40964
40958
|
window.onerror = (message) => {
|
|
40965
40959
|
if (/dError/.test(message)) {
|
|
@@ -41027,6 +41021,42 @@ class DaoPaaS {
|
|
|
41027
41021
|
console.log("\u4F20\u53C2\u9519\u8BEF");
|
|
41028
41022
|
}
|
|
41029
41023
|
}
|
|
41024
|
+
mapRender(components) {
|
|
41025
|
+
components == null ? void 0 : components.forEach((comp, index2) => {
|
|
41026
|
+
switch (comp.item) {
|
|
41027
|
+
case "Tree":
|
|
41028
|
+
this.Tree({
|
|
41029
|
+
container: comp.item,
|
|
41030
|
+
props: comp.props
|
|
41031
|
+
});
|
|
41032
|
+
break;
|
|
41033
|
+
case "Editor":
|
|
41034
|
+
this.Editor({
|
|
41035
|
+
container: comp.item,
|
|
41036
|
+
props: comp.props
|
|
41037
|
+
});
|
|
41038
|
+
break;
|
|
41039
|
+
case "Console":
|
|
41040
|
+
this.Console({
|
|
41041
|
+
container: comp.item,
|
|
41042
|
+
props: comp.props
|
|
41043
|
+
});
|
|
41044
|
+
break;
|
|
41045
|
+
case "Browser":
|
|
41046
|
+
this.Browser({
|
|
41047
|
+
container: comp.item,
|
|
41048
|
+
props: comp.props
|
|
41049
|
+
});
|
|
41050
|
+
break;
|
|
41051
|
+
case "Shell":
|
|
41052
|
+
this.Shell({
|
|
41053
|
+
container: comp.item,
|
|
41054
|
+
props: comp.props
|
|
41055
|
+
});
|
|
41056
|
+
break;
|
|
41057
|
+
}
|
|
41058
|
+
});
|
|
41059
|
+
}
|
|
41030
41060
|
Page({
|
|
41031
41061
|
container,
|
|
41032
41062
|
props: props2
|