使用element-ui table时,获取当前索引值
2020-03-26 本文已影响0人
nora_wang
scope.$index
<el-table
:data="list"
highlight-current-row
border
>
<el-table-column prop="name" :label="姓名">
<template slot-scope="scope">
{{ scope.$index }}
</template>
</el-table-column>