1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<div class="partyt-pagination">
<el-pagination
@current-change="handleCurrentChange"
:current-page.sync="page._index"
:page-size="page._size"
layout="prev, pager, next, jumper"
:total="page.total">
</el-pagination>
</div>
</template>
<script>
export default {
data(){
return {
currentPage:1
}
},
props:{
page:{
type: Object,
default:{
_index:1,
_size:10,
total:0
}
}
},
methods:{
handleCurrentChange(val){
this.$emit('changePage',val)
}
}
}
</script>
<style lang="less">
@import '../style/pagination.less';
</style>