提交 92903338 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat: 更新插件包sy-ty

上级 f7439068
......@@ -205,7 +205,9 @@ class mi extends Ci {
*/
async onInit() {
var s, n, i;
await super.onInit(), this.model.source.M.getPSAppViewLogics.find((a) => a.logicType === "SCRIPT" && a.eventNames === "onLoaded") && ((s = this.model.drTab) != null && s.pages.length) ? this.model.drTab.pages.forEach((a) => {
await super.onInit();
const e = this.model.source.M.getPSAppViewLogics;
(e == null ? void 0 : e.find((a) => a.logicType === "SCRIPT" && a.eventNames === "onLoaded")) && ((s = this.model.drTab) != null && s.pages.length) ? this.model.drTab.pages.forEach((a) => {
Object.assign(this.drPages[a.source.name], { visible: !1 });
}) : (i = (n = this.model.drTab) == null ? void 0 : n.pages) == null || i.forEach((a) => {
Object.assign(this.drPages[a.source.name], { visible: !0 });
......@@ -218,7 +220,7 @@ class mi extends Ci {
* @memberof SyWFDynaEditView3Controller
*/
async load() {
const e = await super.load(), s = this.model.source.M.getPSAppViewLogics.find((n) => n.logicType === "SCRIPT" && n.eventNames === "onLoaded");
const e = await super.load(), t = this.model.source.M.getPSAppViewLogics, s = t == null ? void 0 : t.find((n) => n.logicType === "SCRIPT" && n.eventNames === "onLoaded");
if (s) {
const { scriptCode: n } = s, i = this.formatCode(n, { isAsync: !0 }), a = ["view", "context", "params", "data"];
new Function(...a, i).apply({}, [this, this.context, this.params, e]);
......@@ -379,14 +381,16 @@ class Li extends di {
*/
async onInit() {
var s, n, i;
await super.onInit(), this.model.source.M.getPSAppViewLogics.find((a) => a.logicType === "SCRIPT" && a.eventNames === "onLoaded") && ((s = this.model.drTab) != null && s.pages.length) ? this.model.drTab.pages.forEach((a) => {
await super.onInit();
const e = this.model.source.M.getPSAppViewLogics;
(e == null ? void 0 : e.find((a) => a.logicType === "SCRIPT" && a.eventNames === "onLoaded")) && ((s = this.model.drTab) != null && s.pages.length) ? this.model.drTab.pages.forEach((a) => {
Object.assign(this.drPages[a.source.name], { visible: !1 });
}) : (i = (n = this.model.drTab) == null ? void 0 : n.pages) == null || i.forEach((a) => {
Object.assign(this.drPages[a.source.name], { visible: !0 });
});
}
async load() {
const e = await super.load(), s = this.model.source.M.getPSAppViewLogics.find((n) => n.logicType === "SCRIPT" && n.eventNames === "onLoaded");
const e = await super.load(), t = this.model.source.M.getPSAppViewLogics, s = t == null ? void 0 : t.find((n) => n.logicType === "SCRIPT" && n.eventNames === "onLoaded");
if (s) {
const { scriptCode: n } = s, i = this.formatCode(n, { isAsync: !0 }), a = ["view", "context", "params", "data"];
new Function(...a, i).apply({}, [this, this.context, this.params, e]);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册