- 使用slot-scope,scope.$index可以显示行号
<template>
<el-table :data="TemplateList" highlight-current-row>
<el-table-column label="行号" >
<template slot-scope="scope">
{{scope.$index+1}}
</template>
</el-table-column>
</el-table>
<template>