feat:List support scrollable

This commit is contained in:
pengfei.zhou
2021-04-23 17:46:39 +08:00
committed by osborn
parent 4cc67a463d
commit 418b71c7a3
3 changed files with 24 additions and 2 deletions

View File

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