共计 425 个字符,预计需要花费 2 分钟才能阅读完成。
上面是序号累计和页码组件
<el-table-column type="index" label="序号" align="center" width="80">
<template slot-scope="scope">
{{scope.$index + (page.current - 1) * page.size + 1 }}
</template>
</el-table-column>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
:current-page="page.current"
:page-sizes="[10, 20, 30, 40]"
:page-size="page.size"
layout="total, prev, pager, next, sizes, jumper"
:total="page.total"
>
</el-pagination>
正文完