flowlayout add header and footer:iOS implement

This commit is contained in:
pengfei.zhou
2021-10-11 15:58:46 +08:00
committed by osborn
parent 0dbab344d9
commit 9429c75834
7 changed files with 108 additions and 23 deletions

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

@@ -143,6 +143,11 @@ declare module 'doric/lib/src/ui/panel' {
onShow(): void;
onHidden(): void;
onEnvChanged(): void;
/**
* Build view of the current Panel
* This could be called any times at any time when necessary.
* @param rootView root view of this panel
*/
abstract build(rootView: Group): void;
addHeadView(type: string, v: View): void;
allHeadViews(): IterableIterator<Map<string, View>>;

View File

@@ -10,6 +10,11 @@ export declare abstract class Panel {
onShow(): void;
onHidden(): void;
onEnvChanged(): void;
/**
* Build view of the current Panel
* This could be called any times at any time when necessary.
* @param rootView root view of this panel
*/
abstract build(rootView: Group): void;
private __data__?;
private __root__;

View File

@@ -43,6 +43,11 @@ export abstract class Panel {
this.__root__.children.length = 0
this.build(this.__root__)
}
/**
* Build view of the current Panel
* This could be called any times at any time when necessary.
* @param rootView root view of this panel
*/
abstract build(rootView: Group): void
private __data__?: object