element-ui表格如何在模板中获取当前行的index索引
2019-08-12 本文已影响0人
辉夜真是太可爱啦
<el-table-column type="expand" width="150">
<template slot-scope="props">
{{props.$index}}
</template>
</el-table-column>
<el-table-column type="expand" width="150">
<template slot-scope="props">
{{props.$index}}
</template>
</el-table-column>