38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { View, Group } from "./view";
|
|
import { Root } from '../widget/layouts';
|
|
import { BridgeContext } from '../runtime/global';
|
|
export declare function NativeCall(target: Panel, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
export declare abstract class Panel {
|
|
private destroyed;
|
|
context: BridgeContext;
|
|
onCreate(): void;
|
|
onDestroy(): void;
|
|
onShow(): void;
|
|
onHidden(): void;
|
|
abstract build(rootView: Group): void;
|
|
private __data__?;
|
|
private __root__;
|
|
private headviews;
|
|
private onRenderFinishedCallback;
|
|
private __rendering__;
|
|
addHeadView(type: string, v: View): void;
|
|
allHeadViews(): IterableIterator<Map<string, View>>;
|
|
removeHeadView(type: string, v: View | string): void;
|
|
clearHeadViews(type: string): void;
|
|
getRootView(): Root;
|
|
getInitData(): object | undefined;
|
|
private __init__;
|
|
private __onCreate__;
|
|
private __onDestroy__;
|
|
private __onShow__;
|
|
private __onHidden__;
|
|
private __build__;
|
|
private __response__;
|
|
private retrospectView;
|
|
private nativeRender;
|
|
private hookBeforeNativeCall;
|
|
private hookAfterNativeCall;
|
|
private onRenderFinished;
|
|
addOnRenderFinishedCallback(cb: () => void): void;
|
|
}
|