update js api

This commit is contained in:
pengfei.zhou
2020-04-22 11:37:43 +08:00
committed by osborn
parent 8214e50f79
commit 229fc41de3
9 changed files with 15 additions and 15 deletions

View File

@@ -67,9 +67,9 @@ export class List extends Superview {
@Property
scrolledPosition?: number
scrollToItem(context: BridgeContext, pos: number, config?: { animated?: boolean }) {
scrollToItem(context: BridgeContext, index: number, config?: { animated?: boolean, }) {
const animated = config?.animated
return this.nativeChannel(context, 'scrollToItem')({ pos, animated }) as Promise<any>
return this.nativeChannel(context, 'scrollToItem')({ index, animated, }) as Promise<any>
}
reset() {