ElementUI之表格组件
表格组件添加基于分页的索引
html
<el-table-column v-if="indexIsNeed" label="序号" min-width="60" align="center">
<template #default="scope">
{{ scope.$index + (currentPage - 1) * pageSize + 1 }}
</template>
</el-table-column>