feat:add comments

This commit is contained in:
pengfei.zhou
2021-04-30 14:47:34 +08:00
committed by osborn
parent 6da8d5658b
commit 5fc770f62a
11 changed files with 117 additions and 77 deletions

View File

@@ -27,6 +27,9 @@ export declare class FlowLayout extends Superview {
y: number;
}) => void;
scrollable?: boolean;
/**
* Take effect only on iOS
*/
bounces?: boolean;
reset(): void;
private getItem;

View File

@@ -32,6 +32,9 @@ export declare class List extends Superview {
}) => void;
scrolledPosition?: number;
scrollable?: boolean;
/**
* Take effect only on iOS
*/
bounces?: boolean;
scrollToItem(context: BridgeContext, index: number, config?: {
animated?: boolean;

View File

@@ -3,6 +3,9 @@ import { BridgeContext } from '../runtime/global';
export declare class NestedSlider extends Group {
onPageSlided?: (index: number) => void;
scrollable?: boolean;
/**
* Take effect only on iOS
*/
bounces?: boolean;
addSlideItem(view: View): void;
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;

View File

@@ -16,6 +16,9 @@ export declare class Scroller extends Superview {
y: number;
}) => void;
scrollable?: boolean;
/**
* Take effect only on iOS
*/
bounces?: boolean;
allSubviews(): View[];
toModel(): NativeViewModel;

View File

@@ -16,6 +16,9 @@ export declare class Slider extends Superview {
onPageSlided?: (index: number) => void;
loop?: boolean;
scrollable?: boolean;
/**
* Take effect only on iOS
*/
bounces?: boolean;
private getItem;
private renderBunchedItems;