Add API Module!
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user