Events
onChangePage(currentIndex, previousIndex): void
当页面切换时会触发的一个回调函数
<Page
onChangePage={(current, previous) => {
console.log(current, previous)
}}
/>
currentIndex: number
当前的页面页数
previousIndex: number
下一个页面的页数
Last updated
Was this helpful?