<el-table
:data="tableData"
:cell-style="{'text-align':'center'}"
:header-cell-style="{background:'text-align:center;background- color:#f3f4f7;',color:'#5d6168;','text-align':'center'}"
border
style="width: 100%">
<el-table-column
label="编号"
width="180"
>
<template slot-scope="scope">
{{scope.$index + 1}}
</template>
</el-table-column>
</el-table>
elementUI,给每行传当前index
最新推荐文章于 2024-02-05 12:14:45 发布