feat: add onEnvChanged
This commit is contained in:
@@ -39,7 +39,10 @@ export abstract class Panel {
|
||||
onDestroy() { }
|
||||
onShow() { }
|
||||
onHidden() { }
|
||||
|
||||
onEnvChanged() {
|
||||
this.__root__.children.length = 0
|
||||
this.build(this.__root__)
|
||||
}
|
||||
abstract build(rootView: Group): void
|
||||
|
||||
private __data__?: object
|
||||
@@ -126,6 +129,11 @@ export abstract class Panel {
|
||||
this.build(this.__root__)
|
||||
}
|
||||
|
||||
@NativeCall
|
||||
private __onEnvChanged__() {
|
||||
this.onEnvChanged()
|
||||
}
|
||||
|
||||
@NativeCall
|
||||
private __response__(viewIds: string[], callbackId: string) {
|
||||
const v = this.retrospectView(viewIds)
|
||||
|
Reference in New Issue
Block a user