feat: slider add bounces for iOS

This commit is contained in:
pengfei.zhou
2021-04-30 14:28:38 +08:00
committed by osborn
parent f8b983b8d2
commit e621db48b9
11 changed files with 52 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ export declare class Slider extends Superview {
onPageSlided?: (index: number) => void;
loop?: boolean;
scrollable?: boolean;
bounces?: boolean;
private getItem;
private renderBunchedItems;
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;

View File

@@ -84,6 +84,10 @@ __decorate([
Property,
__metadata("design:type", Boolean)
], Slider.prototype, "scrollable", void 0);
__decorate([
Property,
__metadata("design:type", Boolean)
], Slider.prototype, "bounces", void 0);
export function slider(config) {
const ret = new Slider;
for (let key in config) {