feat:Scroller add contentOffset property

This commit is contained in:
pengfei.zhou
2020-03-03 13:23:06 +08:00
committed by osborn
parent 46255632ec
commit 6d7562877e
12 changed files with 314 additions and 265 deletions

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

@@ -574,9 +574,17 @@ declare module 'doric/lib/src/widget/scroller' {
export function scroller(content: View, config?: IScroller): Scroller;
export interface IScroller extends IView {
content?: View;
contentOffset?: {
x: number;
y: number;
};
}
export class Scroller extends Superview implements IScroller {
content: View;
contentOffset?: {
x: number;
y: number;
};
allSubviews(): View[];
toModel(): NativeViewModel;
scrollTo(context: BridgeContext, offset: {