Add a serial number to the front of the el-table of Element UI

Code

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

effect
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_46099269/article/details/113929397