<el-table-column prop="capacity" label="操作" min-width="90" align="center">
<template slot-scope="scope">
<el-button @click="printIndex(scope.$index)">查看Index</el-button>
</template>
</el-table-column>

效果图
el-table在每一行拿到对应的index(scope.$index)

 

 

相关文章:

  • 2021-09-05
  • 2022-01-13
  • 2022-01-11
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-01-28
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案