<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)
最新推荐文章于 2024-05-30 14:17:35 发布