<template>
    <!-- 分页组件 -->
    <el-pagination
        :background="true"
        :current-page="pageable.page"
        :page-size="pageable.size"
        :page-sizes="pageSizes"
        :total="pageable.total"
        layout="slot,sizes, total,prev,pager, next,jumper"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
    >
    </el-pagination>
</template>

<script setup lang="ts" name="Pagination">
interface Pageable {
    page: number;
    size: number;
    total: number;
}
//pageSize
interface PaginationProps {
    pageable: Pageable;
    handleSizeChange: (size: number) => void;
    handleCurrentChange: (currentPage: number) => void;
    pageSizes: any;
}

defineProps<PaginationProps>();
</script>
