2020-08-13 11:47:56 +08:00
|
|
|
<template>
|
|
|
|
<article>
|
2021-11-20 13:22:48 +08:00
|
|
|
<section>
|
|
|
|
<veui-pagination
|
|
|
|
:page="page"
|
|
|
|
:total="total"
|
|
|
|
:to="to"
|
|
|
|
/>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<veui-pagination
|
|
|
|
:page="page"
|
|
|
|
:total="total"
|
|
|
|
:to="to"
|
|
|
|
ui="s"
|
|
|
|
/>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<veui-pagination
|
|
|
|
:page="page"
|
|
|
|
:total="total"
|
|
|
|
:to="to"
|
|
|
|
ui="xs"
|
|
|
|
/>
|
|
|
|
</section>
|
2020-08-13 11:47:56 +08:00
|
|
|
</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>
|
|
|
|
|
2021-09-15 20:03:51 +08:00
|
|
|
<style lang="less" scoped>
|
2020-08-13 11:47:56 +08:00
|
|
|
article {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.veui-pagination {
|
|
|
|
margin: 1.2em 0;
|
|
|
|
}
|
|
|
|
</style>
|