feat:add comments
This commit is contained in:
parent
6da8d5658b
commit
5fc770f62a
15
doric-js/index.d.ts
vendored
15
doric-js/index.d.ts
vendored
@ -617,6 +617,9 @@ declare module 'doric/lib/src/widget/list' {
|
|||||||
}) => void;
|
}) => void;
|
||||||
scrolledPosition?: number;
|
scrolledPosition?: number;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
scrollToItem(context: BridgeContext, index: number, config?: {
|
scrollToItem(context: BridgeContext, index: number, config?: {
|
||||||
animated?: boolean;
|
animated?: boolean;
|
||||||
@ -646,6 +649,9 @@ declare module 'doric/lib/src/widget/slider' {
|
|||||||
onPageSlided?: (index: number) => void;
|
onPageSlided?: (index: number) => void;
|
||||||
loop?: boolean;
|
loop?: boolean;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
||||||
getSlidedPage(context: BridgeContext): Promise<number>;
|
getSlidedPage(context: BridgeContext): Promise<number>;
|
||||||
@ -673,6 +679,9 @@ declare module 'doric/lib/src/widget/scroller' {
|
|||||||
y: number;
|
y: number;
|
||||||
}) => void;
|
}) => void;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
allSubviews(): View[];
|
allSubviews(): View[];
|
||||||
toModel(): NativeViewModel;
|
toModel(): NativeViewModel;
|
||||||
@ -739,6 +748,9 @@ declare module 'doric/lib/src/widget/flowlayout' {
|
|||||||
y: number;
|
y: number;
|
||||||
}) => void;
|
}) => void;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
reset(): void;
|
reset(): void;
|
||||||
toModel(): NativeViewModel;
|
toModel(): NativeViewModel;
|
||||||
@ -786,6 +798,9 @@ declare module 'doric/lib/src/widget/nestedSlider' {
|
|||||||
export class NestedSlider extends Group {
|
export class NestedSlider extends Group {
|
||||||
onPageSlided?: (index: number) => void;
|
onPageSlided?: (index: number) => void;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
addSlideItem(view: View): void;
|
addSlideItem(view: View): void;
|
||||||
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
||||||
|
3
doric-js/lib/src/widget/flowlayout.d.ts
vendored
3
doric-js/lib/src/widget/flowlayout.d.ts
vendored
@ -27,6 +27,9 @@ export declare class FlowLayout extends Superview {
|
|||||||
y: number;
|
y: number;
|
||||||
}) => void;
|
}) => void;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
reset(): void;
|
reset(): void;
|
||||||
private getItem;
|
private getItem;
|
||||||
|
3
doric-js/lib/src/widget/list.d.ts
vendored
3
doric-js/lib/src/widget/list.d.ts
vendored
@ -32,6 +32,9 @@ export declare class List extends Superview {
|
|||||||
}) => void;
|
}) => void;
|
||||||
scrolledPosition?: number;
|
scrolledPosition?: number;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
scrollToItem(context: BridgeContext, index: number, config?: {
|
scrollToItem(context: BridgeContext, index: number, config?: {
|
||||||
animated?: boolean;
|
animated?: boolean;
|
||||||
|
3
doric-js/lib/src/widget/nestedSlider.d.ts
vendored
3
doric-js/lib/src/widget/nestedSlider.d.ts
vendored
@ -3,6 +3,9 @@ import { BridgeContext } from '../runtime/global';
|
|||||||
export declare class NestedSlider extends Group {
|
export declare class NestedSlider extends Group {
|
||||||
onPageSlided?: (index: number) => void;
|
onPageSlided?: (index: number) => void;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
addSlideItem(view: View): void;
|
addSlideItem(view: View): void;
|
||||||
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
||||||
|
3
doric-js/lib/src/widget/scroller.d.ts
vendored
3
doric-js/lib/src/widget/scroller.d.ts
vendored
@ -16,6 +16,9 @@ export declare class Scroller extends Superview {
|
|||||||
y: number;
|
y: number;
|
||||||
}) => void;
|
}) => void;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
allSubviews(): View[];
|
allSubviews(): View[];
|
||||||
toModel(): NativeViewModel;
|
toModel(): NativeViewModel;
|
||||||
|
3
doric-js/lib/src/widget/slider.d.ts
vendored
3
doric-js/lib/src/widget/slider.d.ts
vendored
@ -16,6 +16,9 @@ export declare class Slider extends Superview {
|
|||||||
onPageSlided?: (index: number) => void;
|
onPageSlided?: (index: number) => void;
|
||||||
loop?: boolean;
|
loop?: boolean;
|
||||||
scrollable?: boolean;
|
scrollable?: boolean;
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
bounces?: boolean;
|
bounces?: boolean;
|
||||||
private getItem;
|
private getItem;
|
||||||
private renderBunchedItems;
|
private renderBunchedItems;
|
||||||
|
@ -71,7 +71,9 @@ export class FlowLayout extends Superview {
|
|||||||
|
|
||||||
@Property
|
@Property
|
||||||
scrollable?: boolean
|
scrollable?: boolean
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
@Property
|
@Property
|
||||||
bounces?: boolean
|
bounces?: boolean
|
||||||
|
|
||||||
|
@ -75,7 +75,9 @@ export class List extends Superview {
|
|||||||
|
|
||||||
@Property
|
@Property
|
||||||
scrollable?: boolean
|
scrollable?: boolean
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
@Property
|
@Property
|
||||||
bounces?: boolean
|
bounces?: boolean
|
||||||
|
|
||||||
|
@ -23,7 +23,9 @@ export class NestedSlider extends Group {
|
|||||||
|
|
||||||
@Property
|
@Property
|
||||||
scrollable?: boolean
|
scrollable?: boolean
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
@Property
|
@Property
|
||||||
bounces?: boolean
|
bounces?: boolean
|
||||||
|
|
||||||
|
@ -44,7 +44,9 @@ export class Scroller extends Superview {
|
|||||||
|
|
||||||
@Property
|
@Property
|
||||||
scrollable?: boolean
|
scrollable?: boolean
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
@Property
|
@Property
|
||||||
bounces?: boolean
|
bounces?: boolean
|
||||||
|
|
||||||
|
@ -51,7 +51,9 @@ export class Slider extends Superview {
|
|||||||
|
|
||||||
@Property
|
@Property
|
||||||
scrollable?: boolean
|
scrollable?: boolean
|
||||||
|
/**
|
||||||
|
* Take effect only on iOS
|
||||||
|
*/
|
||||||
@Property
|
@Property
|
||||||
bounces?: boolean
|
bounces?: boolean
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user