feat: Native add legacy mode

This commit is contained in:
pengfei.zhou
2022-07-15 15:59:06 +08:00
committed by osborn
parent 64a370c701
commit 7a126531af
21 changed files with 15180 additions and 15119 deletions

View File

@@ -20,6 +20,7 @@ export declare class Slider extends Superview {
* Take effect only on iOS
*/
bounces?: boolean;
pageTransformer?: "zoomout";
private getItem;
private renderBunchedItems;
slidePage(context: BridgeContext, page: number, smooth?: boolean): Promise<any>;

View File

@@ -88,6 +88,10 @@ __decorate([
Property,
__metadata("design:type", Boolean)
], Slider.prototype, "bounces", void 0);
__decorate([
Property,
__metadata("design:type", String)
], Slider.prototype, "pageTransformer", void 0);
export function slider(config) {
const ret = new Slider;
ret.apply(config);