set addOnRenderFinishedCallback to private

This commit is contained in:
pengfei.zhou 2020-03-14 17:07:59 +08:00 committed by osborn
parent b59567ccfb
commit 7c2ba30bd5
3 changed files with 2 additions and 3 deletions

1
doric-js/index.d.ts vendored
View File

@ -299,7 +299,6 @@ declare module 'doric/lib/src/ui/panel' {
clearHeadViews(type: string): void;
getRootView(): Root;
getInitData(): object | undefined;
onRenderFinished(): void;
addOnRenderFinishedCallback(cb: () => void): void;
}
}

View File

@ -30,6 +30,6 @@ export declare abstract class Panel {
private nativeRender;
private hookBeforeNativeCall;
private hookAfterNativeCall;
onRenderFinished(): void;
private onRenderFinished;
addOnRenderFinishedCallback(cb: () => void): void;
}

View File

@ -212,7 +212,7 @@ export abstract class Panel {
this.onRenderFinished()
})
}
onRenderFinished() {
private onRenderFinished() {
this.onRenderFinishedCallback.forEach(e => {
e()
})