feat: slider support set max and min scale

This commit is contained in:
pengfei.zhou
2022-07-15 18:36:48 +08:00
committed by osborn
parent fd5994e270
commit c05c169dd7
8 changed files with 37 additions and 13 deletions

View File

@@ -56,9 +56,12 @@ export class Slider extends Superview {
*/
@Property
bounces?: boolean
/**
* Set the effect when sliding
* ZoomOut is currently supported
*/
@Property
slideStyle?: "zoomOut"
slideStyle?: "zoomOut" | { type: "zoomOut", minScale: number, maxScale: number }
private getItem(itemIdx: number) {
let view = this.renderPage(itemIdx)