update command name

This commit is contained in:
pengfei.zhou 2019-12-06 15:53:31 +08:00
parent d0c3f68dba
commit 9eb7d1c3c2

View File

@ -66,11 +66,11 @@ export class Slider extends Superview implements ISlider {
} }
slidePage(context: BridgeContext, page: number, smooth = false) { slidePage(context: BridgeContext, page: number, smooth = false) {
return this.nativeChannel(context, "selectPage")({ page, smooth }) return this.nativeChannel(context, "slidePage")({ page, smooth })
} }
getSlidedPage(context: BridgeContext) { getSlidedPage(context: BridgeContext) {
return this.nativeChannel(context, "getSelectedPage")() as Promise<number> return this.nativeChannel(context, "getSlidedPage")() as Promise<number>
} }
} }