feat(page): 新增 @jump 回调函数

This commit is contained in:
就眠仪式
2021-10-11 00:11:54 +08:00
parent 147a55e038
commit 9f18058e9e
3 changed files with 30 additions and 1 deletions

View File

@@ -80,4 +80,29 @@ export default {
}
</script>
:::
::: demo
<template>
<lay-page limit=20 total=100 @jump="jump" showPage></lay-page>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const jump = function({ current }) {
console.log("当前页:" + current)
}
return {
jump
}
}
}
</script>
:::