update scrollToItem API

This commit is contained in:
pengfei.zhou
2020-04-22 11:31:03 +08:00
committed by osborn
parent bce9350959
commit 8214e50f79
9 changed files with 24 additions and 9 deletions

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

@@ -523,7 +523,9 @@ declare module 'doric/lib/src/widget/list' {
y: number;
}) => void;
scrolledPosition?: number;
scrollToItem(context: BridgeContext, pos: number, animated?: boolean): Promise<any>;
scrollToItem(context: BridgeContext, pos: number, config?: {
animated?: boolean;
}): Promise<any>;
reset(): void;
isDirty(): boolean;
toModel(): NativeViewModel;