From eeed67b57a1a073cbea280e9b34662e4cd9c7771 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 23 Oct 2019 14:18:50 +0800 Subject: [PATCH] add Scroller api --- js-framework/src/ui/view.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js-framework/src/ui/view.ts b/js-framework/src/ui/view.ts index 4a27e971..9a8d5959 100644 --- a/js-framework/src/ui/view.ts +++ b/js-framework/src/ui/view.ts @@ -309,6 +309,16 @@ export class Stack extends Group { @Property gravity?: Gravity } + +export class Scroller extends View implements SuperView { + @Property + contentView?: View + + subViewById(id: string): View | undefined { + return this.contentView + } +} + export class Root extends Stack { } @@ -453,6 +463,8 @@ export class Slide extends View implements SuperView { } } + + export function stack() { }