feat:List add header and footer

This commit is contained in:
pengfei.zhou
2021-10-09 16:50:34 +08:00
committed by osborn
parent f6d117da06
commit 5224be8f90
13 changed files with 243 additions and 46 deletions

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

@@ -699,7 +699,7 @@ declare module 'doric/lib/src/widget/list' {
}[];
}
export class List extends Superview {
allSubviews(): IterableIterator<ListItem> | ListItem[];
allSubviews(): ListItem[];
itemCount: number;
renderItem: (index: number) => ListItem;
batchCount: number;
@@ -720,6 +720,8 @@ declare module 'doric/lib/src/widget/list' {
* Take effect only on iOS
*/
bounces?: boolean;
header?: ListItem;
footer?: ListItem;
scrollToItem(context: BridgeContext, index: number, config?: {
animated?: boolean;
}): Promise<any>;