chore:修改分页错误
This commit is contained in:
parent
4696461d72
commit
c3eb2443b6
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex justify-end pt-5">
|
<div class="flex justify-end pt-5">
|
||||||
<el-pagination background :layout="layout" :current-page="page" :page-size="limit" @current-change="changePage" @size-change="changeLimit" :total="total" :page-sizes="pageSizes" />
|
<el-pagination background :layout="layout" :current-page="page" :page-size="limit" @current-change="changePage" @size-change="changeLimit" :total="parseInt(total)" :page-sizes="pageSizes" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -14,12 +14,10 @@ const pageSizes = [10, 20, 30, 50]
|
|||||||
interface paginate {
|
interface paginate {
|
||||||
page: number
|
page: number
|
||||||
limit: number
|
limit: number
|
||||||
total: number
|
total: string
|
||||||
changePage: number
|
changePage: number
|
||||||
changeLimit: number
|
changeLimit: number
|
||||||
}
|
}
|
||||||
|
|
||||||
const { page, limit, total, changePage, changeLimit } = inject('paginate') as paginate
|
const { page, limit, total, changePage, changeLimit } = inject('paginate') as paginate
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user