Element UI 的el-table表格前列加序号

代码

<el-table-column label="序号" width="60" align="center">
    <template slot-scope="scope">
        {
   
   {scope.$index+1}}
    </template>
</el-table-column>

效果
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_46099269/article/details/113929397