Add API Module!

This commit is contained in:
2021-12-31 11:20:18 +08:00
parent af68984caa
commit 7a78cf0594
7 changed files with 233 additions and 27 deletions
+2 -2
View File
@@ -101,14 +101,14 @@ implements Partial<ILifetime> {
Logger.log(`计算并设置 StatusBar 的高度为: ${ barHeight + 4 }px, ` +
`状态栏高度: ${ statusBarHeight }px, 胶囊占位: ${ capsule }px`,
LevelLogLabel.DebugLabel, StatusBar.StatusBarLabel);
LevelLogLabel.InfoLabel, StatusBar.StatusBarLabel);
}
public onLoad() {
Logger.log("StatusBar 模块加载...",
LevelLogLabel.TraceLabel, LifeCycleLogLabel.OnLoadLabel, StatusBar.StatusBarLabel);
LevelLogLabel.InfoLabel, LifeCycleLogLabel.OnLoadLabel, StatusBar.StatusBarLabel);
this.setHeight();
}
+1 -12
View File
@@ -43,16 +43,6 @@ implements Partial<ILifetime> {
public constructor() {
super();
this.initLabel("TestApi");
this.emit("initData", {})
this.on("initData", (d) => {
})
this.on("parseRequestData", (data) => {
console.log("parseRequestData", data)
})
}
}
@@ -63,8 +53,7 @@ implements Partial<ILifetime> {
info: {
data: "abc"
}
}).run();
console.log(api);
}).request();
}
}