docs_vue2/one/docs/demo/pagination/goto.vue
2021-09-15 20:03:51 +08:00

38 lines
504 B
Vue

<template>
<article>
<veui-pagination
:page="page"
:total="total"
:to="to"
goto
/>
</article>
</template>
<script>
import { Pagination } from 'veui'
export default {
components: {
'veui-pagination': Pagination
},
data () {
return {
to: './pagination?page=:page',
total: 10101
}
},
computed: {
page () {
return Number(this.$route.query.page) || 1
}
}
}
</script>
<style lang="less" scoped>
article {
text-align: right;
}
</style>