<template>
    <!-- 分页组件 -->
    <el-pagination
        :background="true"
        :current-page="pageable.page"
        :page-size="pageable.size"
        :page-sizes="sizes"
        :total="pageable.total_size"
        layout="slot,sizes, total,prev,pager, next,jumper"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
    >
        <span style="font-size: 12px">
            <span>共选中</span>
            <span style="margin: 0 5px; color: #4178d5"> {{ length ? length : 0 }}</span>
            <span>行 </span>
        </span>
    </el-pagination>
</template>

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

defineProps<PaginationProps>();
</script>
