feat: add scrollsToTop for scrollable views only for iOS
This commit is contained in:
4
doric-js/lib/src/widget/flowlayout.d.ts
vendored
4
doric-js/lib/src/widget/flowlayout.d.ts
vendored
@@ -37,6 +37,10 @@ export declare class FlowLayout extends Superview {
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
bounces?: boolean;
|
||||
/**
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
scrollsToTop?: boolean;
|
||||
canDrag?: boolean;
|
||||
/**
|
||||
* @param from
|
||||
|
@@ -147,6 +147,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], FlowLayout.prototype, "bounces", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], FlowLayout.prototype, "scrollsToTop", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
|
4
doric-js/lib/src/widget/horizontalList.d.ts
vendored
4
doric-js/lib/src/widget/horizontalList.d.ts
vendored
@@ -30,6 +30,10 @@ export declare class HorizontalList extends Superview {
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
bounces?: boolean;
|
||||
/**
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
scrollsToTop?: boolean;
|
||||
canDrag?: boolean;
|
||||
/**
|
||||
* @param from
|
||||
|
@@ -138,6 +138,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], HorizontalList.prototype, "bounces", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], HorizontalList.prototype, "scrollsToTop", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
|
4
doric-js/lib/src/widget/list.d.ts
vendored
4
doric-js/lib/src/widget/list.d.ts
vendored
@@ -36,6 +36,10 @@ export declare class List extends Superview {
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
bounces?: boolean;
|
||||
/**
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
scrollsToTop?: boolean;
|
||||
canDrag?: boolean;
|
||||
/**
|
||||
* @param from
|
||||
|
@@ -142,6 +142,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], List.prototype, "bounces", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], List.prototype, "scrollsToTop", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
|
4
doric-js/lib/src/widget/nestedSlider.d.ts
vendored
4
doric-js/lib/src/widget/nestedSlider.d.ts
vendored
@@ -7,6 +7,10 @@ export declare class NestedSlider extends Group {
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
bounces?: boolean;
|
||||
/**
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
scrollsToTop?: boolean;
|
||||
addSlideItem(view: View): void;
|
||||
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;
|
||||
getSlidedPage(context: BridgeContext): Promise<number>;
|
||||
|
@@ -46,3 +46,7 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], NestedSlider.prototype, "bounces", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], NestedSlider.prototype, "scrollsToTop", void 0);
|
||||
|
4
doric-js/lib/src/widget/scroller.d.ts
vendored
4
doric-js/lib/src/widget/scroller.d.ts
vendored
@@ -20,6 +20,10 @@ export declare class Scroller extends Superview implements JSX.ElementChildrenAt
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
bounces?: boolean;
|
||||
/**
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
scrollsToTop?: boolean;
|
||||
allSubviews(): View[];
|
||||
toModel(): NativeViewModel;
|
||||
scrollTo(context: BridgeContext, offset: {
|
||||
|
@@ -71,3 +71,7 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], Scroller.prototype, "bounces", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], Scroller.prototype, "scrollsToTop", void 0);
|
||||
|
4
doric-js/lib/src/widget/slider.d.ts
vendored
4
doric-js/lib/src/widget/slider.d.ts
vendored
@@ -20,6 +20,10 @@ export declare class Slider extends Superview {
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
bounces?: boolean;
|
||||
/**
|
||||
* Take effect only on iOS
|
||||
*/
|
||||
scrollsToTop?: boolean;
|
||||
/**
|
||||
* Set the effect when sliding
|
||||
* ZoomOut is currently supported
|
||||
|
@@ -100,6 +100,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], Slider.prototype, "bounces", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Boolean)
|
||||
], Slider.prototype, "scrollsToTop", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Object)
|
||||
|
Reference in New Issue
Block a user